Skip to content

An asynchronous web interface to probe an OpenTRV over serial from a Raspberry Pi or Windows PC

License

Notifications You must be signed in to change notification settings

opentrv/OTPiWebConsole

Repository files navigation

OTPiWebConsole

An asynchronous web interface to probe a REV11 stats hub when directly connected to a Raspberry Pi

Note that the content of this project is available under a permissive licence, Apache 2.0 or (Solderpad 0.51 for hardware elements) unless otherwise stated, and is provided supplied AS-IS with no warranties of any kind.

Overview

Built on Python 3, Flask and SocketIO for RaspberryPi or Windows

screenshot

Usage

Connect an OpenTRV device via serial cable to a RaspberryPi or PC, then run app.py from the Pi/PC. app.py starts the Flask web server, allowing you to interrogate the OpenTRV device from a browser.

Transport

Alt text

Alt text

Setup

  1. Reconfigure serial port UART0 on the Pi
  2. Install prerequisite components

Reconfigure serial port UART0 on the Pi

Before we can access serial port UART0 from our code, we need reconfigure the Pi so it does not claim UART0 at boot up as a serial console shell.

See section RaspberryPi Serial - Setting up the Pi in the wiki.

Install prerequisite components

Before the web server can be run, we need to ensure that several components are installed, including

These will be installed for you, if you run the following command on your Pi:

bash install.sh

This can take several minutes.

To run the web app:

bash run.sh

About

An asynchronous web interface to probe an OpenTRV over serial from a Raspberry Pi or Windows PC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published