Socket
Book a DemoInstallSign in
Socket

homebridge-petkit-feeder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-petkit-feeder

Homebridge plugin for Petkit feeder.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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.

Keywords

homebridge-plugin

FAQs

Package last updated on 12 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts