Skip to content

Instantly share code, notes, and snippets.

View ItsVixano's full-sized avatar
🐾
On a walk

Giovanni Ricca ItsVixano

🐾
On a walk
View GitHub Profile
@ItsVixano
ItsVixano / battery_sheet.sh
Last active August 15, 2023 00:46
Battery Charging Checker
#! /vendor/bin/sh
# Copyright (C) 2023 Giovanni Ricca
# SPDX-License-Identifier: GPL-3.0-or-later
# vars
BATTERY_LEVEL_NODE="/sys/class/power_supply/battery/capacity"
TIME_TO_FULL_NODE="/sys/class/power_supply/battery/time_to_full_now"
POWER_NOW_NODE="/sys/class/power_supply/battery/power_now"
CURRENT_NOW_NODE="/sys/class/power_supply/battery/current_now"
OUTPUT_FILE="battery_chart.txt"