This repo contains the different scripts running withing the RaspberyPi we're using for the Smart Aquarium OCS project.
Some of these scripts run when the system has just booted, some run every few minutes other run when external events occur.
-
startup.py
- Done:
-
Get Local Tank “Code” form ENV (/etc/environment)
-
Send GET query to
/tank
to get the current tank config. -
Get TEMP & sun/moon (brightness) DATA FROM SERVER.
- TODO:
-
Set Brightness / temperature in tank.
-
[CRON]Check back every X minutes.
-
Blink LED
-
CRON sun/moon (Once a day)
-
GET sun/moon (brightness) Data from sever
-
Every (x) minutes apply values to tank (calculate local brightness from daily values)
- CRON temp (every x minutes)
-
GET temperature values and apply to tank
-
RFID READ (BACKGROUND TASK) => IF Read value, send value (PUT) to add fish to tank API
-
UPnP [TODO]
offer lum value
-
ping.py [OK]
- Done:
- Ping server with tank code. This re-sets the tank attribute lastPinged to current dateTime.
- TODO:
- add ping.py to system cron (every 5 minutes).
TBD