mayankpratap / battery-jarvis Goto Github PK
View Code? Open in Web Editor NEWA script which notifies critical battery level using speech. Built for Linux. Uses cron job to schedule.
A script which notifies critical battery level using speech. Built for Linux. Uses cron job to schedule.
In recent Linux releases, the /sys/class/power_supply/*/charge_now
file no longer exists. I don't seem to find a corresponding article, but seeing https://docs.kernel.org/power/power_supply_class.html#attributes-properties.
We can tell that file was probably reduced to remove confusion, as charge_*
are meant to contain capacity in µAh only.
Eitherway, currently this fails at:
FileNotFoundError: [Errno 2] No such file or directory: "/sys/class/power_supply/BAT0/charge_now"
Battery-Jarvis/batteryJarvis.py
Lines 23 to 31 in 7168b30
Using /sys/class/power_supply/*/capacity
if /sys/class/power_supply/*/charge_now
is not found.
in some system battery can be at BAT1 instead of BAT0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.