Create a low powered, renewable generation forecast display with a Raspberry Pi Zero & Inky wHAT.

Overview

GB Renewable Forecast Display

Screenshot Screenshot Screenshot Screenshot

This Raspberry Pi powered eInk display aims to give you a quick way to time your home energy usage to help balance the grid, reduce carbon emissions, and if you're an agile tariff user, save money.

The project takes the same approach as shouldibake.com and the Baking Forecast GB to give you quick visual aid when making that decision, showing you when renewable generation is above or below 33%.

Data is provided by the National Grid's carbon intensity api and Octopus Energy's Agile tariff pricing API.

Install and setup

Following the steps in this repository requires minimal input - all the required Inky libraries & code to display the screens is downloaded and setup on your pi when you run the install commands. You will need an SSH client in order to connect to the pi, but all of the SSH commands you need are listed on this page.

  • time required: ~30mins
  • cost of the components: ~£70

Components

  1. Raspberry Pi Zero soldered (~£14) (piehut | pimoroni)
  2. Micro SD card (~£7) (piehut | pimoroni)
  3. Inky wHAT (ePaper/eInk/EPD) - Black/White (£45) (piehut | pimoroni)
  4. Power supply - micro USB connection (piehut | pimoroni - or use an existing cable)
  5. Case (see notes below)

Raspberry Pi Setup

I use a "headless" Raspberry Pi setup to install all the dependencies; we configure the wifi settings prior to powering on the Pi & enable SSH by default, this mean we avoid having to connect a display or a keyboard.

1. Flash SD card with Raspberry Pi OS lite (no desktop)

  • Use Raspberry Pi Imager
  • Select SD card
  • Choose "Raspberry Pi OS (other)" > "Raspberry Pi OS Lite (32-bit)" (we dont require a GUI desktop)
  • Select write & wait for the OS to be written to the SD card.

2. Configure Wifi & Enable SSH

  • Once the Rapsberry Pi OS image has been saved to the SD card, open a file window so that you can view the contents of the SD card's 'boot' folder
  • Create a new file wpa_supplicant.conf in the root of the boot folder & add the following, replacing the relevant sections with the SSID and password of your wifi network
  ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  network={
    ssid="YOUR_SSID"
    psk="YOUR_WIFI_PASSWORD"
    key_mgmt=WPA-PSK
  }

Example file: conf/wpa_supplicant.conf

  • Finally create an empty file called 'ssh' (without a file extension) in the boot directory, this will enable SSH by default when you first power on the pi

3. Insert the SD into the Pi, install the Pi into the Inky display & boot

  • Insert the SD card into the Raspberry Pi
  • Install the Raspberry Pi into the back of the Inky display - align the Pi, with the 40 GPIO pins pointing down, to the top right hand corner of the back of the Inky display and gently push the the GPIO pins into the black connector. See an image of the reverse of display.
  • Power on the Pi & wait for ~2 minutes whilst the operating system boots up.
  • At this point you'll need to create an SSH connection to the Pi from your laptop/desktop. You can read more about SSH (Secure Shell) & find a client for your machine here
  • If this is the only Raspberry Pi on your network you'll be able to access the Pi using the device's hostname with following SSH command
ssh [email protected]
# password is 'raspberry'

otherwise, you will need to find the IP of your Pi via your local network router then start a SSH session using

ssh pi@[IP ADDRESS]
# password is 'raspberry'
  • Once your ssh connetion has been established the first thing you should do is update the password - the Pi OS ships with a default password, and it's always best to change this before going any further. To change your password run:
passwd

Then enter and confirm your new password

4. Run the install script

  • In your SSH terminal, ensure you're first in the pi user's home directory by running cd ~/
  • Install the dependencies for both the Inky display & the api/drawing libraries by running the following command

curl https://raw.githubusercontent.com/openbook/shouldi-eink-display/main/setup/install.sh | bash Note this command runs the install file found within this repository, so you can check exactly what's being installed if you need to.

  • When prompted enter Y to install the required inky libraries
  • When prompted 'Do you wish to perform a full install?' enter N
  • Once the install script has finished, the Pi will be rebooted to ensure all the libraries are correctly loaded now that the inky display is connected.
  • Once the pi has rebooted, if everything has been installed correctly, the Inky screen should update to display the default 'combined' screen.

