Skip to main content

See the current co2 emissions per kWh of electricity in the Netherlands

Project description

Table of Contents

  1. CO2 monitor
  2. Install
    1. Development
  3. Pins
    1. Screen

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

  1. Attach your EPD screen to the pins as described in the table in Screen.
  2. Install the python executable: uv sync, or pip install -e .
  3. Copy .env.example to .env and populate with the correct api key. You can find an api key on https://ned.nl/nl/user
  4. 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

https://pinout.xyz/

Screen

Product

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

co2monitor-0.2.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

co2monitor-0.2.1-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

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

Hashes for co2monitor-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2f215e5028cfb830fcff56dc0ca39e511ca7715a168c0d4c77ee6e5a890faaab
MD5 b5f93196a0e3412ab855ea0f37486b72
BLAKE2b-256 bcffc77623ab23b19f737c1a940ba79e6be58238ebb7f19687778c78285addd1

See more details on using hashes here.

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

Hashes for co2monitor-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6da787994ec98fb4dc4505178b54b8e3ab932955834613051bef92c6224f26d
MD5 edb6e6b408a21959a16d42d38f25767c
BLAKE2b-256 907702dc03eb51bab6bea8555a3f5a4eeaed3ec75761f5f1b865fbcfc9d44b47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page