https://github.com/yaacov/pi-oven-scripts
Raspberry PI scripts used for home oven control.
https://github.com/yaacov/pi-oven-scripts
Last synced: 7 months ago
JSON representation
Raspberry PI scripts used for home oven control.
- Host: GitHub
- URL: https://github.com/yaacov/pi-oven-scripts
- Owner: yaacov
- Created: 2019-03-02T20:33:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T13:12:03.000Z (over 1 year ago)
- Last Synced: 2025-01-23T09:43:14.052Z (9 months ago)
- Language: Python
- Size: 49.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pi-oven-scripts
Raspberry PI scripts used for home oven control.
## Prototype images


## Oven API examples
Note: run `sudo raspi-config` and enable "Interface Options" -> "SPI" before running the script
Enable to oven the service:
``` bash
sudo cp etc/systemd/system/oven.service /etc/systemd/system/
sudo systemctl enable oven
```Testing the oven service:
``` bash
curl -s "http://oven:5000/status" | jq
`````` json
{
"back": false,
"bottom": false,
"cooling": false,
"fan": false,
"light": true,
"set_back": false,
"set_bottom": false,
"set_fan": false,
"set_light": true,
"set_temp": 180,
"set_top": false,
"temp": 21,
"top": false
}
`````` bash
curl -s "http://oven:5000/set?temp=180" | jq
`````` json
{
"back": false,
"bottom": false,
"cooling": false,
"fan": false,
"light": true,
"set_back": false,
"set_bottom": false,
"set_fan": false,
"set_light": true,
"set_temp": 180,
"set_top": false,
"temp": 21,
"top": false
}
`````` bash
curl -s "http://oven:5000/set?light=on" | jq
`````` json
{
"back": false,
"bottom": false,
"cooling": false,
"fan": false,
"light": true,
"set_back": false,
"set_bottom": false,
"set_fan": false,
"set_light": true,
"set_temp": 180,
"set_top": false,
"temp": 20,
"top": false
}
`````` bash
curl -s http://oven:5000/metrics | sort
```
```
back 0.0
bottom 0.0
cooling 0.0
fan 0.0
light 0.0
set_back 0.0
set_bottom 0.0
set_fan 0.0
set_light 0.0
set_temp 0.0
set_top 0.0
temp 25.0
timer 0.0
timer_left 0.0
timer_minutes 0.0
timer_start 1552054754.0
top 0.0
```