Projects
Small examples to copy and change, and complete apps to run as they are. Every post says its status honestly - what's been proven on real hardware, and what hasn't.
- Example - copy and change it
A greenhouse on your dashboard in 40 lines
Two gauges, a button that runs your own code, and a warning that stays on the dashboard until someone acknowledges it.
- Hardware:
- None to run it; a temperature and humidity sensor to make it real
- Status:
- Tested with a fake connection. Run against a real server as far as the link-code prompt; not yet seen appearing on a dashboard.
- Example - copy and change it
A weather station that draws its own chart
Three gauges and a chart, refreshed every couple of seconds: how to send one value, and how to send several at once.
- Hardware:
- None to run it; a temperature, humidity and pressure sensor to make it real
- Status:
- Tested with a fake connection. The chart was checked in real Chrome with simulated readings, and the whole program not yet run against a real server.
- App - run it as it is
Bird Box Live: a camera you can leave running
A Pi camera on your dashboard: live video peer to peer, plus Record and Snapshot saved on the Pi, with the video settings changeable from the browser.
- Hardware:
- A Raspberry Pi and a camera (a NoIR camera for night)
- Status:
- In use on a Pi Zero W and tested on a Pi 3A+. Firefox, Safari, a phone browser and mobile data have not been tried.
- App - run it as it is
GPIO Panel: a button in and an LED out
The smallest complete example of digital input and output: a push button that shows Pressed or Released live, and a Toggle that switches an LED.
- Hardware:
- Any Raspberry Pi with the 40-pin header, a push button, an LED and a 330 ohm resistor
- Status:
- Tested with pretend pins, and its pins opened and driven on a real Pi 3A+. A real button press seen on the dashboard is not yet done.
- App - run it as it is
Motion Trap: a camera that only records when something moves
A PIR sensor triggers recording on the Pi's own storage, with the dashboard telling you when it starts and what was saved, and nothing glowing at the wildlife.
- Hardware:
- A Raspberry Pi with a camera (any Pi before the Pi 5; a NoIR camera for night), an HC-SR501-style PIR sensor; optionally an infrared illuminator, a transistor and a setup LED
- Status:
- Tested with a real PIR sensor on a Pi 3A+. The infrared light output is built but no real illuminator has been wired to it yet, and picture quality has not been tuned in daylight at a real site.
- Example - copy and change it
Put a camera on your dashboard
The Camera component in about 20 lines: live video with buttons to record and take a snapshot, on a Pi camera or a moving test pattern.
- Hardware:
- A Raspberry Pi with a camera for the real thing; any computer for the test pattern
- Status:
- Tested with a fake connection and the test pattern. Not yet run against a real server. The Camera component itself has run on real Pi cameras (see Bird Box Live).
- Example - copy and change it
The widget showcase: everything the dashboard can draw
One program that shows the widgets ThePiHub can draw: gauges, a status, a chart, buttons in groups, a toggle, a select, a slider, the camera and its own files.
- Hardware:
- None to run it (the camera shows a test pattern); a Pi camera to see a real picture
- Status:
- Tested with a fake connection, including a check that it uses every widget the frontend can draw. Started on a Pi Zero W against the dev server and connected; the dashboard for it has not yet been looked over in a browser. Files is new and untested on a real device or in a real browser.
