power-consumption-tracker
Power Consumption Tracker
Power Consumption Tracker is a program that calculates the total wattage of the CPUs on a computer by using the crate sysinfo
, download the actual France electricity price from the website of the CRE (Commission de la régulation de l'Énergie) and outputs every second the cost of running the computer.
Installation
- Clone the repository to your local machine.
- Make sure you have Rust installed.
- Build the program by running
cargo build --release
. - Run the program by running
https://raw.githubusercontent.com/floriaaan/power-consumption-tracker/main/target/release/power-consumption-tracker
.
Usage
The program will output the total wattage of the CPUs in your computer. The wattage is calculated by summing the power consumption of each CPU core.
Contributing
Contributions to Power Consumption Tracker are welcome! To contribute:
- Fork the repository.
- Make your changes.
- Create a pull request.
License
Power Consumption Tracker is released under the MIT License. See LICENSE
for more information.