https://github.com/maximed/surepet-rs
Surepet API unofficial CLI
https://github.com/maximed/surepet-rs
experimental rust surepet
Last synced: 11 months ago
JSON representation
Surepet API unofficial CLI
- Host: GitHub
- URL: https://github.com/maximed/surepet-rs
- Owner: MaximeD
- License: mit
- Created: 2023-02-16T13:53:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-02T19:45:39.000Z (about 1 year ago)
- Last Synced: 2025-05-02T20:29:10.416Z (about 1 year ago)
- Topics: experimental, rust, surepet
- Language: Rust
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# surepet-rs
Unofficial CLI for the [surepet API](https://www.surepetcare.io/).
> This is an experimental project to play with rust.
> It probably lacks a ton of feature that are not planned to be implemented.
## Usage
In order to authenticate to the API, please set the two following environment variables:
- `SUREPET_EMAIL`: email of your surepet account
- `SUREPET_PASSWORD`: password of your surepet account
### List devices
```shell
> surepet-rs devices
✅ Hub is online
✅ Buanderie is online (battery: 49.69%)
```
### List pets
```shell
> surepet-rs pets
🏡 Arlene is outside since 1days 5h 50m 12s
🏠 Garfield is inside since 1h 27m 8s
```
## Run tests
```shell
> make test
```
## Create a binary
```shell
> make release
```
The binary is located in `target/release/surepet-rs`.