Commit Graph

269 Commits

Author SHA1 Message Date
Max Prokhorov
d4311211ad Lock relay status on boot (#1705)
* relays: locked status

* remove debug

* Disable relay toggle when locked

* fixup! Disable relay toggle when locked

* Send lock with status, fix "disable" condition

* typo

* Update WebUI
2019-08-13 00:33:27 +03:00
Max Prokhorov
d4dea17f94 Fix missing WS debug messages (#1851)
Amend #1843 , since we have updated ESPAsyncWebServer
Fixes (again) #1300

Gather WS debug messages in a buffer and flush every N times
info,keys,crash actually output data now
2019-08-13 00:18:45 +03:00
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
2019-08-12 23:24:52 +03:00
Max Prokhorov
193cebdbab RF/RFBRIDGE Update (#1693)
- remove optional RFRAW_SUPPORT
- enable module when RF_SUPPORT=1, optionally enable RCSwitch
- reorder ifdef checks to treat RFB_DIRECT and old RF_SUPPORT the same
- rename RF_PIN to RFB_RX_PIN
- depend on RF_SUPPORT instead of ITEAD_SONOFF_RFBRIDGE
- runtime TX & RX PIN setting
2019-05-08 23:57:18 +03:00
Xose Pérez
9c3a6e6548 Merge branch 'webui/switch-typo' of https://github.com/mcspr/espurna into mcspr-webui/switch-typo 2019-03-25 12:41:28 +01:00
Xose Pérez
5d5e9155e5 Merge pull request #1603 from ElderJoy/thermostat
Add thermostat module
2019-03-25 12:23:11 +01:00
Indu Prakash
d1c852eee5 Fix for #1653 2019-03-25 05:05:06 -05:00
Max Prokhorov
58d911d3ed Merge remote-tracking branch 'origin/dev' into webui/switch-typo 2019-03-23 06:39:38 +03:00
Xose Pérez
0987e01950 Allow to configure all LEDs from UI (#1429) 2019-03-21 22:31:11 +01:00
Max Prokhorov
494427402a WebUI: selector typo 2019-03-21 05:14:11 +03:00
Dmitry Blinov
add499e245 Update custom.js 2019-03-08 01:57:53 +02:00
Dmitry Blinov
cb582b711d Update custom.js 2019-03-08 01:42:19 +02:00
Dmitry Blinov
376205c9bb Merge branch 'dev' into thermostat
# Conflicts:
#	code/espurna/config/webui.h
#	code/espurna/data/index.all.html.gz
#	code/espurna/data/index.light.html.gz
#	code/espurna/data/index.rfbridge.html.gz
#	code/espurna/data/index.rfm69.html.gz
#	code/espurna/data/index.sensor.html.gz
#	code/espurna/data/index.small.html.gz
#	code/espurna/espurna.ino
#	code/espurna/static/index.all.html.gz.h
#	code/espurna/static/index.light.html.gz.h
#	code/espurna/static/index.rfbridge.html.gz.h
#	code/espurna/static/index.rfm69.html.gz.h
#	code/espurna/static/index.sensor.html.gz.h
#	code/espurna/static/index.small.html.gz.h
#	code/espurna/web.ino
#	code/gulpfile.js
#	code/html/index.html
2019-03-08 01:35:36 +02:00
Dmitry Blinov
ec39ac5c88 Fix conflicts:
1. Add thermostat to the espurna_modules in progmem.h
2. Add thermostat to webui, gulp, html, js.
3. in general.h MQTT_USE_JSON returned to 0 by default and 1 if thermostat enabled.
2019-03-08 01:02:11 +02:00
Andrey F. Kupreychik
609e047f95 Merge remote-tracking branch 'xoseperez/dev' into lightfox-dual 2019-03-05 22:44:29 +07:00
Dmitry Blinov
af07494f00 Add thermostat module 2019-03-03 12:17:34 +02:00
Max Prokhorov
61411b2002 rfbridge: fix webui codes parsing 2019-02-25 17:57:06 +03:00
Andrey F. Kupreychik
86bccaf74f Merge remote-tracking branch 'xoseperez/dev' into lightfox-dual 2019-02-22 11:51:56 +07:00
Max Prokhorov
65af8373cb Merge remote-tracking branch 'origin/dev' into mqtt/group-receive-only 2019-02-22 04:59:12 +03:00
Max Prokhorov
a53b66d55a Relay MQTT group sync mode setting 2019-02-20 08:36:26 +03:00
Max Prokhorov
860ecb7464 Merge branch 'dev' into compact-ws 2019-02-12 15:10:06 +03:00
Max Prokhorov
2f147ec088 double-click to select textarea 2019-02-09 18:22:08 +03:00
Max Prokhorov
e1ddcc533c do html escaping on the client 2019-02-09 18:22:08 +03:00
Max Prokhorov
31a0772e37 Print each HA config entry separately 2019-02-09 18:22:08 +03:00
Max Prokhorov
b2ad29a660 Revert timestamp prepending, separate debug destinations
* Simply print timestamp for supported destinations
* Update ws destination to support 'prefix' sub-key
* Avoid void casting in telnet module
2019-02-08 01:00:47 +03:00
Max Prokhorov
cde1aba561 partial sending of rfbridge codes 2019-01-29 16:49:49 +03:00
Max Prokhorov
17e5156ebf fixup rfbridge ws-data 2019-01-29 16:33:53 +03:00
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
2019-01-29 16:27:47 +03:00
Andrey F. Kupreychik
bcb36c1859 Merge remote-tracking branch 'xoseperez/dev' into lightfox-dual 2019-01-04 19:10:04 +07:00
Andrey F. Kupreychik
8b4713dee1 UI for LightFox 2019-01-04 18:57:07 +07:00
Xose Pérez
4d5c0d7617 Split ws messages for relays and rf codes (#262) 2018-12-11 19:26:23 +01:00
Rui Marinho
aeeef47ce7 Add support for EZO™ pH Circuit 2018-11-30 00:31:01 +00:00
Xose Pérez
8b863c48eb Merge branch 'dev' into sensor/veml6075 2018-11-19 22:44:18 +01:00
Rui Marinho
e2b7f953a7 Add support for VEML6075 2018-11-02 00:17:47 +00:00
Rui Marinho
0ca5bff2f4 Add support for VL53L1X sensor 2018-10-29 02:12:25 +00:00
Xose Pérez
fb6eba57cd Merge branch 'dev' into sensors 2018-10-08 17:35:41 +02:00
Xose Pérez
426aafd5b3 Update custom.js 2018-10-07 12:34:18 +02:00
Marcos Pérez Ferro
f77dd5f860 Admin pass validation condition always failing. Adding hyphen to valid chars. 2018-10-06 15:34:18 +02:00
Max Prokhorov
d69c30aa61 Use specific function to check form 2018-09-29 06:55:49 +03:00
Max Prokhorov
7a8949fd24 Check if password is required before showing alert
Show alert if no input on #password page
Do not fail with empty password when on #layout
Fix password selector
2018-09-29 04:49:15 +03:00
Max Prokhorov
54ec4fa28a attr() is undefined when elem doesnt have it 2018-09-28 08:07:22 +03:00
Xose Pérez
227d641a9b Support for MICS-2710, MICS-5525 and MICS-4514, gas sensors 2018-09-18 18:15:41 +02:00
Max Prokhorov
822837f7b2 Use separate form for each panel 2018-09-17 05:22:21 +03:00
Max Prokhorov
3c91389c20 Update password UI
* revise first-time-use screen
* generate password (policy applies)
* hide/reveal password text for sta/admin settings
* changed autocomplete='...' for some inputs to avoid completion
2018-09-17 05:22:21 +03:00
Xose Pérez
88e2ecccce Improve memory info 2018-09-11 23:40:52 +02:00
Xose Pérez
d476557329 Move string parts to progmem 2018-09-10 10:36:08 +02:00
Max Prokhorov
f59d747af1 do not reset original attr every ws message 2018-09-04 17:48:42 +03:00
Max Prokhorov
0caf7a4aac attr() returns text, do not compare to 0 / 1 2018-09-04 17:48:42 +03:00
Maxim Prokhorov
e326fbe09f hostname/password length requirements
* fix webui regexp and input length limits
* explain requirements in webui and headers
2018-09-03 06:47:36 +03:00
Xose Pérez
01802741f2 Tested encoder support 2018-08-29 08:26:15 +02:00