This project defines, implements and tests a model for measuring power usage of a desktop app.
The carbon footprint of apps can be significantly reduced. The carbon cost of network traffic is measurable. Our aim is to develop a solution to measure the energy use of a single app running on a desktop computer.
In order to submit your code, you should use a workflow like this. This makes sure that the right versions of the code are in the repo, and that we're all working off the same code.
- If you havent already, use
git pullon the whatever branch your on. This is especially the case for backend, frontend and main branches. - After pulling the branch, use
git checkoutto get on to your teams branch. - When you're adding code,(assuming you've just used git pull), you can use
git checkout -b <BRANCH_NAME>eggit checkout -b frontend-f-myfeatureThe f in this case is for a feature branch. - Now in your feature branch you can add your code.
- When you're adding code, add it in small pieces, not all at once.
- When you've finished a small piece you can add it to staging with
git add myfile.jsYou can also do this with vscode or some other editor. - Then commit your code using
git commit -m"Some brief message telling us what the code is doing" - When you've commit your code, then you can push your branch with
git push -u origin <BRANCH_NAME>eggit push -u origin frontend-f-myfeature - Go the repository on github.com, and make a pull request to either the frontend, data-gathering or data-analysis BRANCH.
- Assign some other person to review the code, and then they will merge the code.
- In your own feature branch you can start all over again by using
git pull
- pip install pythonnet OR py -m pip install pythonnet
- download openhardwaretool from https://openhardwaremonitor.org/downloads/
- extract the OpenHardwareMonitorLib.dll into the App folder of the project
- run your code editor as administrator
- If you get an error about .NET framwork, youll need to find where your .dll file is, right click and go to properties, and then check the unblock box.