A nightstand noise generator based on M5Stack Atom Echo and integrating with Home Assistant
1#!/usr/bin/env bash
2# Host-only env vars for the publish/OTA flow.
3#
4# Copy this file to `.envrc.private` (gitignored) and fill in real values.
5# `.envrc` sources it automatically when direnv loads.
6#
7# These are needed by the `make ota-publish` flow on the dev machine; the
8# firmware itself reads its own copy of OTA_URL_BASE from `firmware/cfg.toml`
9# at compile time.
10
11# Where on this machine the .bin files get copied so the static HTTP server
12# can pick them up. Subdirectory per project; the publish flow copies to
13# $OTA_LOCAL_DIR/sound-machine-<version>.bin.
14export OTA_LOCAL_DIR="/path/to/firmware/sound-machine"
15
16# Public-ish base URL the device will fetch from. Must match the firmware's
17# `ota_url_base` in cfg.toml. Trailing slash optional; the publish flow
18# normalizes it.
19export OTA_URL_BASE="http://firmware.example.lan/sound-machine"
20
21# MQTT broker URL used by `make ota-publish` to push the new latest_version
22# to the shared topic. mosquitto_pub accepts the same scheme as the device's
23# cfg.toml mqtt_url, so it's fine to reuse that value.
24export MQTT_URL="mqtt://mqtt.example.lan:1883"