Commit Graph

237 Commits

Author SHA1 Message Date
cschwinne
71edc3a084 Fixed incorrect over-memory indication in LED settings on ESP32 2021-03-06 02:35:49 +01:00
cschwinne
05521bfd3a Added destructor for BusPwm (fixes #1789) 2021-03-04 22:17:25 +01:00
cschwinne
c0dd98b6d7 Fixed relay mode inverted when upgrading from 0.11.0 2021-03-04 12:10:18 +01:00
DerFetzer
56cf1c818b Send notification for HTTP API calls with only effects parameters 2021-03-01 22:44:28 +01:00
cschwinne
cfc346abad Fix warnings misc fixes 2021-02-27 01:16:06 +01:00
Louis Beaudoin
b460d0f533
Fix Warnings (#1744)
* Remove -w (Suppress all warnings, including those which GNU CPP issues by default.) and add back in -Wall (Turn on all optional warnings which are desirable for normal code.) from build_flags

* Fixes warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]

* Fixes warning: "CONFIG_LITTLEFS_FOR_IDF_3_2" redefined

* Fixes warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]

* Fixes warning: enumeration value 'onoff' not handled in switch [-Wswitch]

* Fixes warning: "ntohl" redefined, warning: "ntohs" redefined, warning: "htonl" redefined, warning: "htons" redefined
- Original fix: 858f8f4ee9

* Fixes warning: unused variable 'mainSeg' [-Wunused-variable]

* Fixes warning: unused variable 'start' [-Wunused-variable]

* (untested!) Fixes warning: operation on '...' may be undefined [-Wsequence-point]

* Fixes warning: unused variable

* Fixes warning: unused variable and warning: narrowing conversion

* Fixes warning: unused variable

* Fixes warning: unused variable

* (untested!) Fixes warning: statement has no effect [-Wunused-value]

* Fixes warning: control reaches end of non-void function

* Fixes warning: unused variable

* Fixes warning: left operand of comma operator has no effect

* Fixes warning: no return statement in function returning non-void

* (untested!) Fixes warning: ISO C++ forbids converting a string constant to 'char*' and fixes warning: unused variable 'nPins'

* Fixes warning: deleting array 'dmxData'

* Fixes warning: unused variable

* Remove all warning suppression buildflags

