Files
thermostat-hw/main/app_config.h.example
2026-08-04 11:55:02 -07:00

44 lines
1.5 KiB
Plaintext

/*
* Copy this file to app_config.h and fill in your own values.
* app_config.h is gitignored -- it holds credentials.
*/
#ifndef APP_CONFIG_H
#define APP_CONFIG_H
#define WIFI_SSID ""
#define WIFI_PASSWORD ""
/* --- Home Assistant (primary data source) --------------------------------
*
* Plain HTTP on the LAN, so there is no certificate handling and no TLS
* handshake inside the window where rendering is paused. HA_TOKEN is a
* long-lived access token: in Home Assistant, click your user (bottom left)
* -> Security -> Long-lived access tokens -> Create token.
*
* Entity IDs are NOT here -- they are not secrets, so they live in
* main/api/ha_config.h. Re-check them with tools/ha_discover.py.
*/
#define HA_HOST "192.168.1.134"
#define HA_PORT 8123
#define HA_TOKEN ""
#define HA_UPDATE_INTERVAL_MS (1 * 60 * 1000)
/* --- Ambient Weather (fallback only) -------------------------------------
*
* Used only when Home Assistant cannot be reached, and then only for outdoor
* temperature, humidity and wind -- indoor, sun, forecast and lights have no
* cloud equivalent. Leaving these blank is fine; it just means no fallback.
*
* From https://ambientweather.net/account
* DEVICE_ID is the station's MAC address, e.g. "AA:BB:CC:DD:EE:FF"
*/
#define AMBIENT_WEATHER_API_KEY ""
#define AMBIENT_WEATHER_APP_KEY ""
#define AMBIENT_WEATHER_DEVICE_ID ""
/* The fallback client's own poll interval name. */
#define WEATHER_UPDATE_INTERVAL_MS HA_UPDATE_INTERVAL_MS
#endif