mirror of
https://github.com/FliegendeWurst/raspi-oled.git
synced 2024-11-09 13:40:36 +00:00
28 lines
951 B
Markdown
28 lines
951 B
Markdown
# Raspberry Pi calendar/temperature monitoring station
|
|
|
|
For more details see https://fliegendewurst.github.io/raspberry-pi-temperature-monitoring.html
|
|
|
|
The used OLED display is from [Waveshare](https://www.waveshare.com/wiki/1.5inch_RGB_OLED_Module)
|
|
|
|
## Quick start
|
|
|
|
```bash
|
|
> nix-shell
|
|
> rustup target add arm-unknown-linux-musleabihf
|
|
> cargo build --release --target arm-unknown-linux-musleabihf
|
|
> scp target/arm-unknown-linux-musleabihf/release/{display_all,display_off,refresh_json,take_measurement,status_check_example} 'pi@raspberrypi:~'
|
|
> # on the Pi, create sensors.db and events.json
|
|
> ./status_check_example > /run/user/1000/status.json
|
|
> patchelf --set-interpreter /lib/ld-linux-armhf.so.3 display_all
|
|
> ./display_off on
|
|
> ./display_all sensors.db events.json temps
|
|
```
|
|
|
|
## Example
|
|
|
|
![temperature graph](./images/temps.png)
|
|
|
|
![events](./images/events.png)
|
|
|
|
(the blue text seen in the second image is bright enough on the real OLED display)
|