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
You might also like...
DIY split-flap display
DIY split-flap display

The goal is to make a low-cost display that's easy to fabricate at home in small/single quantities (e.g. custom materials can be ordered from Ponoko or similar, and other hardware is generally available).

♟️ QR Code display for P4wnP1 (SSH, VNC, any text / URL)
♟️ QR Code display for P4wnP1 (SSH, VNC, any text / URL)

♟️ Display QR Codes on P4wnP1 (p4wnsolo-qr) 🟢 QR Code display for P4wnP1 w/OLED (SSH, VNC, P4wnP1 WebGUI, any text / URL / exfiltrated data) Note: Th

A ch341dll Wrap is for using in Python 32bits windows  to access I2C SPI and MDIO (by GPIO), and Demo with display PC sreen on OLED by i2c or SPI .
A ch341dll Wrap is for using in Python 32bits windows to access I2C SPI and MDIO (by GPIO), and Demo with display PC sreen on OLED by i2c or SPI .

ch341dll_wrap_typcal_app A ch341dll Wrap is for using in Python 32bits windows to access I2C SPI and MDIO (by GPIO). In addition, I provided 3 Demo. I

Python information display framework aimed at e-ink devices
Python information display framework aimed at e-ink devices

My display, using a Raspberry Pi Zero W and Waveshare 6" e-paper hat infodisplay Modular information display framework aimed at e-ink devices. Built u

Python application, displaying currently played track from Spotify on OLED display connected via I2C
Python application, displaying currently played track from Spotify on OLED display connected via I2C

RaspberryPi Spotify OLED Display This application will display currently played track on SSD1306 OLED display connected to RaspberryPi. Displayed stuf

a library for using WS2812b leds (aka neopixels) with Raspberry Pi Pico
a library for using WS2812b leds (aka neopixels) with Raspberry Pi Pico

pico_ws2812b a library for using WS2812b leds (aka neopixels) with Raspberry Pi Pico You'll first need to save the ws2812b.py file to your device (for

Micro Displays for Raspberry Pi
Micro Displays for Raspberry Pi

micro-displays Micro Displays for Raspberry Pi Why? I'm super bored in lockdown. Add a Raspberry Pi 400 and a few tiny displays... The top half of the

A Python class for controlling the Pimoroni RGB Keypad for Raspberry Pi Pico
A Python class for controlling the Pimoroni RGB Keypad for Raspberry Pi Pico

rgbkeypad A Python class for controlling the Pimoroni RGB Keypad for the Raspberry Pi Pico. Compatible with MicroPython and CircuitPython. keypad = RG

Raspberry Pi Pico development platform for PlatformIO
Raspberry Pi Pico development platform for PlatformIO

Raspberry Pi Pico development platform for PlatformIO A few words in the beginning Before experimental please Reinstall the platform Version: 1.0.0 Th

Comments
  • Removing config file from repo, moving to config.ini.example file

    Removing config file from repo, moving to config.ini.example file

    config.ini added to gitignore, config.ini.example copied into place as part of the install script. Will allow for clean git interactions with the local codebase.

    Moved install files into a setup directory + created an install-develop.sh script that will allow testing changes before merging to main branch.

    opened by openbook 0
  • Combining Baking Forecast and Agile on one display

    Combining Baking Forecast and Agile on one display

    It would be great if both could be shown on the same screen to avoid having to switch between them. For example, is there any way the bar at the top that says "Octopus Agile Tariff" screen could be replaced with the tick/cross display of the baking forecast in a horizontal line?

    enhancement 
    opened by mikefsway 0
  • Hanging/losing connection

    Hanging/losing connection

    Occasionally the pi/display seems to stop updating properly (at least on the Agile display). For example, yesterday it did not switch over to the rolling hour by hour progression at 4pm. I restarted the server and it immediately updated to the new view. Because of the eink screen it is hard to see if it isn't updating, which could be a problem if you just glance at it and it is showing the wrong day. Is there any way it can perform a check itself to see if it is running properly, and restart if not?

    opened by mikefsway 1
  • Dotted price grid lines

    Dotted price grid lines

    Dotted horizontal lines at 10p and 20p price points on the price display would make it easier to read off prices at a distance (although may also add clutter).

    enhancement 
    opened by mikefsway 0
Owner
Andy Brace
Andy Brace
Pi-hole with Inky pHAT ePaper display

Pi-hole with Inky pHAT ePaper display This is my Pi-hole with an ePaper display.

null 11 Sep 13, 2022
a weather application for the raspberry pi and the Pimorioni Inky pHAT.

raspi-weather a weather application for the raspberry pi and the Inky pHAT

Derek Caelin 59 Oct 24, 2022
Pihole-eink-display - A simple Python script to display PiHole statistics on an eInk Display

Pihole-eink-display - A simple Python script to display PiHole statistics on an eInk Display

Mark McIntyre 64 Oct 11, 2022
E-Ink Magic Calendar that automatically syncs to Google Calendar and runs off a battery powered Raspberry Pi Zero

E-Ink Magic Calendar that automatically syncs to Google Calendar and runs off a battery powered Raspberry Pi Zero

null 2.8k Dec 30, 2022
CO2Ampel - This RaspberryPi project uses weather data to estimate the share of renewable energy in the power grid

CO2Ampel This RaspberryPi project uses weather data to estimate the share of ren

Felix 4 Jan 19, 2022
An IoT Trivia app that shows you how to take a JSON web API such as the opentdb.com API and stream and display it on a FeatherS2 in an OLED display.

CircuitPython IoT Trivia ESP32-S2 OLED Version An IoT Trivia app that shows you how to take a JSON web API such as the opentdb.com API and stream and

Kevin Thomas 1 Nov 27, 2021
Minimal and clean dashboard to visualize some stats of Pi-Hole with an E-Ink display attached to your Raspberry Pi

Clean Dashboard for Pi-Hole Minimal and clean dashboard to visualize some stats of Pi-Hole with an E-Ink display attached to your Raspberry Pi.

Alessio Santoru 104 Dec 14, 2022
A Raspberry Pi Pico powered Macro board, like a Streamdeck but cheaper and simpler.

Env-MCRO A Raspberry Pi Pico powered Macro board, like a Streamdeck but cheaper and simpler. (btw this image is a bit outdated, some of the silkscreen

EnviousData 68 Oct 14, 2022
A low power 1U Raspberry Pi cluster server for inexpensive colocation.

Raspberry Pi 1U Server There are server colocation providers that allow hosting a 1U server for as low as $30/month, but there's a catch: There are re

Paul Brown 627 Dec 31, 2022
Create (templateable) cameras that display qr codes in homeassistant

QRCam This custom component creates cameras displaying qrcodes. The QRCodes can be static or generated from templates. If you use a template as conten

Jannes Müller 5 Oct 6, 2022