Max Prokhorov
298ce8cac2
Refactor get/set/del/hasSetting ( #2048 )
* experimental: refactor get/set/del/hasSetting
* sensors
* lights
* cleaup
* r
* tuya
* fixup! sensors
* fixup! tuya
* header defaults types
* fix lights
* setup already checks for max
* helper for flashstring
* fix overload
* oops
* refactor includes
* warnings
* test with migrate
* add ids in a separate file
* cleanup
rev: crash
rev: domoticz
rev: encoder
rev: loopdelay
rev: hass
rev: i2c
rev2: hass
rev: mqtt
rev: rfm69
rev: relay
rev: rpn
rev: settings setup
rev: hb settings
rev: telnet preprocessor fix
rev: settings wrap
rev: tspk bool style
rev: wifi types
rev: util hb
rev: settings
fixup! rev: settings
* rev: cleanup wifi injections based on new getters
* hasSetting now can return true for empty key
* show hardcoded network in web
* oops
* fix ws referencing wrong index
* ensure empty strings are written
* c/p
* use experimental schema style for payload, mark network as not deletable
* allow to customize converter
* shorter syntax, try using with wifi
* use proper #if syntax to handle definitions that are missing
* fixup ota sc checks getter, cast schEnabled to bool
* add utils header to sensors
4 years ago
Max Prokhorov
37763f1ad4
Test: check core feature build ( #2080 )
* Test: check core feature build
* order
* add missing
5 years ago
Max Prokhorov
9a5698b342
Add TUYA_SUPPORT ( #1997 )
- add experimental `relayDummy` to configure dummy relays at runtime
- add tuya-generic-dimmer #1729
- cleanup broker interface to allow Tuya module to properly receive events, modify broker methods to allow different function signatures
- add basic tests for Tuya frame and data protocol
5 years ago
Max Prokhorov
849f8cf920
Rules RPN ( #1984 )
* RPN rules (WIP)
* RPN rules web interface, MQTT inputs
* Stickyness, rpn.ops,...
* Perform light updates only when value changes
* Improve wsSend performance
* Revert PR test
* Check TERMINAL_SUPPORT for _rpnInitCommands and remove unused variable
* Fix merge
* formatting
* disable by default (?)
* changelog
* comment
* remove debug function wrappers in favour of var activation
* fixup! comment
5 years ago
Niek van der Maas
7db0df0a67
NTP: Fix warning about unused variable if DEBUG support is disabled ( #1944 )
5 years ago
Max Prokhorov
9d9df478bd
Fix WEB_SUPPORT=0 and missing definitions ( #1853 )
* clean-up ws declarations, remove old stubs
* always fw declare callback types
* wsPost is only possible with WEB_SUPPORT
* some more ws methods
5 years ago
Max Prokhorov
21423431ce
Fixed size json payload & other WS bugfixes ( #1843 )
- update every dynamicjsonbuffer with fixed size constructor argument
- change to ws callback registration to use a class builder (just cosmetic)
- test multiple ws data callbacks for each module
- remove some of the static strings in favour of ws data callback
- improve sensor ws callback data size, remove duplicated strings
- use static buffer in wsDebugSend
- postpone wsSend until loop, implement wsPost to allow other modules to queue message callbacks. remove Ticker based ws callbacks for data
- update WebUI files
5 years ago
Max Prokhorov
903ceb1e84
Use local includes for NtpClient wrapper
5 years ago
Max Prokhorov
ad2ecc45f3
Generate sync interval exactly once
5 years ago
Max Prokhorov
91cbba3493
Update NTP
- wrapper NTPClient class to avoid inadvertently calling NTP::getTime() while
setting things up
- only call NTP::getTime() when in loop(), install async TimeLib
sync provider and manually set TimeLib time
- randomize sync and delay times
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Max Prokhorov
868d153fa4
Compact WS data
* send all ws config at once on start
* reduce ws json overhead by creating message buffer manually
* use k:[values] instead of k1:value1, k2:value2 etc. for lists
5 years ago
Xose Pérez
356be730e2
Added message type to broker
5 years ago
Xose Pérez
7ab5b04fff
Option to report time even if no NTP sync ( #1310 )
6 years ago
Max Prokhorov
ed0d4f6674
Check NTP sync status
Avoid 0 timestamp bug
6 years ago
Xose Pérez
7d09f59952
Handle configure callbacks outside the ws module
6 years ago
Xose Pérez
bb82d49452
Option to set schedules based on UTC time ( #783 )
6 years ago
Niklas Wagner
20adc846a9
Use the 5th Channel as Cold White LED
6 years ago
Xose Pérez
4600fd5fa3
NTP method to get a string from any unix timestamp
6 years ago
Xose Pérez
fa20c47f29
Check which keys should be saved and which ones shouldn't ( #730 )
6 years ago
Xose Pérez
b75e1ea7d6
Do not show empty time strings ( #691 )
6 years ago
Xose Pérez
c886d9f1b7
Support for USA DST calculations ( #664 )
6 years ago
Xose Pérez
d4eb64ca7e
Update NtpClientLib and use NTP_TIMEOUT ( #452 )
6 years ago
Xose Pérez
7698a48fbb
Increase the initial check interval for NTP ( #452 )
6 years ago
Xose Pérez
95968a97c3
Improved NTP support
6 years ago
Xose Pérez
3e4313fae3
Updated NTPClientLib. Support for non full hour time offsets ( #265 )
6 years ago
Xose Pérez
90ce2a8e37
Local broker
6 years ago
Xose Pérez
8eb22ff9bc
Changes in time management
6 years ago
Xose Pérez
b082d14c59
Loop hooks
6 years ago
Xose Pérez
34c72859ef
Small changes
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
a25a6904b1
Changes in NTP
7 years ago
Xose Pérez
3518a7bc5e
Websocket callbacks (part 2)
7 years ago
Xose Pérez
b34da11508
Moving MDNS code to its own module
7 years ago
Xose Pérez
f8c3e4f4c1
Renamed ntpConnect to ntpConfigure
7 years ago
Xose Pérez
e451fb499b
Added current time, uptime, free heap, firmware size and free space to web interface
7 years ago
Xose Pérez
ce907eb2ee
Option to build without NTP support
7 years ago
Xose Pérez
68c90c1cc0
Fix bug using snprintf
7 years ago
Xose Pérez
f7cf9a691f
Replaced sprintf with safer snprintf
7 years ago
Xose Pérez
90617963e3
Method to send websocket messages from progmem
7 years ago
Xose Pérez
fb60201cf1
Option to build without web server support
7 years ago
Xose Pérez
9750bf26bb
Moved strings to PROGMEM, 160 bytes saved in memory
7 years ago
Xose Pérez
a27c8a3145
Return time in ISO format
7 years ago
Xose Pérez
c8eba6a979
NTP configuration in web interface
7 years ago
Xose Pérez
3a872979fe
Show NTP status on web interface ( #126 )
7 years ago
Xose Pérez
8c54488fa1
Moving debug strings to PROGMEM. ~1.5KBytes of heap memory freed
7 years ago
Xose Pérez
4e0e8038b1
Reset NTP connection from the JustWifi connection callback
7 years ago
Xose Pérez
52a63b1849
Changes in file comment headers
7 years ago
Xose Pérez
ff81326846
Version and year bump
7 years ago
Xose Pérez
bacc2c2b92
Arduino IDE compatibility ( #18 ) - Renamed src folder and main file as 'espurna'
8 years ago