Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5175b32266 | |||
| aa4fd06c94 | |||
| c0daa12f26 |
@@ -96,5 +96,6 @@ class MicrowaveCookPlanner:
|
||||
"reconciled_mass_g": final_mass_g,
|
||||
"mass_validation_status": mass_data["status"],
|
||||
"cook_plan": cook_plan,
|
||||
"geometry": vol_data
|
||||
"geometry": vol_data,
|
||||
"edaman_response": edamam_resp
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
esphome:
|
||||
name: epaper-display-node
|
||||
|
||||
esp32:
|
||||
board: esp32-h2-devkitm-1
|
||||
variant: esp32h2
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# OpenThread configuration joining the Pi's Thread network
|
||||
openthread:
|
||||
network:
|
||||
enable_ipv6: true
|
||||
network_name: "OpenThread-Pi" # Must match OTBR
|
||||
pan_id: 0x1234 # Must match OTBR
|
||||
channel: 15 # Must match OTBR
|
||||
network_key: "00112233445566778899aabbccddeeff" # Must match OTBR
|
||||
|
||||
# MQTT Client connecting over Thread (IPv6)
|
||||
mqtt:
|
||||
broker: "fdde:ad00:beef:0::1" # RPi OTBR wpan0 IPv6 address
|
||||
port: 1883
|
||||
topic_prefix: microwave/display
|
||||
|
||||
spi:
|
||||
clk_pin: GPIO10
|
||||
mosi_pin: GPIO11
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin: GPIO8
|
||||
dc_pin: GPIO12
|
||||
reset_pin: GPIO13
|
||||
busy_pin: GPIO14
|
||||
model: 2.13in-d
|
||||
update_interval: never # Updated explicitly via text sensor
|
||||
id: my_epaper
|
||||
pages:
|
||||
- id: status_page
|
||||
lambda: |-
|
||||
it.printf(0, 0, id(font_small), "Status: %s", id(display_text).state.c_str());
|
||||
|
||||
font:
|
||||
- file: "gfonts://Roboto"
|
||||
id: font_small
|
||||
size: 16
|
||||
|
||||
text_sensor:
|
||||
- platform: mqtt
|
||||
name: "Display Text Input"
|
||||
id: display_text
|
||||
state_topic: "microwave/display/text"
|
||||
on_value:
|
||||
then:
|
||||
- component.update: my_epaper
|
||||
@@ -1,11 +1,26 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
otbr:
|
||||
image: openthread/otbr:latest
|
||||
container_name: otbr
|
||||
restart: unless-stopped
|
||||
privileged: true
|
||||
network_mode: host
|
||||
devices:
|
||||
# Change /dev/ttyACM0 if your ESP32-H2 RCP enumerates as /dev/ttyUSB0
|
||||
- /dev/ttyACM0:/dev/ttyACM0
|
||||
command: --radio-url "spinel+hdlc+uart:///dev/ttyACM0?uart-baudrate=460800"
|
||||
|
||||
mqtt-broker:
|
||||
image: eclipse-mosquitto:2.0
|
||||
container_name: mqtt-broker
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MQTT_TLS_ENABLED: ${MQTT_TLS_ENABLED:-true}
|
||||
# restart: unless-stopped
|
||||
ports:
|
||||
- "192.168.50.1:8884:8884"
|
||||
# Listens on all interfaces (IPv4 and IPv6) for Thread compatibility
|
||||
- "8884:8884"
|
||||
volumes:
|
||||
- ./mqtt/mosquitto-tls.conf:/mosquitto/config/mosquitto-tls.conf:ro
|
||||
- ./mqtt/mosquitto-plain.conf:/mosquitto/config/mosquitto-plain.conf:ro
|
||||
@@ -14,7 +29,6 @@ services:
|
||||
- mqtt-data:/mosquitto/data
|
||||
- mqtt-log:/mosquitto/log
|
||||
command: ["/bin/sh", "/scripts/start-broker.sh"]
|
||||
# command: ["tail", "-f", "/dev/null"] # Do nothing
|
||||
|
||||
volumes:
|
||||
mqtt-data:
|
||||
|
||||
Reference in New Issue
Block a user