Giter Club home page Giter Club logo

environment-data-display's Introduction

Shows UV index from ARPANSA and pollution levels from woolloongabba station

runs on raspberry pi 3B+ with an Adfruit Bonnet and RGB LED matrix
https://learn.adafruit.com/adafruit-rgb-matrix-bonnet-for-raspberry-pi/

RPI rgb led matrix library https://github.com/hzeller/rpi-rgb-led-matrix

driving RGB matrices with RPI, adafruit bonnet and python script
https://learn.adafruit.com/adafruit-rgb-matrix-plus-real-time-clock-hat-for-raspberry-pi/driving-matrices

air quality data and UV index are color coded based on safety recommendation from their respective agency
Green: no concern
Orange: moderate risk, mitigation recoemnded (UV:sunscreen, pollution: limit exercise if prolonged exposure )
Red: take preventative action (avoid exposure)

/etc/rc.local

was modified to launch the script below
i added sh /home/francois/airQualScript.sh & before exit 0

airQualScript.sh script

below is executed every 10 minutes
all python programmes are automatically killed (easy cleanup of rgb led matrix)

#!/bin/sh
while true
do
python /home/francois/rpi-rgb-led-matrix/bindings/python/samples/display_air_data_V2.py --led-cols=64 --led-brightness=50 &
python /home/francois/safe_shutdown.py &
sleep 10m
sudo killall python
sleep 5s
done

added a shutdown button using

https://learn.sparkfun.com/tutorials/raspberry-pi-safe-reboot-and-shutdown-button

This is the final box

IMG20240122131654

first line is the UV index line 2 & 3 are NO and CO in ppm line 4 is PM10 in micro gram/m3

air quality data are coming from

https://apps.des.qld.gov.au/air-quality/stations/?station=woo

UV index data from ARPANSA

https://www.arpansa.gov.au/our-services/monitoring/ultraviolet-radiation-monitoring/ultraviolet-radiation-index

environment-data-display's People

Contributors

francoiswindels avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.