Skip to content

jakenology/node-petlibro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PetLibro API (Node.js)

A reverse-engineered client for PetLibro smart feeders and water fountains.

Installation

npm install petlibro-api

Usage

const PetLibroAPI = require('petlibro-api');

const api = new PetLibroAPI('email@example.com', 'password');

(async () => {
  await api.login();
  
  const devices = await api.getDevices();
  const feeder = devices[0].deviceSn;

  // Feed 1 portion (approx 1/12 cup)
  await api.manualFeed(feeder, 1);
})();

Features

[x] Login & Token Refresh

[x] Device Listing

[x] Manual Feeding

[x] Vacuum Control (Granary)

[x] Water Fountain Control (Dockstream)

Tree

petlibro-api/
├── index.js          <-- Logic + Constants
├── index.mjs         <-- Import bridge
├── index.d.ts        <-- Autocomplete magic
├── package.json      <-- Config
├── README.md         <-- Instructions
└── .gitignore        <-- Safety

About

Node.js PetLibro API Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors