August 2021: Entirely rewritten for a node.js server with a React front-end. Although I'm still using Python to take the water tank level measurements
- Monitors water tank levels (SKU: SEN0208), and logs hourly
- 7 day programmable schedule, per channel
- Current support for 2 channels, but extensible
- Triggers the switching of 5v relays (SKU: CE05279) and thus 12v solenoids via the RPi.GPIO.
- Web-browser based UI, served over local network
- Ensure Node.js and Python are installed on your Raspberry Pi
- Clone respository
npm install
- Build the client:
cd client && npm run build
To simply start the server: node index.js
Or to ensure the server stays running even after a device reboot I would recommend using pm2. Install pm2 globally, then follow instructions given at Persistent applications.
- Consider a timer function using a range input