Skip to content

tobiasgraf/OctoPrint-Octo4a_battery

Repository files navigation

OctoPrint-Octo4a_battery

This plugin displays the battery level of yout phone running OctoPrint with Octo4a . It also has a basic telegram integration and is able to send warnings to a telegram at pre defined battery levels

Screenshots

Battery Level

Octo4a_battery

Settings

Octo4a_battery

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/tobiasgraf/OctoPrint-Octo4a_battery/archive/master.zip

Configuration

This plugin simply reads the file battery from the file /sys/class/power_supply/battery/capacity. This works on my Phone (Nexus 5). If this does not work for you, you can change the path in the settings.

Telegram

You need to create a telegram bot and configure the token in the settings. How to create a bot have a look at the Otcoprint Telegram Plugin or just google it.

To get the ChatID, write a message to the bot or add it to a channel. Then go to

https://api.telegram.org/bot**yourTokenHere**/getUpdates

with your browser. This returns a JSON where you can find your chat ID.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published