Co-authored-by: Louis Beaudoin <louis@embedded-creations.com>
Co-authored-by: Aircoookie <dev.aircoookie@gmail.com>
2021-02-27 00:20:31 +01:00
Aircoookie
37d5b9109f
Merge branch 'dev' into mergedev_210222 2021-02-22 22:31:12 +01:00
k7bbr
e4cda4bb99 change default Ethernet board to none 2021-02-20 02:18:37 -07:00
k7bbr
f333f867c5 Updated platformio.ini to reference esp32_eth env
change default ethernet type to none
add macro option to change default eth board at compile time
2021-02-20 01:54:54 -07:00
cschwinne
0902b628f8 Added FPS indication in info 2021-02-05 01:33:26 +01:00
cschwinne
9518c5f2e4 might work 2021-01-30 20:51:36 +01:00
cschwinne
e44173ff09 JSON ledDoc (does not work, crash on delete) 2021-01-30 13:23:38 +01:00
Blaz Kristan
dd433d8af0 Auto node discovery. 2021-01-22 16:17:18 +01:00
cschwinne
c105f3b970 Mulipin select compiles
Need to work on JS and set.cpp next
2021-01-21 01:21:16 +01:00
cschwinne
b0306867b4 Resolve merge conflict 2021-01-18 21:03:10 +01:00
cschwinne
d5025fdbcc Fixed canAllShow() and removeAll() 2021-01-18 20:51:32 +01:00
Blaz Kristan
bb8d5ac13f Dynamic allocation for bus manager. 2021-01-17 00:20:31 +01:00
cschwinne
b934634159 First light from busmanager! (still not usable though) 2021-01-16 00:50:43 +01:00
Aircoookie
88c0a9e30a
Merge branch 'dev' into mergedev-210115 2021-01-15 11:07:21 +01:00
lonestriker
82e7328903
Add support for WT32-ETH01 ethernet board and make ethernet support configurable (#1583)
* Initial support for WT32-ETH01 board

* Initial ethernet config option, doesn't save yet

* Fixed saving/restoring ethernet option, works now!

* Fixed ESP32-POE pin config (thanks to tbnobody)

* Remove esp32_eth target (use poe), minor cleanup

* Fix BTNPIN for WT32-ETH01, as found by @k7bbr

* Various fixes to ethernet option

Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2021-01-15 10:37:45 +01:00
cschwinne
d6b366c77f Finished multi segment transitions 2021-01-13 11:24:27 +01:00
cschwinne
9551519a35 First working multisegment transitions 2021-01-09 00:35:48 +01:00
cschwinne
0df6826c91 Fixed HTTP changing segments uncommanded (#1618)
Replaced Red & Blue effect with Aurora effect (PR #1589)
Updated copyright year and contributor page link
2021-01-05 21:35:07 +01:00
cschwinne
f5ed710c0b Same procedure as every year James 2020-12-31 20:47:38 +01:00
cschwinne
e5ae07b3e8 Fixed usermod info in Info screen (#1608) 2020-12-31 17:27:40 +01:00
cschwinne
f1535e1f71 Fixed info screen 2020-12-31 16:16:33 +01:00
Aircoookie
2005a2abd4
Merge branch 'dev' into mergedev-201226 2020-12-26 14:23:14 +01:00
Def3nder
e16bab8dd9
TV Simulator Effect (#1548)
* New Effect "TV Simulator"

based on "Fake TV Light for Engineers" by Phillip Burgess https://learn.adafruit.com/fake-tv-light-for-engineers/arduino-sketch

* removed some not-used functions 

...from my 1st attempt with "Phoney TV" - but this one did not look good.

* Created new version of tv_colors.h based on 18 movies

...and some corrections

* Add include guards for tv_colors.h and disable option

Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2020-12-22 13:15:57 +01:00
Mike
068c5851ef
Add fields for customization Blynk host (#1543)
* Add fields for customization Blynk host

Add fields to 'Sync Interfaces' for customization Blynk host.
Now you can set you own Blynk server.
All you needs its set custom host and port to local Blync server.

* Lower blynk host length (memory usage)

Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2020-12-22 00:44:16 +01:00
cschwinne
f7893d4e4b Fixed JShint warnings and minify HTML 2020-12-21 19:48:21 +01:00
cschwinne
79e767ba79 Boot brightness 0 will now use the brightness from preset
Add iOS scrolling momentum (from PR #1528)
2020-12-20 18:51:46 +01:00
cschwinne
5d6b97a63e Release of WLED v0.11.1
Fixed AP hide not saving (fixes #1520)
Fixed MQTT password re-transmitted to HTML
Hide Update buttons while uploading, accept .bin
Make sure AP password is at least 8 characters long
2020-12-19 17:09:39 +01:00
cschwinne
c277ebb43e Fixed Alexa discovery 2020-12-16 22:55:07 +01:00
cschwinne
84e4a4bb52 Fixed an issue that made it impossible to deactivate timed presets 2020-12-16 00:10:48 +01:00
cschwinne
c53647cd18 Added Preset ID quick display option 2020-12-14 23:32:57 +01:00
cschwinne
b1a7fe0f80 Fixed RGBW mode not saved between reboots (fixes #1457) 2020-12-13 19:02:12 +01:00
cschwinne
b5232886d9 Fixed preset cycle default duration rounded down to nearest 10sec interval (fixes #1458)
Enabled E1.31/DDP/Art-Net in AP mode
2020-12-10 17:57:38 +01:00
cschwinne
03516e11f7 Various fixes 2020-12-10 16:27:23 +01:00
cschwinne
854501385e Bus progress 2020-12-07 01:39:42 +01:00
cschwinne
bc96ca48b6 UDP parsePacket() with sync disabled 2020-12-02 22:47:31 +01:00
cschwinne
55fd781c77 Fixed compilation for analog (PWM) LEDs 2020-12-01 00:38:26 +01:00
cschwinne
3a3948e74f Release of WLED v0.11.0 2020-11-29 22:07:12 +01:00
Def3nder
c01dd232c5
FIX IR_PIN to IRPIN (#1394)
...in cfg.cpp the if statement used "IRPIN" (which is consistent to all other PIN names), but on the declaration-side "IR_PIN" was used.

Changed all occurences of "IR_PIN" to "IRPIN".
2020-11-29 20:47:13 +01:00
cschwinne
fb91d9b2d4 Color order override macros 2020-11-27 23:59:00 +01:00
cschwinne
223bd969fd Version bump to 0.11.0 "Mirai"
Improved preset name sorting
Fixed Preset cycle not working beyond preset 16
2020-11-23 00:58:58 +01:00
cschwinne
ae46eeabef Fixed invalid save when modifying preset before refresh (might be related to #1361)
Fixed brightness factor ignored on realtime timeout (fixes #1363)
Fixed Phase and Chase effects with LED counts >256 (PR #1366)
2020-11-23 00:10:14 +01:00
cschwinne
bc45f8f1d8 Fixed Brightness slider beneath color wheel not working (fixes #1360)
Fixed invalid UI state after saving modified preset
2020-11-21 22:23:00 +01:00
cschwinne
4875f5e275 BTNPIN can now be disabled by setting to -1 (fixes #1237)
Added HEX color receiving to JSON API
Moved Kelvin color receiving in JSON API
2020-11-20 00:33:17 +01:00
cschwinne
e19ab9a0d5 Add Hawaii time (resolves #1354 )
Platformio.ini updates and streamlining (PR #1266)
my_config.h custom compile settings system (not yet used for much, adapted from PR #1266)
Linebreak after 5 quick select buttons
2020-11-18 23:27:54 +01:00
Aircoookie
6b942be1cd
Merge branch 'filesystem' into 1m_ota 2020-11-18 01:05:51 +01:00
cschwinne
77aa2b6ba9 Streamline platformio.ini 2020-11-18 00:54:41 +01:00
Jason2866
a839ec4832
Add gzip support for full OTA possibilitys for 1M build (#1266)
* delete history

* add firmware

Signed-off-by: Jason2866 <obermeier.johann@googlemail.com>

* Delete platformio_override.ini

* Update .gitignore

* Delete WLED_tasmota_1M.bin

* Delete WLED_tasmota_1M.bin.gz

* Update platformio.ini

* Core 2.7.4.5

* new override

* actual firmware

* Update user_config_override_sample.h

* Delete platformio_override.ini

* Delete WLED_tasmota_1M.bin

* Delete WLED_tasmota_1M.bin.gz

* core 2.7.4.7
2020-11-17 21:49:39 +01:00
cschwinne
176e18e4c0 Move Network class to src/dependencies (fixes #1349 ) 2020-11-17 08:57:05 +01:00
cschwinne
b697df35c6 A few more small fixes 2020-11-15 22:52:59 +01:00
cschwinne
5236625485 A few small fixes 2020-11-15 20:58:04 +01:00
cschwinne
595fd9377c Remove FS defines
Increase boot preset max. to 250
Update changelog
Update readme
2020-11-15 15:45:51 +01:00
Aircoookie
8c0592cdb7
Merge branch 'filesystem' into mergefs-201115 2020-11-15 13:21:56 +01:00
cschwinne
0c73ecf6a8 Added Pin Manager 2020-11-15 12:41:51 +01:00
tbnobody
c365fd9d74
Ethernet Support (#1316)
Ethernet Support
2020-11-13 18:25:13 +01:00
Aircoookie
e9d9760e16
Merge branch 'filesystem' into mergefs-201112 2020-11-12 11:12:10 +01:00
cschwinne
560f72a320 Add JSON receiving to MQTT /api 2020-11-12 09:13:08 +01:00
cschwinne
3425f2bf34 Add Playlist feature 2020-11-11 23:48:14 +01:00
cschwinne
9d7f1d230c Only add 16 to macros if they are not 0 2020-11-09 20:48:44 +01:00
cschwinne
7f973ad131 Unaccessible wsec.json and preset loading fix 2020-11-09 11:09:47 +01:00
cschwinne
1f42070104 A few fixes 2020-11-09 00:50:13 +01:00
cschwinne
98e4ac6b27 FS working for ESP8266 2020-11-08 23:44:10 +01:00
cschwinne
362156c8ab F() 2020-11-07 23:54:56 +01:00
cschwinne
b8fcab29ac Inversed Rain direction (fixes #1147) 2020-11-04 23:20:34 +01:00
cschwinne
f725506df0 Settings deserialization 2020-11-03 00:35:04 +01:00
cschwinne
aa27b85538 Re added old C9 palette 2020-11-01 20:54:35 +01:00
Aircoookie
cac8fd93e4
Merge branch 'filesystem' into mergefs-201031 2020-10-31 21:21:32 +01:00
cschwinne
373d12be64 Realtime max. brightness now honors brightness factor (fixes #1271)
- Colorful effect now supports palettes
- Added C9 2 palette (#1291)
- Improved C9 palette brightness by 12%
- Disable onboard LED if LEDs are off (PR #1245)
- Added optional status LED (PR #1264)
- Realtime max. brightness now honors brightness factor (fixes #1271)
- Updated ArduinoJSON to 6.17.0
2020-10-29 01:23:04 +01:00
cschwinne
2525429070 deEEP for presets 2020-10-23 17:48:01 +02:00
Aircoookie
bbffb6d901
Merge branch 'filesystem' into mergefs-201019 2020-10-19 23:37:18 +02:00
Jeff Rescignano
235c123ad0
Add status led (#1264)
* Add status led

* Shorten code

* Fix "Shorten code"

* Change ledStatusType to an unsigned short
2020-10-19 18:08:45 +02:00
cschwinne
eb65eafbe0 Working API commands 2020-10-13 01:39:34 +02:00
cschwinne
b0828a6280 Bigger buffer testing 2020-10-08 00:52:15 +02:00
cschwinne
d2ffb3ca9d FQ quota and info 2020-10-07 17:48:22 +02:00
cschwinne
606cd18dc4 Working deletion
Added HTTP API support to JSON API
2020-10-03 00:29:36 +02:00
Aircoookie
c68f31a11c
Merge branch 'filesystem' into mergefs-201002 2020-10-02 13:39:25 +02:00
cschwinne
3107943af8 Fixed interaction of T and NL HTTP API commands (#1214) 2020-10-02 12:30:17 +02:00
cschwinne
f66c28a1bc Fix MQTT bootloop (no F() macro, #1199 ) 2020-09-29 21:41:52 +02:00
cschwinne
ee8596d175 DDP working 2020-09-29 01:13:29 +02:00
cschwinne
52df963be9 DDP Support 2020-09-28 16:29:01 +02:00
cschwinne
8d3ff16037 Add udpNotifier2 (JSON+HTTP, closes #1205 )
Added Loxone defines
Fix missing timezones (#1201)
2020-09-27 11:43:28 +02:00
m0fa
b10ab358da
Loxone support added (#1185)
* A separate socket for UDP api has been added. This uses the same API as HTML. Commands for Loxone were added to the API.

* html files for udp api newly generated

* codm pixel controller board configurations added to platformio.ini file

* Parser for LX/LY commands adapted. Calculation of the values corrected. Segment handling for LX/LY removed.

* Lox parser moved to own file. Lox parser added to the JSON api. Within a segment LX and LY are now supported.

* serial port removed

* F() macro added

Co-authored-by: Marius Groos <marius.groos@codm.de>
2020-09-27 11:37:16 +02:00
Aircoookie
bd65bf2175
Merge branch 'filesystem' into merge-fs2 2020-09-21 19:48:12 +02:00
cschwinne
d70332f2a2 Fixed LPD8806 compilation (#971) 2020-09-20 22:21:29 +02:00
cschwinne
35b54e2f88 Add CY=2 for cycle toggling (closes #1174) 2020-09-20 16:40:32 +02:00
cschwinne
edbe8131ab Reduce heap usage by 4kB 2020-09-20 01:18:31 +02:00
cschwinne
10c22efbb5 Fixed 170th pixel dark in E1.31 2020-09-17 10:40:32 +02:00
cschwinne
2594cb23c4 Merge branch 'filesystem' of https://github.com/Aircoookie/WLED into filesystem 2020-09-15 21:28:51 +02:00
cschwinne
d975f6e23a Update ArduinoJson to 6.16.1
Add fsinfo to JSON info
2020-09-15 21:28:43 +02:00
Aircoookie
16f41fc4b4
Merge branch 'filesystem' into merge-200914 2020-09-14 16:32:31 +02:00
cschwinne
1263f5e046 Presets work 2020-09-14 00:31:38 +02:00
cschwinne
96713ef383 LittleFS by default 2020-09-13 22:00:47 +02:00
cschwinne
2716f4cbe9 Fixed passwords not clearable 2020-09-10 11:01:05 +02:00
cschwinne
b1acf6088f Presets in FS function 2020-09-09 09:51:04 +02:00
Aircoookie
559891ac43
New Segments are now initialized with default speed and intensity (#1158) 2020-09-07 21:02:02 +02:00
cschwinne
1fbe1d1855 New Segments are now initialized with default speed and intensity 2020-09-07 21:01:10 +02:00
Aircoookie
b6789e0011
Merge branch 'filesystem' into master-to-fs 2020-09-03 15:02:17 +02:00
cschwinne
2f2bebe506 Fixed bootloop if mDNS is used on builds without OTA support 2020-09-03 14:04:33 +02:00
cschwinne
503b8cbf34 Release of WLED v0.10.2 2020-08-31 17:03:07 +02:00
cschwinne
41a84160ec 0.10.2-rc 2020-08-30 23:31:58 +02:00
cschwinne
36e0a1eb23 Individual LED control via JSON (closes #226 ) 2020-08-29 22:26:39 +02:00
cschwinne
ac9a567e1f Pacifica better speed 2020-08-25 17:23:17 +02:00
Aircoookie
7dc1240c18
Merge pull request #1100 from mickabrig7/master
Improve TPM2.NET code
2020-08-20 08:43:22 +02:00
cschwinne
39a80f8dc7 Add easy segment mirroring (closes #1010) 2020-08-20 00:04:02 +02:00
mickabrig7
ce446dac92 Improve TPM2.NET code
Add support for receiving TPM2.NET packets out of order, and hopefully prevent crashes if faced with protocol errors
2020-08-19 10:40:16 +02:00
cschwinne
5a4b719995 Fixed Auto White mode setting (fixes #1088) 2020-08-10 23:35:18 +02:00
garyd9
2635a3edd0 rename global var "local" to "localTime" 2020-08-04 09:32:54 -04:00
Aircoookie
ec6a243e3e
Hostname alphanumeric (#1048)
* Use string derived from serverDescription for wifi.hostname()

The code was sending illegal hostname strings to WiFi.hostname() (which is then submitted to DHCP and often times to DNS.)  A valid hostname contains only alphanumeric characters and hyphens (though it can't start with a hypen.)  This change simply alters the value passed to wifi.hostname() by replacing all non alphanum chars with hyphens while ensuring the first char is never a hyphen.  If the resulting hostname is empty, it uses the escapedMac value (which I'm assuming is initialized by the time this code executes.)

This change would result issue #1033

* replace string with char array
prefix wled
improve documentation

Co-authored-by: garyd9 <garyd9@hotmail.com>
Co-authored-by: Gary Dezern <gdezern@internal.youforgot.net>
2020-07-19 16:24:26 +02:00
cschwinne
9947c51af7 Fix lightning effect never using last 2 LEDs
Disable Websockets by default (temporarily)
2020-07-02 00:49:37 +02:00
cschwinne
409303d0f5 Merge branch 'master' into websockets 2020-06-29 22:00:21 +02:00
cschwinne
10a1275a52 Added SV=2 to HTTP API, allow selecting single segment only 2020-06-26 23:30:13 +02:00
cschwinne
5464cbc2ed Fix Alexa not turning off white channel (fixes #1012) 2020-06-26 23:09:19 +02:00
cschwinne
3b3f8e6f43 WebSockets
Better TwinkleFox speed regulation
2020-06-26 17:28:35 +02:00
cschwinne
4f7dc5be34 Added Sunrise nightlight mode and more UI features
-   Added Sunrise nightlight mode
-   Added Chunchun effect
-   Added `LO` (live override) command to HTTP API
-   Added `mode` to `nl` object of JSON state API, deprecating `fade`
-   Added light color scheme support to web UI (click sun next to brightness slider)
-   Added option to hide labels in web UI (click flame icon next to intensity slider)
-   Added hex color input (click palette icon next to palette select) (resolves #506)
-   Added support for RGB sliders (need to set in localstorage)
-   Added support for custom background color or image (need to set in localstorage)
-   Added option to hide bottom tab bar in PC mode (need to set in localstorage)
-   Fixed transition lag with multiple segments (fixes #985)
-   Changed Nightlight wording (resolves #940)
2020-06-22 12:30:31 +02:00
cschwinne
70c73d2e0e Lots of new effects! 2020-06-06 00:57:34 +02:00
cschwinne
696e438df7 Added v2 usermods API 2020-05-28 02:20:02 +02:00
cschwinne
0fc099926f Fixed TPM2 2020-05-23 16:09:49 +02:00
cschwinne
06b9b66272 Added TPM2 protocol support via Serial (#933) 2020-05-22 23:30:55 +02:00
cschwinne
fec8343f45 Added TPM2.NET protocol support 2020-05-18 16:36:31 +02:00
Aircoookie
afd990bd71
Merge pull request #862 from pille/DMX-proxy
implement DMX proxy mode via MAX485
2020-05-11 11:40:11 +02:00
cschwinne
ef1f835e57 Update to Espalexa v2.4.6
(+1.6kB free heap memory)
-   Added `m5atom` PlatformIO environment
2020-05-10 23:58:50 +02:00
cschwinne
329b2ba275 Fixed Preset Slot 16 always indicating as empty (fixes #891) 2020-05-09 00:29:42 +02:00
cschwinne
dfc99faea8 First preset progress 2020-05-05 09:01:09 +02:00
cschwinne
71886c162b Release of WLED v0.10.0
DMX Single RGW and Single DRGB modes now support an additional white channel
Improved palettes derived from set colors and changed their names
2020-05-03 20:57:53 +02:00
cschwinne
df1f516f6b Added ACST and ACST/ACDT timezones ( closes #881 ) 2020-05-03 01:48:23 +02:00
cschwinne
2e55189d59 New web UI features 2020-05-02 01:59:41 +02:00
cschwinne
94c5f0d7a8 New API properties
-   Added realtime override option and `lor` JSON property
-   Added `lm` (live mode) and `lip` (live IP) properties to info in JSON API
-   Added reset commands to APIs
-   Added `json/si`, returning state and info, but no FX or Palette lists
-   Added rollover detection to millis(). Can track uptimes longer than 49 days
-   Attempted to fix Wifi issues with Unifi brand APs
2020-04-30 01:52:36 +02:00
cschwinne
77edd12030 Added brightness and power for individual segments ( #289 , #290 ) 2020-04-23 23:52:33 +02:00
cschwinne
db60309ce8 Added Candle Multi effect
Added Palette capability to Pacifica effect
2020-04-22 00:51:00 +02:00
pille
8bfae2fa74 implement DMX proxy mode via MAX485
output a configurable universe (E1.31 or ArtNet) via MAX485 module that connects its DI to D4 on d1_mini.
as this function competes with DMX output for the same hardware, the universe to proxy acts as a switch.
0       = DMX OUTPUT (of configured WLED LEDs, which is the classic behaviour)
1-63999 = DMX PROXY  (selected universe, ArtNet is limited up to 32768)
2020-04-21 22:56:14 +02:00
cschwinne
6a5b757a24 TM1814 support (closes #518 ) 2020-04-19 13:25:27 +02:00
cschwinne
e12757dbb9 Add Art-Net support (#417) 2020-04-13 00:42:27 +02:00
cschwinne
19945e4ccb Fix DMX compilation 2020-04-10 12:30:08 +02:00