Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fetimo/leif
macOS menu bar app for tracking CO2 usage
https://github.com/fetimo/leif
Last synced: 26 days ago
JSON representation
macOS menu bar app for tracking CO2 usage
- Host: GitHub
- URL: https://github.com/fetimo/leif
- Owner: fetimo
- License: mpl-2.0
- Created: 2022-07-09T18:53:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-10T07:21:05.000Z (about 2 years ago)
- Last Synced: 2024-08-03T09:06:46.339Z (4 months ago)
- Language: Swift
- Size: 1.5 MB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Mac-Menubar-Megalist - leif
README
# leif
leif is an open-source macOS menu bar app to track your computer's CO2 equivalent emissions over time.
It does this by counting the average power consumption while your MacBook is charging. Data is saved locally and can be reset at any time.
It can also use this data to tell you when to charge in the near future to minimise your carbon impact.
CO2 data is provided by the National Grid via https://carbonintensity.org.uk.
I tried to use permacomputing principles while developing this by:
* going native, this [started as a Ruby script](https://gist.github.com/fetimo/bfddb1d35524106357e922cd64fcaa2a) but in a bid to minimise CPU and memory usage while running it I opted to use Swift instead
* making it clear when your computer is using energy contributing to climate change
* minimised dependencies, no libraries other than those provided by macOS## Requirements and limitations
* UK only (excluding Northern Ireland)
* macOS 12+
* only tested on MacBook Pros## Work remaining
I need to refactor the code to work with older macOS versions (and see how feasible it is).