Commit Graph

26 Commits

Author SHA1 Message Date
Fabian Schlenz fd44b217a7 Added homeassistant auto-discovery via MQTT. 2020-07-09 06:41:21 +02:00
Fabian Schlenz caa86551a0 A bit less logging from mqtt.cpp. 2020-04-30 06:42:18 +02:00
Fabian Schlenz 4762a852d8 MQTT messages can now be retained. 2020-04-29 20:25:41 +02:00
Fabian Schlenz 8e2d2225cb Better metrics. 2020-04-29 20:24:59 +02:00
Fabian Schlenz e2a56d7c29 Added a TimeEffect to show a countdown to a time given via MQTT.
continuous-integration/drone/push Build is passing Details
2019-12-21 14:21:31 +01:00
Fabian Schlenz b644006036 MQTT: Report flash size at startup. 2019-10-23 05:42:10 +02:00
Fabian Schlenz ef57c5ea2e Settings can now be changed:
* Via HTTP POST request to /settings, providing key=<key_to_change> and value=<new_value>.
  * Via MQTT at <MQTT_TOPIC>/settings.<key>.
2019-10-04 12:11:05 +02:00
Fabian Schlenz 937850c90a Better MQTT filtering.
continuous-integration/drone/push Build is passing Details
2019-09-25 18:13:56 +02:00
Fabian Schlenz 73b8d162c7 Metrics logging now includes average time taken per frame. Also, metrics now come in a single JSON payload to /metrics. 2019-09-25 06:40:24 +02:00
Fabian Schlenz 82fbc7be43 MQTT: Small fixes. Most notably, MQTT_TOPIC/status will now contain hostname and IP of pitrix. 2019-06-19 22:27:33 +02:00
Fabian Schlenz 26df11fc47 Added tests. Start them by sending a message to MQTT_TOPIC/run_tests. First test will test all effects for memory leaks. 2019-06-19 22:26:38 +02:00
Fabian Schlenz 8c9e9e2e2e MQTT: Use new effect structure and logging. 2019-06-18 18:17:48 +02:00
Fabian Schlenz 5ce3b0c1b3 Centralized the creation of a hostname to a global variable hostname, set in pitrix.cpp. Added an mDNS record for the webserver. 2019-06-14 05:35:17 +02:00
Fabian Schlenz 291a3be623 Moved platform-specific code related to WiFi and services to my_wifi.h. Also, made the HTTP server stuff compatible to ESP32.
continuous-integration/drone/push Build is passing Details
2019-06-13 06:01:44 +02:00
Fabian Schlenz 308196d185 Added fps to MQTT metrics. 2019-06-12 20:49:37 +02:00
Fabian Schlenz 2072877159 Handling of incoming MQTT messages improved.
continuous-integration/drone/push Build is passing Details
2019-06-11 19:48:42 +02:00
Fabian Schlenz c5856a6f7a Whitespace stuff. Tabs rule!
continuous-integration/drone/push Build is failing Details
2019-06-07 06:24:16 +02:00
Fabian Schlenz b71faa3bcb MQTT now sets LWT and explicitly requests a clean sesion on startup.
continuous-integration/drone/push Build is failing Details
2019-06-07 06:08:52 +02:00
Fabian Schlenz c153ce915d Added MQTT_TOPIC_WEATHER for receiving and storing weather data. 2019-06-07 06:08:21 +02:00
Fabian Schlenz 560b71425d Made the code ESP32-compatible.
continuous-integration/drone/push Build is passing Details
2019-06-06 12:12:58 +02:00
Fabian Schlenz 05aa6f7249 Added a `pragma message` if MQTT is disabled.
continuous-integration/drone/push Build is failing Details
2019-06-06 06:51:07 +02:00
Fabian Schlenz f7fc459095 MQTT can now be disabled via MQTT_ENABLE 2019-06-06 06:43:50 +02:00
Fabian Schlenz f9fba8a8f9 Macros `LOG` and `LOGln` now will, if debugging is enabled, log to an mqtt topic as well as Serial. 2019-05-31 23:57:46 +02:00
Fabian Schlenz a7d956209a Added `Effect::start()` and `Effect::stop()` to allow effects to reserve memory on start and free it afterwards. 2019-05-31 05:46:17 +02:00
Fabian Schlenz 5321409727 Added support for reporting for freeHeap via MQTT. 2019-05-30 13:09:38 +02:00
Fabian Schlenz 2f58fd14d0 Splitting the code into single files is done. \o/ 2019-05-30 00:49:54 +02:00