Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raehik/upcost
Logs system uptime and tells you the price.
https://github.com/raehik/upcost
Last synced: about 2 months ago
JSON representation
Logs system uptime and tells you the price.
- Host: GitHub
- URL: https://github.com/raehik/upcost
- Owner: raehik
- Created: 2014-06-15T16:03:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-17T10:35:10.000Z (over 10 years ago)
- Last Synced: 2024-06-12T18:32:45.872Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
upcost
=========`upcost` logs uptime along with approximate power consumption and the cost of
that power.`upcost.service` belongs in `/etc/systemd/system/` because AFAIK, that's
where custom services go.
`upcost` is the script and can go anywhere, but I put it in
`/usr/local/lib/systemd/system/scripts/` because that seemed reasonable. I
didn't want it in the `$PATH`, as it shouldn't be run more than once per boot.Places its log in `/var/log/upcost/log`. You should create that directory
first, else you might get errors.Soon enough I'll write a script `upcost` which shows your 'outstanding debt'
as it were. I might have to change the name of the `upcost` script for that
(`upcost` makes most sense to me as asking the computer what the cost is). When
it is paid, the log is rotated.