See the current co2 emissions per kWh of electricity in the Netherlands
Project description
Table of Contents
CO2 monitor
This project is more or less like co2monitor.nl, except that we show the current CO2 emisions per kWh of electricity on a small EPD screen, connected to some GPIO pins of a Raspberry Pi.
See Pins for an overview of what pins need to be connected to the screen.
Install
- Attach your EPD screen to the pins as described in the table in Screen.
- Install the python executable:
uv sync, orpip install -e . - Copy .env.example to .env and populate with the correct api key. You can find an api key on https://ned.nl/nl/user
- Run the executable (found in the virtualenv/bin directory).
Development
See the Makefile for handy dev commands. I use uv to manage my dependencies, but it does not really matter all that much.
You can execute python monitor (or uv run python monitor) to quickly run the project.
Pins
Screen
| Name | Function | Color | Pin number | GPIO |
|---|---|---|---|---|
| VCC | Power | Grey | 1 | - |
| GND | Ground | Brown | 6 | - |
| DIN | SPI MOSI | Blue | 19 | 10 (SPI0 MOSI) |
| CLK | SPI Clock | Yellow | 23 | 11 (SPI0 SCLK) |
| CS | SPI chip selection | Orange | 24 | 8 (SPI0 CE0) |
| DC | Data/Command selection | Green | 22 | 25 |
| RST | Reset | White | 11 | 17 |
| BUSY | Busy status output | Purple | 18 | 24 |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file co2monitor-0.2.1.tar.gz.
File metadata
- Download URL: co2monitor-0.2.1.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f215e5028cfb830fcff56dc0ca39e511ca7715a168c0d4c77ee6e5a890faaab
|
|
| MD5 |
b5f93196a0e3412ab855ea0f37486b72
|
|
| BLAKE2b-256 |
bcffc77623ab23b19f737c1a940ba79e6be58238ebb7f19687778c78285addd1
|
File details
Details for the file co2monitor-0.2.1-py3-none-any.whl.
File metadata
- Download URL: co2monitor-0.2.1-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6da787994ec98fb4dc4505178b54b8e3ab932955834613051bef92c6224f26d
|
|
| MD5 |
edb6e6b408a21959a16d42d38f25767c
|
|
| BLAKE2b-256 |
907702dc03eb51bab6bea8555a3f5a4eeaed3ec75761f5f1b865fbcfc9d44b47
|