Commit Graph

241 Commits

Author SHA1 Message Date
Blaž Kristan
4d95248f16 PWM fan startup speed bugfix. 2021-10-04 11:49:47 +02:00
Blaž Kristan
368f52ade6 Added configurable PWM fan parameters:
- min PWM value (%)
- IRQs per rotation
2021-10-04 11:32:56 +02:00
Blaz Kristan
783a21d88d Fix for incorrect RPM reported. 2021-10-03 14:00:29 +02:00
Blaz Kristan
62e7c861bd Added readme for PWM fan usermod. 2021-10-03 10:27:01 +02:00
Blaz Kristan
9d5b6eac55 PWM fan usermod. 2021-10-02 22:45:42 +02:00
Blaz Kristan
72c5de6eae Minor optimization in Temperature UM. 2021-10-02 22:32:33 +02:00
Blaz Kristan
dc9d48850f Added PIR sensor night time presets.
Added PIR sensor Disable/Enable button.
UI refinements.
Added colorUpdated() on HTTP API in IR JSON.
2021-09-28 23:27:40 +02:00
Blaz Kristan
d049e0a149 Fix for missing inverse for analog bus.
Fix for usermod pin settings not being accounted for.
2021-09-19 14:28:27 +02:00
Blaz Kristan
56167f84ad Added I2C clock frequency parameter for 4LD. 2021-09-15 23:51:49 +02:00
Blaz Kristan
9be995bb08 4LD & AutoSave usermod fixes.
Debugging usermod time.
2021-09-11 23:32:36 +02:00
Blaz Kristan
4d6116ed40 Minor usermod optimisations. 2021-09-08 23:25:05 +02:00
Blaz Kristan
3a83753611 Rewritten police_base effect.
Optimisation in 4LD.
2021-09-07 22:59:31 +02:00
Blaz Kristan
4875544888 Enhanced ST7789 display usermod. 2021-08-28 21:59:52 +02:00
Blaž Kristan
916ad0a58e Merge branch 'master' into dev 2021-08-26 09:09:41 +02:00
Blaz Kristan
84d0c17c4b Compile warnings eliminated.
Minor typo.
DEBUG_PRINTF fix for 8266
2021-08-24 21:35:47 +02:00
Henry Gabryjelski
1d4487b6cd
Ethernet configuration fix, improve PinManager (#2123)
* Improved pin manager, ethernet config

* Ethernet is configured prior even to LED pins
* Pin Manager allocation / deallocation functions
   now take an "ownership" tag parameter, helping
   avoid accidentally free'ing pins that were allocated
   by other code
* Pin Manager now has ability to allocate multiple
  pins at once; Simplifies error handling

* Fix operator precedence error

Bitwise AND has lower precedence than the
relational "greater than" operator.

* PinManager update for some user modules

* don't build everything...

* Final step to reduce RAM overhead

* update comment

* remove macros

* Remove leftover allocated

* Init ethernet after settings saved

Co-authored-by: Christian Schwinne <dev.aircoookie@gmail.com>
2021-08-23 14:14:48 +02:00
Blaž Kristan
ff8145b745
Merge pull request #2101 from blazoncek/fix-mqtt-pir
Fix for missing off-only MQTT messages.
2021-08-21 11:10:41 +02:00
Blaz Kristan
530e8b39e5 Added SSD1306 SPI display option to 4 Line Display 2021-08-20 23:58:09 +02:00
Blaz Kristan
5926d396f9 Merge branch 'master' of https://github.com/aircoookie/WLED into dev 2021-08-20 23:32:28 +02:00
Maximilian Mewes
f04c9d101e
Added usermod "battery status basic" (#2127)
* added usermod battery_status_basic

* test.. something is wrong

* Squashed commit of the following:

commit 0f845527c53f838e2c68d50ec3e9d6c68c4cee46
Author: itCarl <mewes.maximilian@gmx.de>
Date:   Tue Aug 10 18:35:15 2021 +0200

    updated readme and added image showing info modal

commit 055579fcf71796519d00566452030f31798121d0
Author: itCarl <mewes.maximilian@gmx.de>
Date:   Mon Aug 9 20:53:07 2021 +0200

    small map function fix

commit 811614cf9e73f4731acb234d0d210a7b19565e9a
Author: itCarl <mewes.maximilian@gmx.de>
Date:   Mon Aug 9 19:35:21 2021 +0200

    updated ui

commit cadf2e23b7
Author: itCarl <mewes.maximilian@gmx.de>
Date:   Mon Aug 9 16:07:32 2021 +0200

    added usermod battery_status_basic

* updated readme, changed USERMOD_BATTERY_MIN_VOLTAGE default to 2.6 volt

* fixed readme image file naming

* added usermod settings for runtime changes

* fixed copy and paste mistake

* undo ui changes

* reworked addToJsonInfo() to make it compatible with the standard Info page.

* removed images from readme

* added ESP32 support

* updated readme
2021-08-20 20:42:46 +02:00
Blaz Kristan
0e200e0c34 Center text on display. 2021-08-20 19:37:05 +02:00
Blaz Kristan
5c3c8b7b8a SPI display option for 4 Line Display usermod. 2021-08-19 16:13:30 +02:00
Blaz Kristan
07d11c845c Fix for missing off-only MQTT messages. 2021-07-28 22:50:29 +02:00
Blaz Kristan
6e9a69be5c Fix for missing off-only MQTT messages.
Automatic WS reconnect.
2021-07-28 22:45:11 +02:00
Blaz Kristan
b3b3e3ea20 God damn CRLF conversion. (I want to keep it clean) 2021-07-23 21:48:38 +02:00
Blaz Kristan
9f0f6181a1 Added PIR option to trigger only if WLED is off. 2021-07-23 18:43:51 +02:00
Blaz Kristan
251d5f4135 Added PIR option to trigger only if WLED is off. 2021-07-23 18:37:34 +02:00
Blaž Kristan
9ba7e5d567
Fix for not honouring enabled state for PIR usermod. (#2090) 2021-07-22 14:41:11 +02:00
Blaž Kristan
02b6d53544
Rotary Encoder Compilation fix. (#2085)
* Compilation fix.

* Make rotary encoder usermod runtime configurable.
2021-07-20 13:41:30 +02:00
Blaž Kristan
611816c8e3 Rotary encoder runtime configuration. 2021-07-20 08:14:47 +02:00
Blaz Kristan
31e34d6f19 Rotary encoder compile fix. 2021-07-18 20:50:43 +02:00
Blaz Kristan
b0cfcb1999 Merge branch 'master' into dev 2021-07-10 17:01:20 +02:00
Andy Hofmann
0862859f93
New usermod: Support for RGB Rotary Encoder Board (#2068)
* Added RGB Rotary Encoder usermod v1

* RGB rotary encoder UM: Readme; Added example video

* RGB rotary encoder UM: Readme; Added example video

* RGB rotary encoder UM: Fixed getJsonValue usage

* RGB rotary encoder UM: Removed spaces in JSON keys

* RGB rotary encoder UM: Cleanup readFromConfig

* RGB rotary encoder UM: Cleaned up type usages

* RGB rotary encoder UM: Fixed crash on re-enable
2021-07-09 20:25:35 +02:00
cschwinne
a17f83cedd Renamed NOTIFIER_CALL_MODE_ to CALL_MODE_ 2021-07-09 18:54:28 +02:00
cschwinne
e04b965659 Peek uses the main websocket connection 2021-07-08 02:01:17 +02:00
Blaz Kristan
db632ae847 Merge branch 'master' into dev 2021-07-06 16:38:13 +02:00
Louis Beaudoin
8c44147a45
Usermod Settings polishing/documentation (#2061)
* Testing new wrapper functions to read Usermod config

* Usermod Settings polishing
- remove getBoolFromJsonKey() (no longer needed), fix getValueFromJsonKey(element, destination, defaultvalue)
- Update Usermod Settings html "number" field to use step="any", and make wider to make maximum values fully visible
  - step="any" allows viewing/submitting full 7/8-digit float values, and the arrow buttons step by 1 now, instead of .00001 (which wasn't good for integers or floats)
  - html wasn't generated/compressed yet

* Update usermod_v2_example.h with more complete example and documentation for Usermod Settings
- readFromConfig() has three options for how to load values from the config JSON, we need to pick one

* Update/rename usermode_rotary_brightness_color, to be used as an example of more robust parsing Usermod Settings values

* Update Usermod example, rename getValueFromJsonKey() to getJsonValue()
- chose single readFromConfig() pattern
- demonstrating 3-argument getJsonValue()
- remove leftover printf in getJsonValue()

Co-authored-by: Louis Beaudoin <louis@embedded-creations.com>
2021-07-05 23:14:57 +02:00
Blaz Kristan
bbdd1915eb Fix for odd Dallas sensor "not found" behaviour.
Minor flash use reduction.
2021-07-04 14:23:53 +02:00
Blaz Kristan
3066a142b8 Merge branch 'master' into dev
Minor tweaks.
2021-07-03 21:27:06 +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
srg74
3754088a44
Updated [env] for Universal Wemos Shield board (#2049)
* Added support for H803FW controller

* Create usermod_bme280.cpp

* Create usermod_bme280.cpp

* Added BME280 sensor

* Update readme.md

* Update usermod_bme280.cpp

* Update platformio.ini

* Update for lightweight sensor

* Added travis build badge

* Update readme.md

* Update readme.md

* Update .gitignore

* Changed ldscript for a file system

* Update NpbWrapper.h

* Update .gitignore

* Delete wled-ci.yml

* Added usermod for ST7789 display

Functionality tested with ESP32. Works with main WLED and @blazoncek fork.

* fixes

* Update .gitignore

* Firmware updates!!!

Updated official @Aircoookie firmware to v0.12.0-b4 build 2103290 and developer @blazoncek firmware to latest v0.12.0-b3 build 2103282.

* Updated platformio.ini for Universal Wemos Shield board
2021-07-01 12:05:02 +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
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
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
cschwinne
0ae0f40628 Fixed four line display usermod compilation
Thanks @Serg74!
2021-06-25 23:42:53 +02:00
Blaz Kristan
2424df0d18 Merge branch 'master' into dev 2021-06-25 15:52:59 +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