From 02379de39e55bdaca09637a300c7b663011d8b1f Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Wed, 14 Nov 2018 06:31:12 +0800 Subject: [PATCH] Allow override of HOMEASSISTANT_ and WEB_REMOTE_DOMAIN (#1337) * allow override of WEB_REMOTE_DOMAIN * allow override of HOMEASSISTANT_ENABLED and _PREFIX --- code/espurna/config/general.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 91873ceb..307c6eb7 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -438,7 +438,9 @@ // or in the Internet. Since the WebUI is just one compressed file with HTML, CSS and JS // there are no special requirements. Any static web server will do (NGinx, Apache, Lighttpd,...). // The only requirement is that the resource must be available under this domain. +#ifndef WEB_REMOTE_DOMAIN #define WEB_REMOTE_DOMAIN "http://tinkerman.cat" +#endif // ----------------------------------------------------------------------------- // WEBSOCKETS @@ -930,8 +932,13 @@ #define HOMEASSISTANT_SUPPORT MQTT_SUPPORT // Build with home assistant support (if MQTT, 1.64Kb) #endif +#ifndef HOMEASSISTANT_ENABLED #define HOMEASSISTANT_ENABLED 0 // Integration not enabled by default +#endif + +#ifndef HOMEASSISTANT_PREFIX #define HOMEASSISTANT_PREFIX "homeassistant" // Default MQTT prefix +#endif #ifndef HOMEASSISTANT_PAYLOAD_ON #define HOMEASSISTANT_PAYLOAD_ON "1" // Payload for ON and available messages