Commit Graph

36 Commits

Author SHA1 Message Date
Fabian Schlenz 10be8ef7cc There are now global instances of Window which don't have to be created and deleted all the time. 2020-04-30 06:41:30 +02:00
Fabian Schlenz 70ddba2cbc Log contents of SPIFFS on bootup.
continuous-integration/drone/push Build encountered an error Details
2020-04-29 20:28:10 +02:00
Fabian Schlenz 47812de405 Switched from NTPClient to lwIPs internal SNTP client.
continuous-integration/drone/push Build encountered an error Details
This has the advantage of being able to set DST automatically.
2020-03-29 18:08:54 +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 f5d47fe7da Keep track of the current frame number. 2019-10-23 12:36:08 +02:00
Fabian Schlenz 141210a370 Switched from ESPWebServer and WebSocketsServer to ESPAsyncWebServer. 2019-10-23 06:22:53 +02:00
Fabian Schlenz dfe99408c9 Small fixes. 2019-10-23 05:41:39 +02:00
Fabian Schlenz 1418d519d5 Better frametime calculation in pitrix.cpp 2019-10-18 17:03:48 +02:00
Fabian Schlenz b4aa711940 Lots of settings stuff: The webinterface at /settings now lets you change the settings. Also, these changes will be saved to SPIFFS and loaded after a reboot. 2019-10-09 05:57:20 +02:00
Fabian Schlenz 382631d7d7 Effect#loop now gets the time since the last run of the loop in ms. This enables
the effects to show animations that stay fluid independent of the current frame rate.
2019-10-01 06:29:32 +02:00
Fabian Schlenz 7ac681002e Added effect night_clock 2019-09-25 18:11:52 +02:00
Fabian Schlenz 36edb94ff0 Metrics now include the current effect's name. 2019-09-25 18:11:03 +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 33c2417534 Added recorder to be able to stream the current LED data via network. That way you can create nice looking GIF images of the effects - and even develop effects without having to look at the actual LED panel. 2019-09-04 06:05:45 +02:00
Fabian Schlenz ead076f9a3 You can now set options for effects via MQTT and HTTP. Basic syntax is: <mode>,<option1>=<value1>,<option2>=<value2>,... 2019-06-19 22:28:38 +02:00
Fabian Schlenz 74b967392d Cleanup.
continuous-integration/drone/push Build is failing Details
2019-06-18 18:18:07 +02:00
Fabian Schlenz 1912772da3 Effects now use Constructor and Destructor to initialize or delete their data, instead of using start() and stop(). 2019-06-18 18:09:05 +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 bfe46220ca Added HTTP REST API. 2019-06-12 20:57:31 +02:00
Fabian Schlenz 308196d185 Added fps to MQTT metrics. 2019-06-12 20:49:37 +02:00
Fabian Schlenz 83254f2eaa Windows. Everything now is implemented in Windows. ;-) (Okay, just the drawing stuff. And defnititely nothing by Microsoft.) 2019-06-11 19:48:09 +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 560b71425d Made the code ESP32-compatible.
continuous-integration/drone/push Build is passing Details
2019-06-06 12:12:58 +02:00
Fabian Schlenz f7275cc086 Setup ntp callback. 2019-06-06 06:44:34 +02:00
Fabian Schlenz f7fc459095 MQTT can now be disabled via MQTT_ENABLE 2019-06-06 06:43:50 +02:00
Fabian Schlenz 4064357d5c Changed `REPORT_FREE_HEAP` to `REPORT_METRICS` and included uptime there as well. 2019-05-31 23:59:32 +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 646d3369fb Amount of new Pixels per loop for confetti effect is now configurable. Also, the color is based on a slowly rotating baseHue. 2019-05-30 13:08:24 +02:00
Fabian Schlenz 711d028e90 Added effect "confetti". Closes #16. 2019-05-30 11:12:40 +02:00
Fabian Schlenz b452fff812 Don't do that many FastLED.show()s for now - that leads to lots of display glitches... 2019-05-30 01:36:30 +02:00
Fabian Schlenz 8c62a6f38b Added a config switch to enable temporal dithering. But at least for my setup something is too slow - it's flickering. 2019-05-30 00:54:57 +02:00
Fabian Schlenz 2f58fd14d0 Splitting the code into single files is done. \o/ 2019-05-30 00:49:54 +02:00
Fabian Schlenz 76802ffa78 Lots of re-organizing code and stuff. 2019-05-28 21:19:35 +02:00