Commit Graph

1291 Commits

Author SHA1 Message Date
cschwinne
40c8fdbf64 Added WebSockets support to UI 2021-07-02 01:46:42 +02:00
cschwinne
dc01c907f1 Send websockets on every state change 2021-07-02 00:24:14 +02:00
cschwinne
0197d89976 Added MQTT button option 2021-07-01 20:51:52 +02:00
Blaz Kristan
ce725252cc Minor fixes. 2021-07-01 16:40:55 +02:00
Christian Schwinne
e16a67242e
Merge pull request #2011 from blazoncek/multi-button-update
Added MQTT support for buttons and simplified switch.
2021-07-01 14:57:12 +02:00
cschwinne
4c678a5010 Fixed a minor visual issue with slider trail not reaching thumb on low values 2021-07-01 14:56:18 +02:00
Blaž Kristan
73f07b2939 Update html_settings.h 2021-07-01 13:42:22 +02:00
Blaž Kristan
b58efa3df0 Merge branch 'master' into dev 2021-07-01 13:41:23 +02:00
Blaž Kristan
9f885407f5 Merge branch 'master' into dev 2021-07-01 13:24:48 +02:00
Christian Schwinne
c4f084a991
Merge JSON ircodes (#2048)
* add decodeIRJson and JSON remote option

* handle JSON API commands also

* removed code that forced IR codes in a certain range to be decoded by decodeIR24. Generate default ir.json files for currently supported remotes.

* comment out printing API commands in IR handling

* refactor decodeIRJson to change how ir.json is loaded add support for calling several c functions

* Handle setting palette when effect is still on default solid and will not display it

* remove colorUpdated notifier that was pasted in accidentally

* Update to handle both 24-key and 24-key old remotes (#1969)

* Update readme.md

* Update ir.cpp

Handle both 24-key and 24-key old in decodeIR switch statement

* Re-add JSON remote option

Co-authored-by: Scott Bailey <scottrbailey@gmail.com>
Co-authored-by: Artacus <40248830+scottrbailey@users.noreply.github.com>
2021-07-01 00:17:07 +02:00
cschwinne
4c73df4ba6 Shorten input size class names 2021-07-01 00:01:27 +02:00
cschwinne
4aa53aa5a5 Adjust input field widths 2021-06-30 21:53:22 +02:00
cschwinne
7483d3b229 Fixed settings page broken by using "%" in input fields (fixes #1516 ) 2021-06-30 18:21:56 +02:00
cschwinne
8b6cc708e7 Fixed a problem with disabled buttons reverting to pin 0 causing conflict 2021-06-30 12:33:51 +02:00
cschwinne
200960899e Removed preset cycle 2021-06-30 01:48:38 +02:00
cschwinne
599a456c81 Version bump to 0.13.0-b0 "Toki"
-   Added playlist editor UI
-   Reordered segment UI and added offset field
-   Raised maximum MQTT password length to 64 (closes #1373)
2021-06-30 01:23:35 +02:00
Christian Schwinne
4b46502d22
Playlist UI (#2046)
* Test 1

* State 2

* Playlist UI progress

* Playlist saving

* Playlist saving

* Playlist object array

* Added Offset to segment options

* Positioning

* Playlist UI complete
2021-06-30 01:01:15 +02:00
cschwinne
7233c55428 Segment Offset 2021-06-30 00:45:36 +02:00
Christian Schwinne
a58c5cce78
Merge pull request #1967 from poelzi/max_segments
Allow to override the max segments setting when compiling
2021-06-29 23:43:20 +02:00
Blaz Kristan
bc0a3f8a47 Better number handling in Usermod settings. 2021-06-29 18:36:55 +02:00
Blaz Kristan
ef59fd4b6f Better number handling in Usermod settings.
Added loading /holiday.json for backround image in UI.
Minor style changes.
2021-06-29 18:18:28 +02:00
Aircoookie
04b4ef6d85 Regenerate html_settings.h 2021-06-27 22:19:03 +02:00
Blaz Kristan
9e8aadb750 Usermod settings v2
- added POST field parsing
- simpler handling in readFromConfig()
2021-06-27 15:32:33 +02:00
Blaz Kristan
36e7c2467e Merge branch 'master' into dev 2021-06-27 12:36:04 +02:00
Blaz Kristan
f7ce83ea34 V2 of usermod configuration settings
- added parsing of POST fields to use proper type
- updated readFromConfig() to reflect parsing
- added a possibility to use nested object in UM settings
- internal changes and fixes
2021-06-27 12:15:35 +02:00
Blaz Kristan
81182bb125 Added parsing usermod settings parameters.
Added nested object handling in usermod settings parameters.
2021-06-25 23:20:01 +02:00
Blaz Kristan
2424df0d18 Merge branch 'master' into dev 2021-06-25 15:52:59 +02:00
cschwinne
af9aa7d201 Do not compile in example usermod 2021-06-25 12:15:23 +02:00
cschwinne
4cd3a614de Fixed preset only disabling on second effect/color change (fixes #2038 ) 2021-06-25 10:12:21 +02:00
cschwinne
1e5420e6a7 readFromConfig() update 2021-06-25 01:26:15 +02:00
cschwinne
660de0b4e5 Auto-create segments based on configured busses 2021-06-24 02:29:14 +02:00
Blaz Kristan
e9d07eadaa Additional traces of v2 API removed in WS.
JS cleanup.
2021-06-20 21:56:25 +02:00
Blaz Kristan
cd8d2c141e Merge branch 'master' into dev
Added pin reservation for Ethernet.
Added SSD1305 I2C display type.
2021-06-20 15:13:38 +02:00
cschwinne
c831d62bc3 Added 2 Ethernet boards and split Ethernet configs into separate file 2021-06-20 00:14:09 +02:00
Blaz Kristan
14ac66ff4e Minor optimisations.
Removed all traces of v2 JSON API.
2021-06-19 23:16:40 +02:00
Blaz Kristan
75bf758042 Incerased max segments.
Removed v2 JSON API.
Replaced col[] array handling.
Settings UI optimisations.
Increased DEBUG output period to 60s.
2021-06-19 18:06:30 +02:00
cschwinne
1539e703e9 Use sprintf_P for color array generation 2021-06-19 11:13:05 +02:00
cschwinne
495f7f190f Fixed DOS on Chrome tab restore causing reboot 2021-06-18 13:50:22 +02:00
Blaz Kristan
3acc521741 Bugfix for ESP8266 saving segments. 2021-06-18 12:16:04 +02:00
cschwinne
dfdb22f584 Optimized JSON buffer usage (pre-serialized color arrays) 2021-06-17 19:46:18 +02:00
Blaz Kristan
b7fb9e182b WLED_USE_PSRAM fix 2021-06-16 12:19:16 +02:00
Blaz Kristan
8574bf9d98 Fix for short IP in 4LD. 2021-06-16 09:25:10 +02:00
Blaz Kristan
1a80439825 Merge branch 'master' into dev 2021-06-15 23:36:12 +02:00
cschwinne
7d2f5f0799 Fixed div by 0 when using palette on single LED segment 2021-06-15 20:12:20 +02:00
Blaz Kristan
28bc07da2f Optimised 4 Line Display.
Added option to display Ethernet IP.
2021-06-15 16:57:02 +02:00
cschwinne
7610ab7a8d Update logo 2021-06-14 01:58:12 +02:00
Blaz Kristan
8517cc8211 Alternating IP address and device name on 4 Line Display. 2021-06-13 18:05:30 +02:00
cschwinne
623694ab73 Playlist additions 2021-06-10 02:52:20 +02:00
cschwinne
374457df70 A few small fixes 2021-06-09 12:57:16 +02:00
Blaz Kristan
024ec86dc5 Unloading playlist on effect change. 2021-06-07 23:45:11 +02:00
Blaz Kristan
f632ef0de8 Default dur from presetCycleTime. 2021-06-07 21:07:15 +02:00
Blaz Kristan
8fdf84068d Optimisations. 2021-06-07 21:05:31 +02:00
Blaz Kristan
c58ad64a28 Bugfix.
- unloading playlist on playlist apply
- optimisations in handlePlaylist()
2021-06-07 20:44:20 +02:00
Blaž Kristan
131625bb53 Endless playlist fix. 2021-06-07 14:16:29 +02:00
Blaž Kristan
cbf3ae4db4 Bugfix.
- unshuffled endless playlist fix.
2021-06-07 14:13:21 +02:00
Blaz Kristan
9ac7acf8b3 Added skinning capability. 2021-06-06 20:36:19 +02:00
Blaz Kristan
9dadb6da4c Added UI feedback for file upload. 2021-06-04 23:08:30 +02:00
Blaz Kristan
b6bbbeb9d3 Merge branch 'dev' of github.com:blazoncek/WLED into dev 2021-06-04 18:25:36 +02:00
Blaz Kristan
517e9f92ba Added uploading IR.json from settings page. 2021-06-04 18:25:33 +02:00
Blaž Kristan
7ec09c80a5 Changed boot preset apply logic. 2021-06-04 06:54:27 +02:00
Blaž Kristan
b0bfe341df Fixed typo. 2021-06-03 13:58:17 +02:00
Blaž Kristan
d6337f7500 Added MQTT support for buttons and simplified switch.
Added PIR sensor option.
2021-06-03 12:18:11 +02:00
Blaz Kristan
70cf6546ca Switch rewrite. 2021-06-03 05:50:55 +02:00
Blaz Kristan
0cdab52418 Added.
- PIS sensor switch option for button
Bugfix.
- proper switch high/low handling
2021-06-02 17:13:09 +02:00
Blaž Kristan
777a95d23c Bugfix.
- parentheses fix
2021-06-02 08:46:29 +02:00
Blaž Kristan
06caace827 Bugfix.
- incorrect use of PSTR() on 8266
2021-06-02 08:24:49 +02:00
Blaž Kristan
0a0a766c0d Bugfix.
- pushbutton inverted not saving
- mqtt on/off message
2021-06-02 06:21:43 +02:00
Dick Swart
344c9e9238 added SN_Photoresistor usermod 2021-06-02 12:01:06 +12:00
Christian Schwinne
89b2b066ef
Merge pull request #2004 from HyperAtlas/master
CRONIXIE check in json.cpp
2021-06-02 00:25:04 +02:00
Aircoookie
dfe065ef82 Fixed Pushbutton inverted not selectable 2021-06-02 00:22:57 +02:00
Blaž Kristan
2f9eacdf66 Added MQTT message on button press. 2021-06-01 11:03:18 +02:00
SpikeyHelmet
2178fd6ee9
CRONIXIE check in json.cpp 2021-06-01 06:37:35 +05:30
Christian Schwinne
9f13763637
Merge branch 'master' into toki 2021-05-30 13:22:42 +02:00
Blaz Kristan
79ac85e048 Small UI improvements.
Added hue selection for analog.
2021-05-30 12:11:34 +02:00
cschwinne
315d4f225a Added analog button hue control 2021-05-30 02:03:32 +02:00
cschwinne
85489458d8 Small improvements
Settings cosmetic changes (spaces, smaller pin inputs, moved analog legend to wiki)
Uncommented STATUSPIN code (still defined out by default)
Removed adalight pin 3 lock
Added define for PSRAM
2021-05-30 01:31:04 +02:00
cschwinne
bfc7f56c4d Accurate UDP sync for NTP enabled instances 2021-05-30 00:08:24 +02:00
Blaz Kristan
23c5ddce83 Added inverted analog button. 2021-05-28 18:21:16 +02:00
Blaz Kristan
7685f9b73d Ignore analogue pin -1 on ESP8266 2021-05-28 17:45:14 +02:00
Blaž Kristan
3bb9d220bb Bugfix:
- rewrite error-prone use of shifting
- allow -1 for analog pin on ESP8266
2021-05-28 14:22:54 +02:00
Blaž Kristan
664fad96fa Fixed error-prone use of shifting. 2021-05-28 14:14:50 +02:00
Christian Schwinne
669a610e36
Merge branch 'master' into multi-button 2021-05-28 10:03:27 +02:00
Blaž Kristan
7e0d9cb48c Added:
- analogue FX speed
- analogue FX intensity
- analogue palette selection
- UI legend
2021-05-28 08:47:15 +02:00
cschwinne
7cbc9d21b5 Fixed difference calculation 2021-05-27 23:29:11 +02:00
Blaz Kristan
62cb8358cc Added.
- analog for speed, intensity & palette
- legend in settings page
Fixed UI & UX.
- change of effect stops playlist
- new preset UI glitch
2021-05-27 17:57:04 +02:00
cschwinne
55b26751ae Cache CORS preflight request 2021-05-27 11:09:57 +02:00
cschwinne
c2892d7887 Add UDP sync of system time 2021-05-27 02:02:02 +02:00
cschwinne
6c8bf090fe Small optimizations 2021-05-27 00:09:52 +02:00
Blaz Kristan
2f30451067 Bugfix.
- temperature default values
- IR warnings
2021-05-26 21:33:40 +02:00
Blaz Kristan
6b5c2be701 Bugfix.
- preventing strip blinking due to usermod running
- temeperature reading with 0.5°C precision
2021-05-26 16:11:48 +02:00
Blaz Kristan
13bc378069 Fixes for analog. 2021-05-25 23:59:43 +02:00
Blaz Kristan
1ba70706c2 Bugfixes.
- multi-relay brightness check
- temperature no reading delay
- analog button fix & noise reduction
- IR removed custom
2021-05-25 23:00:21 +02:00
cschwinne
8431d0bd5c Replace Time with Toki 2021-05-25 09:59:19 +02:00
cschwinne
852f758be3 Subsecond accuracy NTP 2021-05-24 19:05:34 +02:00
cschwinne
b455f432d5 Toki 1st experiment 2021-05-24 14:34:03 +02:00
Blaz Kristan
6760744249 Minor tweak. 2021-05-23 21:31:47 +02:00
cschwinne
9b796531b2 Fixed Sunrise calculation (atan_t approx. used outside of value range) 2021-05-23 18:49:23 +02:00
Blaz Kristan
11c7d586d9 Bugfix.
- atan_t(x) for x>1
- incorrect switch type and missing analog
2021-05-23 18:22:26 +02:00
Blaz Kristan
39cd83b171 Temporary fix for inappropriate atan_t(). 2021-05-23 15:51:53 +02:00
Blaz Kristan
2fdbc88d8c Bugfixes.
- PWM bus not loading on boot
- analog 0 not turning Off
- conditional compile for Blynk
- segment name
2021-05-23 01:11:35 +02:00
Blaz Kristan
cc0f1be5d2 Bugfix saving PWM & button pins. 2021-05-22 00:13:49 +02:00
cschwinne
08d7a1c123 Set Nixie contents via JSON API
Elekstube mod support a subset of the cronixie display patterns
2021-05-21 22:23:12 +02:00
cschwinne
adf5c8c278 Center smaller images 2021-05-21 15:19:18 +02:00
Blaž Kristan
5f86a8a15b
Merge branch 'master' into multi-button 2021-05-21 13:59:33 +02:00
Blaž Kristan
042c756be8 Added analog button support.
Inverted switch fix.
2021-05-21 13:33:22 +02:00
Blaž Kristan
c4086b9127 Corrected 10bit ADC read for 8266 2021-05-21 12:40:38 +02:00
Blaž Kristan
0ada09891c Added analog button/potentiometer support (partial) 2021-05-21 12:08:47 +02:00
cschwinne
2d586406da First working Elekstube IPS and RTC mod 2021-05-21 10:10:29 +02:00
Blaž Kristan
651b4d2461 Fixed XML API <wv> containing -1 on Manual only RGBW mode (see #888, #1783) 2021-05-21 10:04:22 +02:00
Blaž Kristan
01b2468fea Changed getI() parameter name to reflect actual meaning. 2021-05-21 08:11:04 +02:00
cschwinne
371c4e0051 Fixed WS281x output on ESP32
Fixed potential out-of-bounds write in MQTT
Fixed IR pin not changeable if IR disabled
Fixed XML API <wv> containing -1 on Manual only RGBW mode (see #888, #1783)
2021-05-20 21:41:39 +02:00
Blaz Kristan
69099fcdd7 Multi button support. 2021-05-20 19:54:07 +02:00
Blaz Kristan
28e714db1e Multi button implementation.
Inverted button support.
Added configurable touch button and touch threshold.
2021-05-20 15:49:26 +02:00
Daniel Poelzleithner
57e50d0c33 Allow to override the max segments setting when compiling 2021-05-20 11:46:12 +02:00
Blaž Kristan
a0fd02e0c0 Inverted button support.
Config save/load fix.
2021-05-20 06:45:02 +02:00
Blaz Kristan
c925b3d218 Setting touch threshold string fix. 2021-05-19 22:32:50 +02:00
Blaz Kristan
5da4386f31 Shortened string. 2021-05-19 20:26:14 +02:00
Blaz Kristan
4104dec87f Addet touch button and touch threshold.
Fixed some errors.
2021-05-19 20:23:35 +02:00
Blaz Kristan
d40a555531 Button 0 not saving macros fix. 2021-05-19 18:52:20 +02:00
Blaz Kristan
95df91a03b Multi button implementation. 2021-05-19 18:39:16 +02:00
Blaž Kristan
3a8caa15b9 Reverted retained MQTT messages. 2021-05-19 08:22:41 +02:00
Blaz Kristan
a5a25f02e3 Merge JSON IR code into master changes. 2021-05-18 22:04:51 +02:00
Blaz Kristan
bfd7be543a Merge branch 'master' of https://github.com/aircoookie/WLED into dev
Conflicts:
	tools/cdata.js
	usermods/PIR_sensor_switch/readme.md
	usermods/Temperature/readme.md
	wled00/FX.h
	wled00/FX_fcn.cpp
	wled00/bus_manager.h
	wled00/bus_wrapper.h
	wled00/cfg.cpp
	wled00/const.h
	wled00/data/settings.htm
	wled00/data/settings_leds.htm
	wled00/data/settings_um.htm
	wled00/html_settings.h
	wled00/json.cpp
	wled00/mqtt.cpp
	wled00/set.cpp
	wled00/wled.cpp
	wled00/wled.h
	wled00/wled_eeprom.cpp
	wled00/wled_server.cpp
	wled00/xml.cpp
2021-05-18 15:45:34 +02:00
Blaž Kristan
778e790e82 Added attributtion for JSON IR codes. 2021-05-18 10:27:34 +02:00
Blaž Kristan
17eeb22971 JSON IR remote 2021-05-18 09:48:58 +02:00
Blaž Kristan
1617658bfe
Per strip skip first LED implementation (#1871)
* Per strip "skip first LED".
Moved skip first led into bus manager.

* Update cfg.cpp

* Do not display Skip 1st on analog types

Rename skipFirstLed() to clarify what it does
Remove RGBW override

Co-authored-by: Aircoookie <dev.aircoookie@gmail.com>
Co-authored-by: Aircoookie <cschwinne@gmail.com>
2021-05-17 16:23:46 +02:00
Blaz Kristan
991fe31569 Reverted status MQTT message. 2021-05-17 16:12:34 +02:00
Christian Schwinne
4bcfff780a
Merge pull request #1965 from blazoncek/usermod-update
Updated usermod readme and usability enhancements.
2021-05-17 13:05:11 +02:00
Blaž Kristan
12f9ad8f7f Updated usermod readme and usability enhancements. 2021-05-17 12:52:27 +02:00
cschwinne
6f843fcb27 Added experimental {"on":"t"} (resolves #1952 ) 2021-05-17 12:29:30 +02:00
cschwinne
e0f17e1778 Always copy MQTT payload 2021-05-17 10:38:07 +02:00
Blaz Kristan
4a5a9b73b1 UI fixes & small changes. 2021-05-16 19:06:00 +02:00
Blaz Kristan
94113827a7 Exposing segment power and intensity button/slider 2021-05-16 17:19:35 +02:00
Blaz Kristan
5ad0fdf39c Added on/off button for Staircas usermod on Info page. 2021-05-15 22:36:40 +02:00
Blaz Kristan
3fde7365f9 Enhanced Animated Staircase usermod. 2021-05-15 13:37:27 +02:00
Blaz Kristan
f6a5bc9b40 Removed "retain" from MQTT messages. 2021-05-14 20:57:56 +02:00
Blaz Kristan
9a5917a331 Added PSRAM support for effect data. 2021-05-13 17:35:20 +02:00
Blaz Kristan
d3b5594092 Added reserverd pins for UI. 2021-05-13 16:46:29 +02:00
Blaz Kristan
742d580eae Removed Usermod child/parent relationship. 2021-05-13 16:19:53 +02:00
Blaz Kristan
ec0feb68f4 Added (partial) PSRAM support for WROVER chips.
Minor fixes.
2021-05-13 16:05:52 +02:00
cschwinne
bfb27c49a2 Fixed possibility of non-0-terminated MQTT payloads 2021-05-13 01:04:33 +02:00
cschwinne
cb7b7f1dca Add notice if no usermod installed 2021-05-11 23:21:57 +02:00
Blaz Kristan
2b7f2d4744 MQTT null termination fix.
Nigtttime detection for PIR fix.
2021-05-11 16:20:43 +02:00
cschwinne
5ca8bc3f2a Fixed various Codacy code style and logic issues 2021-05-11 14:54:03 +02:00
Aircoookie
9c5afda83a
Merge branch 'master' into tm1814 2021-05-11 11:59:35 +02:00
Blaž Kristan
05b86a71fd Sunrise/sunset debugging for PIR sensor. 2021-05-11 09:36:30 +02:00
cschwinne
d94d3d4bc5 Added experimental /json/cfg endpoint for changing settings from JSON 2021-05-11 01:11:16 +02:00
Blaz Kristan
e0c0f29fc6 Added nigttime only and MQTT only options to PIR sensor switch usermod.
Clarified empty UM settings a bit.
2021-05-10 22:41:27 +02:00
Aircoookie
119826cb9b
Merge pull request #1951 from blazoncek/user-configurable-usermods
User configurable usermods.
2021-05-09 23:10:37 +02:00
cschwinne
6ab95ed4ef Remove Usermod inheritance from UsermodManager 2021-05-09 22:54:04 +02:00