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
Intel Realsense t265 into Unreal Engine

t265_UE Intel Realsense t265 into Unreal Engine. Windows only, and Livelink plugin is 4.26.2 only at the moment. Might recompile it for different vers

Bjarke Aagaard 30 Jan 02, 2023
Technical Answers to Real-World Problems. Evolution of Watering Manually to Watering Automatically.

Automatic Watering System using Soil Moisture Sensor and RTC Timer with Arduino Technical Answers to Real-World Problems Know the plant, Grow the plan

NelakurthiSudheer 3 Jan 03, 2022
ArucoFollow - A script for Robot Operating System and it is a part of a project Robot

ArucoFollow ArucoFollow is a script for Robot Operating System and it is a part

5 Jan 25, 2022
A LiteX project which builds a SoC with DRAM / HDIM output via the GPDI SYZYGY addon.

ButterStick GPDI LiteX demo A LiteX project which builds a SoC with DRAM / HDIM output via the GPDI SYZYGY addon. Getting started Connect GPDI board t

4 Nov 21, 2021
EuroPi: A reprogrammable Eurorack project based on the Raspberry Pi Pico

EuroPi The EuroPi is a fully user reprogrammable module based on the Raspberry Pi Pico, which allows users to process inputs and controls to produce o

Allen Synthesis 218 Jan 01, 2023
🌱 - WebhookHard◞ Fines Educativos ◟

v1.0.0 WebhookHardware ¿Que es WebhookHardware? WebhookHardware se trata de un proyecto tratado para sacar informacion sobre el hardware de tus victim

3 Jun 14, 2021
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
Brogrammer-keyboard - FIrmware for the Brogrammer Keyboard v1.0

Brogrammer Keyboard Firmware The package contains the firmware that runs on the Brogrammer Keyboard v1.0 See https://imgur.com/a/oY5QZ14 This keyboard

Devin Hartleben 1 Apr 21, 2022
LED effects plugin for klipper

This plugin allows Klipper to run effects and animations on addressable LEDs, such as Neopixels, WS2812 or SK6812.

Julian Schill 238 Jan 04, 2023
A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.

PyUserInput PyUserInput is a group project so we've moved the project over to a group organization: https://github.com/PyUserInput/PyUserInput . That

Paul Barton 1k Dec 27, 2022
This is a Virtual Keyboard which is simple yet effective to use.

Virtual-Keyboard This is a Virtual KeyBoard which can track finger movements and lets you type anywhere ranging from notepad to even web browsers. It

Jehan Patel 3 Oct 01, 2021
Pinion — Nice-looking interactive diagrams for KiCAD PCBs

Pinion — Nice-looking interactive diagrams for KiCAD PCBs Pinion is a simple tool that allows you to make a nice-looking pinout diagrams for your PCBs

Jan Mrázek 297 Jan 06, 2023
Modi2-firmware-updater - MODI+ Firmware Updater With Python

MODI+ Firmware Updater 실행 준비 python3(파이썬3.9 혹은 그 이상의 버전)를 컴퓨터에 설치 python3 -m pip

LUXROBO 1 Feb 04, 2022
Control DJI Tello with Raspberry Pi and PS4 Controller

Control-DJI-Tello-with-Raspberry-Pi-and-PS4-Controller Demo of this project see

MohammadReza Sharifi 24 Aug 11, 2022
Extremely simple PyBadge examples to demonstrate different aspects of CircuitPython using PyBadge hardware.

BeginnerPyBadge I purchased a PyBadge recently. I'm new to hardware. I was surprised how hard it was to find easy examples demonstrating how different

Rubini LaForest 2 Oct 21, 2021
Hardware: CTWingSKIT_BC28 Development Toolkit

IoT Portal Monitor Tools hardware: CTWingSKIT_BC28 Development Toolkit serial port driver: ST-LINK hardware development environment: Keli 5 MDK IoT pl

Fengming Zhang 1 Nov 07, 2021
Alarm Control Panel component for Zigbee Keypads using action_transaction field

hass_transaction_alarm_panel Alarm Control Panel component for Zigbee Keypads using action_transaction field. Works together with zigbee2mqtt Supporte

Konstantin 4 Jun 09, 2022
Huawei Solar sensors for Home Assistant

Huawei Solar Sensors This integration splits out the various values that are fetched from your Huawei Solar inverter into separate HomeAssistant senso

Thijs Walcarius 151 Dec 31, 2022
Various programs in Atari BASIC for #FujiNet for Atari 8-bit

FujiNet Various programs in Atari BASIC for #FujiNet for Atari 8-bit FujiNet-3D Tic Tac Toe In 1978, Scott Adams wrote a 3-D Tic Tac Toe game, for pla

Kay Savetz 2 Jan 01, 2022
Add filters (background blur, etc) to your webcam on Linux.

webcam-filters Add filters (background blur, etc) to your webcam on Linux. Video conferencing applications tend to either lack video effects altogethe

Jashandeep Sohi 480 Dec 14, 2022