5. SSH back in to the Pi & set the display configuration

  • First SSH back into the pi
  • By default the 'combined' forecast and current generation mix is displayed. Full info on each of the screens is available here. You can update the display by changing the values found within the 'config.ini' that was downloaded as part of the setup:
  • Using a text editor update the contents of the file found at /home/pi/shouldi-eink-display/config.ini
  • Update the display = combined line choosing one of the following options:
    • combined - renewable forecast plus current generation mix
    • forecast - the full "should i bake" forecast
    • agile - agile tariff hourly prices for the current day
    • generation - current renable generation mix for a local area
  • If selecting "agile" then the postcode and placename should be changed from the current values in the same file. Note postcodes should be added using the first half only (e.g. for SW1A 0AA use SW1A)
  • see '#displays' for notes on each display screen

6. Setup the web interface

Screenshot

You can also setup and run a simple web form which will allow you to switch the current screen display using a browser.

  • still using the SSH session, make sure you are in the project root folder cd ~/shouldi-eink-display
  • run ./setup/install-web.sh this will setup an nginx webserver and serve a simple flask based webapp that will allow you to update the config.ini file.
  • Once the install script has finished, it should confirm the IP address of your Pi - you can then open that IP address in a browser to access the web interface shown above

7. 🎉 Done

Hopefully everything should be setup and working ok.

Your display is set to update automatically at 5 & 35 minutes past each hour.

Screens

Screen Config.ini name Description
Screenshot combined Combined current generation mix + renewable forecast

Now
how much of the current electricity supply, coming from the National Grid, is being generated from renewable sources (wind, hydro & solar)

Forecast
for the next (up to) 4 days, which slots (morning, afternoon, evening or night) are forecasted to have renewable generation higher than 33%
- where there's a tick, generation is forecasted to be greater than 33%
- where there's a cross, generation is forecasted to be lower than 33%, avoid doing any activities at home which consume a lot of electricity during these times if you can
- where the tick or cross is underlined - this shows the period during the day which is forecasted to have the highest renewable generation. Try to plan your high demand activities for these time.
Screenshot agile (Octopus) Agile Tariff pricing

Displays the cost p/kWh (pence per kilowatt hour) for each hour over the current day.
See the full documentation here for more information

Note: the data retrieved from the Octopus API is for the London 'C' region by default. To change region, first find the alphabetical region (GSP Group) Id then update the region value in the config.ini file (excluding any underscores)
Screenshot forecast Baking forecast shouldibake.com @baking4cast

Right now, Bake!/Can baking wait?
tells you whether the current renewable generation level is higher than 33%

Forecast
for the next (up to) 4 days, which slots (morning, afternoon, evening or night) are forecasted to have renewable generation higher than 33%
- where there's a tick, generation is forecasted to be greater than 33%
- where there's a cross, generation is forecasted to be lower than 33%, avoid doing any activities at home which consume a lot of electricity during these times if you can
- where the tick or cross is underlined - this shows the period during the day which is forecasted to have the highest renewable generation. Try to plan your high demand activities for these time.
Screenshot generation Local generation for your region

Using a postcode supplied in the config.ini file, this display shows the current generation mix specific to your region.

Case

Make your own

Screenshot Screenshot

I created a simple frame using some pine stripwood (6x25mm), which was then treated with danish oil. This works well and with a small cut out for the USB power cable sits flush against a wall when fixed with a nail.

Modeled and 3d printed LargeCover enclosure by Printminion

This is a great professional looking case that's ready to buy and simple to install.

Note, unless you are going to solder the pi to the inky manually then you'll need the 'enclosure' + 'large cover'.

To do

  • Add a physical button to switch between displays
  • Add error handling for all outgoing requests
  • Image uploader for custom screen of when generation is high and low
  • Move carbonintensitylib to pandas for consistency and to improve code qualityŒ
  • Add more in depth view for agile pricing - show current, min and max prices
  • Add a battery pack & power management
Owner
Andy Brace
Andy Brace
CPU benchmark by calculating Pi, powered by Python3

cpu-benchmark Info: CPU benchmark by calculating Pi, powered by Python 3. Algorithm The program calculates pi with an accuracy of 10,000 decimal place

Alex Dedyura 20 Jan 03, 2023
Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API.

Hildebrand Glow (DCC) Integration Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API. T

Aniket 153 Dec 30, 2022
Play music on Raspberry Pi Pico Without CPU involvement

