From 7b8b11111e1d6c8f84e889a44489f5b413c66f4e Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 5 Jun 2024 22:01:39 -0500 Subject: [PATCH] kitchen: Updates for v0.5 Kitchen v0.5 a few changes that affect the deployment: * The Bored Board is now backed by MQTT * The pool temperature is now displayed in the weather pane * The container image is now based on Fedora and includes its own time zone database and root CA bundle * The websocket server prevents the process from stopping correctly unless the graceful shutdown feature of `uvicorn` is disabled --- kitchen/kitchen.yaml | 6 +----- kitchen/secrets.yaml | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/kitchen/kitchen.yaml b/kitchen/kitchen.yaml index 90e2bdd..7232db2 100644 --- a/kitchen/kitchen.yaml +++ b/kitchen/kitchen.yaml @@ -35,11 +35,10 @@ spec: image: git.pyrocufflink.net/packages/kitchen:master args: - --host=0.0.0.0 + - --timeout-graceful-shutdown=0 env: - name: TZ value: America/Chicago - - name: SSL_CERT_FILE - value: /usr/lib/python3.10/site-packages/certifi/cacert.pem imagePullPolicy: Always ports: - containerPort: 8000 @@ -49,9 +48,6 @@ spec: mountPath: /kitchen.yaml subPath: config.yaml readOnly: true - - name: tzinfo - mountPath: /usr/share/zoneinfo - readOnly: true volumes: - name: config secret: diff --git a/kitchen/secrets.yaml b/kitchen/secrets.yaml index f40aec5..207c10c 100644 --- a/kitchen/secrets.yaml +++ b/kitchen/secrets.yaml @@ -61,7 +61,7 @@ spec: projects: *projects_calendar mqtt: - hostname: homeassistant.pyrocufflink.blue + host: mqtt.pyrocufflink.blue port: 8883 tls: true username: kitchen @@ -78,6 +78,8 @@ spec: homeassistant_sensor_humidity_percent{entity="sensor.outdoor_humidity"} wind_speed: >- homeassistant_sensor_unit_m_per_s{entity="sensor.wind_speed"} + pool: >- + homeassistant_sensor_temperature_celsius{entity="sensor.pool_sensor_temperature"} homeassistant: url: wss://homeassistant.pyrocufflink.blue/api/websocket