https://github.com/pisugar/pisugar-python
PiSugar's independent Python driver, and there is no need to install PiSugar-server additionally. Just meet the requirements.
https://github.com/pisugar/pisugar-python
Last synced: 11 months ago
JSON representation
PiSugar's independent Python driver, and there is no need to install PiSugar-server additionally. Just meet the requirements.
- Host: GitHub
- URL: https://github.com/pisugar/pisugar-python
- Owner: PiSugar
- Created: 2025-01-24T07:30:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T13:21:00.000Z (over 1 year ago)
- Last Synced: 2025-06-22T08:45:14.449Z (12 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PiSugar-python
PiSugar's independent Python driver, and there is no need to install PiSugar-server additionally. Just meet the requirements.
## Requirements
python 3.5+
## Usage
Python example
from pisugar import *
pisugar=PiSugarServer()
pisugar.get_battery_level()
NOTE: After the program initializes, it will launch a background process that retrieves information every ten seconds to facilitate the subsequent activation of the automatic low-battery shutdown feature.
## License
Apache License Version 2.0