MicroPython_PIO_Music_DMA Play music on Raspberry Pi Pico Without CPU involvement This is based on PIOBeep (https://github.com/benevpi/pico_pio_buzz)

3 Nov 27, 2022
Hook and simulate global keyboard events on Windows and Linux.

keyboard Take full control of your keyboard with this small Python library. Hook global events, register hotkeys, simulate key presses and much more.

BoppreH 3.2k Dec 30, 2022
A dashboard for Raspberry Pi to display environmental weather data, rain radar, weather forecast, etc. written in Python

Weather Clock for Raspberry PI This project is a dashboard for Raspberry Pi to display environmental weather data, rain radar, weather forecast, etc.

Markus Geiger 1 May 01, 2022
Get the AltAz coordinates for a given object using astropy and output on a OLED screen.

Star Coordinates Get the AltAz coordinates for a given object using astropy and output on a OLED screen. As a very very newcomer to the astronomy scen

Craig Cmehil 1 Jan 31, 2022
Home assiatant Custom component: Camera Archiver

Camera archiver Archive your ftp camera meadia files on other ftp with files renaming and event creation. Event can be used for send information to el

1 Jan 06, 2022
Lenovo Legion 5 Pro 2021 Linux RGB Keyboard Light Controller

Lenovo Legion 5 Pro 2021 Linux RGB Keyboard Light Controller This util allows to drive RGB keyboard light on Lenovo Legion 5 Pro 2021 Laptop Requireme

36 Dec 16, 2022
Andreas Frisch 1 Jan 10, 2022
Terkin is a flexible data logger application for MicroPython and CPython environments.

Terkin Data logging for humans, written in MicroPython. Documentation: https://terkin.org/ Source Code: https://github.com/hiveeyes/terkin-datalogger

hiveeyes 45 Dec 15, 2022
Monitor Live USB Plug In & Plug Out Events

I/O - Live USB Monitoring Author: Jonathan Scott @jonathandata1 Date: 3/13/2021 CURRENT VERSION 1.0 This is just a simple bash script that calls a pyt

Jonathan Scott 17 Dec 03, 2022
Open source home automation that puts local control and privacy first.

Home Assistant Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiast

Home Assistant 57k Jan 01, 2023
Make your MacOS keyboard brightness fade in and out

Make your MacOS keyboard brightness fade in and out. (It's working depends on the Kbrightness file, which only works for 2015 Macs, so this will only work on 2015 Macs.)

1 Dec 16, 2021
An open source operating system designed primarily for the Raspberry Pi Pico, written entirely in MicroPython

PycOS An open source operating system designed primarily for the Raspberry Pi Pico, written entirely in MicroPython. "PycOS" is an combination of the

8 Oct 06, 2022
DNP3 Stalker is a project to analyze and interact with DNP3 devices

DNP3 Stalker Purpose DNP3 Stalker is a project to analyze and interact with DNP3

Cutaway Security, LLC. 2 Feb 10, 2022
gdsfactory is an EDA (electronics design automation) tool to Layout Integrated Circuits.

gdsfactory 3.5.5 gdsfactory is an EDA (electronics design automation) tool to Layout Integrated Circuits. It is build on top of phidl gdspy and klayou

147 Jan 04, 2023
Blender Camera Switcher

Blender Camera Switcher A simple camera switcher addon for blender. Useful when use reference image for camera. This addon will automatically fix the

Corgice 1 Jan 31, 2022
Port of Uxn to digital hardware in the Logisim simulator

Uxn-Logisim Implements the Uxn instruction set in digital hardware. Very WIP. Contents cpu.circ - The Logisim file microcode.mc - Microcode source fil

DeltaF1 11 Mar 27, 2022
I made this so I can control my Tapo L510 light bulb and Govee H6159 light strip using the PyP100 module and the Govee public API

TAPO-And-Govee-Controller I made this so I can control my Tapo L510 light bulb and Govee H6159 light strip using the PyP100 module and the Govee publi

James Westhead 0 Nov 23, 2021
智能无人机路径规划仿真系统是一个具有操作控制精细、平台整合性强、全方向模型建立与应用自动化特点的软件

Drone智能无人机路径规划仿真系统是一个具有操作控制精细、平台整合性强、全方向模型建立与应用自动化特点的软件。它以A、B两国在C区开展无人机战争为背景,该系统的核心功能是通过仿真平台规划无人机航线,并进行验证输出,数据可导入真实无人机,使其按照规定路线精准抵达战场任一位置,支持多人多设备编队联合行动。

wwy 349 Jan 03, 2023