homebridge-petkit-feeder

0.1.0 • Public • Published

homebridge-petkit-feeder

version license stats

Homebridge plugin for Petkit Feeders.

Install

$ npm install -g homebridge-petkit-feeder

Config

Params

  • accessory: Accessory name to load. Not compatible with other plugins with the same name.
  • model, name, serialNumber: Information of the feeder. Does not affect functions.
  • deviceID, headers: Information extracted from app communications. (using a web debugging tool, like Charles)
  • amount: Amount for a single feed. 10 stands for 10 grams (1/10 cup).

Example

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },
  "accessories": [
    {
      "accessory": "PetkitFeeder",
      "model": "Fresh Element Solo",
      "name": "Feeder",
      "serialNumber": "your_serial_number",
      "deviceID": "your_device_id",
      "amount": 10,
      "headers": {
        "Host": "api.petktasia.com",
        "X-Client": "ios(15.1.1;iPhone13,1)",
        "X-Session": "x-session",
        "Accept": "*/*",
        "X-Timezone": "8.0",
        "F-Session": "f-session",
        "Accept-Language": "en-GB;q=1, zh-Hans-GB;q=0.9, zh-Hant-GB;q=0.8, ja-GB;q=0.7, de-GB;q=0.6, ko-KR;q=0.5",
        "X-Api-Version": "8.4.0",
        "User-Agent": "PETKIT/8.4.0 (iPhone; iOS 15.1.1; Scale/3.00)",
        "X-TimezoneId": "Asia/Shanghai",
        "X-Img-Version": "1",
        "X-Locale": "zh_CN"
      }
    }
  ]
}

License

This project is released under the terms and conditions of the GPL license. See LICENSE for details.

Package Sidebar

Install

npm i homebridge-petkit-feeder

Weekly Downloads

5

Version

0.1.0

License

GPL-3.0

Unpacked Size

41.5 kB

Total Files

6

Last publish

Collaborators

  • artoria2e5