Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Usermod for Power Measurement using esp's adc #4108

Draft
wants to merge 176 commits into
base: 0_15
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
e4b89ea
Add Power Measurement usermod
Tomas-Kuchta-FPV Aug 18, 2024
4c0bd3a
Add Power Measurement usermod
Tomas-Kuchta-FPV Aug 18, 2024
712b72d
reabsed to 0.15
Tomas-Kuchta-FPV Aug 19, 2024
e5a4264
Improve mqtt support, add battery percentage and voltage
itCarl Aug 19, 2024
b8f1533
update `readme.md`
itCarl Aug 19, 2024
cc24119
remove unnecessary comments
itCarl Aug 19, 2024
2d6365d
Add HA-discovery as config option
itCarl Aug 20, 2024
d11ca2e
Merge pull request #4110 from itCarl/usermod_battery_mqtt_update
blazoncek Aug 20, 2024
e7babc0
replaced PWM LUT with calculation
DedeHai Aug 20, 2024
1cc47b0
use CIE brightness also for ESP8266
DedeHai Aug 21, 2024
0bbd6b7
Minor optimisation
blazoncek Aug 22, 2024
6f3267a
Dynamic bus config
blazoncek Aug 22, 2024
dd52124
Added some byte definitions to WiZmote ESP-NOW message
ChuckMash Aug 23, 2024
e4d5d77
Merge pull request #4114 from ChuckMash/struct-def
blazoncek Aug 23, 2024
dbb47d5
Bus manager rework
blazoncek Aug 24, 2024
8818a9e
Remove erroneous debug
blazoncek Aug 24, 2024
cb22e19
Merge pull request #4111 from DedeHai/0_15_PWM_CIEbrightnesscalc
blazoncek Aug 25, 2024
f55e2fc
Merge branch '0_15' into bus-config
blazoncek Aug 25, 2024
865e3dc
getNumberOfPins
blazoncek Aug 25, 2024
820df0c
PinManager update
blazoncek Aug 26, 2024
b2e00eb
Introduce network type (previous virtual)
blazoncek Aug 27, 2024
c51ce2e
Fix C/P error
blazoncek Aug 27, 2024
6655e26
rebase to bus-config
PaoloTK Aug 29, 2024
0d035a0
Dithering support & bugfix in UI
blazoncek Aug 30, 2024
2ca034b
Remove ledc_set_duty_and_update
blazoncek Sep 1, 2024
a3b2887
Dirty fix for newer framework
blazoncek Sep 1, 2024
fcc344b
add read/only pin logic and check
PaoloTK Sep 1, 2024
c942345
bug fix
PaoloTK Sep 1, 2024
9bb979f
bug fix
PaoloTK Sep 1, 2024
85e2f7e
fixed offsets and inverted signal plus dead time
DedeHai Sep 2, 2024
be7475f
bugfixes, removed debug printout
DedeHai Sep 2, 2024
d79d5db
remove getReadOnlyPins() function
PaoloTK Sep 3, 2024
2cc0ace
Bugfixes
DedeHai Sep 3, 2024
b1e58dd
Optimisations
blazoncek Sep 3, 2024
c1c707c
8266 compatibility builds for older chips (another attempt t o solve…
softhack007 Sep 4, 2024
8e4f8fc
fix bug in reassignment logic
PaoloTK Sep 4, 2024
329173e
added complete validation logic for pins and types
PaoloTK Sep 4, 2024
d3c31c5
found a better way of deadTime subtraction, fixed inverted signals
DedeHai Sep 4, 2024
092a5a1
Unsigned fix
blazoncek Sep 4, 2024
b9080f9
Mirroring bugfix.
blazoncek Sep 4, 2024
55d98ff
Merge pull request #4126 from DedeHai/PWM-fixes
blazoncek Sep 5, 2024
9cc333b
Move LED types to individual bus type
blazoncek Sep 5, 2024
43cc4ec
Increase oappend buffer on ESP8266
blazoncek Sep 5, 2024
ac689a9
Remove array, un-inline calculateCCT
blazoncek Sep 6, 2024
0642b17
Bugfix
blazoncek Sep 6, 2024
c5b31e2
Bugfix
blazoncek Sep 6, 2024
81cec6a
Update usermod_seven_segment_reloaded.h - prevent array bounds violat…
softhack007 Sep 6, 2024
340a9f8
better bugfix for seven-seg-reloaded
softhack007 Sep 6, 2024
b431515
Add numPins()
blazoncek Sep 8, 2024
eb06e57
add check for pin reassigned conflict with pin defined for current bus
PaoloTK Sep 9, 2024
20444ee
Debug optimisations
blazoncek Sep 10, 2024
fd00e5e
LED settings text update
blazoncek Sep 10, 2024
3a5eb8c
WLED 0.15.0-b5 release
blazoncek Sep 10, 2024
83699bc
Add support for toggle of palette sync
felddy Sep 10, 2024
8ae09c3
Fix comment alignment
felddy Sep 10, 2024
cce5e8f
Update CONTRIBUTING.md - adding a hint to avoid force-pushing
softhack007 Sep 10, 2024
5bc5ef0
Update CONTRIBUTING.md - typo
softhack007 Sep 10, 2024
5869627
- More optimization on bus configuration logic.
PaoloTK Sep 10, 2024
dbe78df
Temperature usermod: fix changelog formatting
iammattcoleman Sep 7, 2024
750a429
Temperature usermod: update OneWire to 2.3.8
iammattcoleman Sep 7, 2024
81382a4
Merge pull request #4131 from iammattcoleman/update-temperature-depen…
blazoncek Sep 11, 2024
5df1a22
Pre-allocate COM vector
blazoncek Sep 11, 2024
eae5a74
color_fade bugfix
blazoncek Sep 11, 2024
c5435ec
Merge remote-tracking branch 'AC/bus-config' into compile_different_b…
PaoloTK Sep 11, 2024
23400d0
Conditional IRAM for gamma
blazoncek Sep 12, 2024
6169c45
Remove void
blazoncek Sep 12, 2024
5b8d9d1
Merge branch '0_15' into bus-config
blazoncek Sep 12, 2024
e59b38a
Fix unsigned long in debug printf
blazoncek Sep 12, 2024
71fcd64
Fix CRLF in boblight
blazoncek Sep 12, 2024
f12de61
Merge branch '0_15' into bus-config
blazoncek Sep 12, 2024
a8c5bf2
Ease IRAM
blazoncek Sep 12, 2024
ec7f69d
Merge branch '0_15' into bus-config
blazoncek Sep 12, 2024
49d51c5
Hot
blazoncek Sep 12, 2024
daf0bcf
bug fix on pin already defined check
PaoloTK Sep 12, 2024
fa82e75
bug fix
PaoloTK Sep 12, 2024
df24fd7
Merge pull request #4129 from Aircoookie/bus-config
blazoncek Sep 13, 2024
6a18803
Merge branch '0_15' into compile_different_busses
blazoncek Sep 14, 2024
e3d9417
Minor fixes
blazoncek Sep 14, 2024
81e412f
Use refernece to avoid ctor/dtor
blazoncek Sep 14, 2024
f16ed46
fix isReadOnlyPin() logic
PaoloTK Sep 14, 2024
28cb3f9
Merge pull request #4107 from PaoloTK/compile_different_busses
blazoncek Sep 14, 2024
2264cc5
Use tag to pin AsyncWebServer version
willmmiles Sep 14, 2024
5708d7a
Build bump, changelog update
blazoncek Sep 14, 2024
0806c7f
Merge pull request #4142 from willmmiles/fix-webserver-pin
blazoncek Sep 14, 2024
65a8dbf
FX: Usermod Temperature effect
blazoncek Sep 15, 2024
6a90b9a
FX Temperature better ranges
blazoncek Sep 15, 2024
e34f179
fix pin conflict check logic
PaoloTK Sep 14, 2024
d5777b7
Fix for missing WLED_NUM_PINS check
blazoncek Sep 15, 2024
7f1ec48
Merge pull request #4137 from felddy/feature/toggle_pallet_sync
blazoncek Sep 16, 2024
ac8f919
Serial improvements (can RX, canTX)
blazoncek Sep 17, 2024
ceed494
Introduce common.js in settings pages
blazoncek Sep 17, 2024
88fb860
SAVE_RAM bugfix introduced by #4137
blazoncek Sep 17, 2024
72455cc
Missing "not"
blazoncek Sep 17, 2024
d4268ba
handleFileRead: Skip duplicate FS check
willmmiles Sep 7, 2024
1346eb4
tools: Add all_xml fetch script
willmmiles Sep 8, 2024
32f9616
Remove oappend
willmmiles Sep 6, 2024
16f61ea
Usermod: Implement shim for oappend
willmmiles Sep 17, 2024
4ef583c
xml: Print optimization
willmmiles Sep 7, 2024
7114874
Replace sappend and sappends
willmmiles Sep 10, 2024
ae1df20
New names
blazoncek Sep 12, 2024
45cf900
Rename destination for getSettingsJS
willmmiles Sep 18, 2024
b50e6e0
Static PinManager & UsermodManager
blazoncek Sep 19, 2024
9cb3531
Remove erroneous file
blazoncek Sep 21, 2024
bd7cd32
Add mandatory refresh capability to remove type dependency.
blazoncek Sep 22, 2024
3ccc5ba
Remov superfluous #if
blazoncek Sep 23, 2024
3f3c986
Merge branch '0_15' into end_oappend_v2
blazoncek Sep 24, 2024
e789a18
Merge pull request #4152 from willmmiles/end_oappend_v2
willmmiles Sep 24, 2024
c600c6d
Bus length fix
blazoncek Sep 25, 2024
8180f2c
Bump build tool dependencies
Aircoookie Sep 27, 2024
9a4b56d
Fix incorrect F-strings
willmmiles Sep 28, 2024
6dc2c68
Merge pull request #4163 from willmmiles/fix-oappend-merge
softhack007 Sep 28, 2024
6f22185
partition file for 512Kb Filesystem, 1.7MB Program
softhack007 Sep 28, 2024
10d8cfd
Fix FX filter bug
blazoncek Sep 29, 2024
d3c401e
wu_pixel small optimization
softhack007 Sep 29, 2024
7fa25ca
pio update - flash size of non-standard boards
softhack007 Sep 30, 2024
4ed8ded
Akemi bugfix for panel width > 32
softhack007 Sep 30, 2024
3765d55
akemi bugfix fix
softhack007 Sep 30, 2024
262af06
colored burst effect bugfix (swapped XY dimensions)
softhack007 Sep 30, 2024
402fba7
bugfix for holes in 2D DNA Spiral
softhack007 Oct 2, 2024
a4c49aa
Fix for #4005
blazoncek Oct 2, 2024
c30a08c
Merge branch '0_15' of https://github.com/aircoookie/WLED into 0_15
blazoncek Oct 2, 2024
dd27504
Fixed Improv rejecting all properly formatted packets.
Xevel Oct 3, 2024
ae1b6af
Indent formatting...
Xevel Oct 3, 2024
949b9fb
Fixed Polybus.canShow always returning true on ESP32
Xevel Oct 3, 2024
2a07eb8
Merge pull request #4174 from Xevel/0_15
blazoncek Oct 3, 2024
ba636b1
Merge pull request #4175 from Xevel/fix_polybus_canshow
blazoncek Oct 3, 2024
1b0ce9a
Fix for #4179
blazoncek Oct 5, 2024
407477d
Fix for #4168
blazoncek Oct 6, 2024
5975b91
add autosegment outputs compile flag
PaoloTK Oct 6, 2024
488974d
change flag
PaoloTK Oct 7, 2024
5e9a46d
Fix for #4154
blazoncek Oct 7, 2024
7deea9e
Minor button & rover CSS tweak.
blazoncek Oct 7, 2024
c8dafed
Merge pull request #4183 from PaoloTK/autosegment_outputs_flag
blazoncek Oct 9, 2024
a60231b
Fixed the positioning of the "Download the latest binary" button (#4184)
maxi4329 Oct 9, 2024
37f32ab
Added BRT timezone
LuisFadini Oct 12, 2024
49f044e
Better fix for #4154
blazoncek Oct 13, 2024
1468ee5
Merge pull request #4188 from LuisFadini/0_15_brt_timezone
softhack007 Oct 13, 2024
01e07ca
Update xml.cpp
dosipod Oct 13, 2024
85a7c3c
Merge pull request #4189 from dosipod/0_15
willmmiles Oct 13, 2024
a0e81da
WLED 0.15.0-b6 release (#4180)
blazoncek Oct 14, 2024
44e28f9
Fix for Octopus on ESP32 C3
DedeHai Oct 15, 2024
e9d2182
Re-license the WLED project from MIT to EUPL (#4194)
Aircoookie Oct 15, 2024
0a97e28
bugfix: prevent preset loading from resetting other errors
softhack007 Oct 19, 2024
7db1989
fix major performance regression in ArduinoFFT
softhack007 Oct 22, 2024
01d43c6
AR memory optimization - part 1
softhack007 Oct 22, 2024
26a4753
AR memory optimization - part 2
softhack007 Oct 22, 2024
6d1126b
Update audioreactive readme.md
softhack007 Oct 22, 2024
2a09488
Better oappend shim on ESP8266
willmmiles Sep 28, 2024
2bb2caf
Enable NON32XFER_HANDLER on ESP8266
willmmiles Oct 23, 2024
b3b3267
Fix incorrect SET_F calls
willmmiles Oct 23, 2024
7d067d8
Replace SET_F with F in usermods
willmmiles Oct 24, 2024
2e01fe0
Revert "Replace SET_F with F in usermods"
willmmiles Oct 24, 2024
4f48ddf
Replace SET_F with F in usermods
willmmiles Oct 24, 2024
19d837c
Merge pull request #4222 from Aircoookie/esp8266-oappend-fix
willmmiles Oct 24, 2024
c81ef26
Merge pull request #4223 from willmmiles/f-string-hygiene
willmmiles Oct 24, 2024
832599b
Fix alexa devices invisible/uncontrollable (#4214)
Svennte Oct 25, 2024
4cc2cc4
Multiple fixes
blazoncek Oct 26, 2024
2703c98
Bugfix in FX `ripple_base()`
DedeHai Oct 27, 2024
6e89346
WLED 0.15.0-b7 release
blazoncek Oct 27, 2024
4588219
Update changelog
blazoncek Oct 28, 2024
af34da4
Merge pull request #4231 from Aircoookie/b7
blazoncek Oct 30, 2024
1898be2
S3 WROOM-2 buildenv
softhack007 Nov 1, 2024
749d34c
pinmanager support for S3 WROOM-2 (pin 33-37 reserved for flash)
softhack007 Nov 1, 2024
3c2c5be
LEDPIN --> DATA_PINS
softhack007 Nov 1, 2024
d98ca9a
show correct flash mode in WLED_DEBUG
softhack007 Nov 1, 2024
7d0951a
Merge pull request #4243 from MoonModules/AC_0_15_S3-WROOM2
softhack007 Nov 1, 2024
70323b9
rename delay -> frameDelay
softhack007 Nov 2, 2024
bf37ac5
improved FPS calc resolution, added averaging & multiplier compileflags
DedeHai Nov 4, 2024
3733715
bugfix
DedeHai Nov 4, 2024
4634ace
Added define for bitshift, removed dithering
DedeHai Nov 4, 2024
271a07a
Merge pull request #4250 from DedeHai/FPS_calc_averaging
DedeHai Nov 5, 2024
03eb521
Refactor Power Measurement usermod: rename kilowatthours to watthours…
Tomas-Kuchta-FPV Nov 11, 2024
33f3194
Add Power Measurement usermod
Tomas-Kuchta-FPV Aug 18, 2024
36dfb5c
Add Power Measurement usermod
Tomas-Kuchta-FPV Aug 18, 2024
f79d01a
Refactor Power Measurement usermod: rename kilowatthours to watthours…
Tomas-Kuchta-FPV Nov 11, 2024
23f3516
Merge branch 'PR-Usermod-power-measurement' of https://github.com/Tom…
Tomas-Kuchta-FPV Nov 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 61 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,68 @@
## WLED changelog

#### Build 2410270
- WLED 0.15.0-b7 release
- Re-license the WLED project from MIT to EUPL (#4194 by @Aircoookie)
- Fix alexa devices invisible/uncontrollable (#4214 by @Svennte)
- Add visual expand button on hover (#4172)
- Usermod: Audioreactive tuning and performance enhancements (by @softhack007)
- `/json/live` (JSON live data/peek) only enabled when WebSockets are disabled
- Various bugfixes and optimisations: #4179, #4215, #4219, #4222, #4223, #4224, #4228, #4230

#### Build 2410140
- WLED 0.15.0-b6 release
- Added BRT timezone (#4188 by @LuisFadini)
- Fixed the positioning of the "Download the latest binary" button (#4184 by @maxi4329)
- Add WLED_AUTOSEGMENTS compile flag (#4183 by @PaoloTK)
- New 512kB FS parition map for 4MB devices
- Internal API change: Static PinManager & UsermodManager
- Change in Improv chip ID and version generation
- Various optimisations, bugfixes and enhancements (#4005, #4174 & #4175 by @Xevel, #4180, #4168, #4154, #4189 by @dosipod)

#### Build 2409170
- UI: Introduce common.js in settings pages (size optimisation)
- Add the ability to toggle the reception of palette synchronizations (#4137 by @felddy)
- Usermod/FX: Temperature usermod added Temperature effect (example usermod effect by @blazoncek)
- Fix AsyncWebServer version pin

#### Build 2409140
- Configure different kinds of busses at compile (#4107 by @PaoloTK)
- BREAKING: removes LEDPIN and DEFAULT_LED_TYPE compile overrides
- Fetch LED types from Bus classes (dynamic UI) (#4129 by @netmindz, @blazoncek, @dedehai)
- Temperature usermod: update OneWire to 2.3.8 (#4131 by @iammattcoleman)

#### Build 2409100
- WLED 0.15.0-b5 release
- Audioreactive usermod included by default in all compatible builds (including ESP8266)
- Demystified some byte definitions of WiZmote ESP-NOW message (#4114 by @ChuckMash)
- Update usermod "Battery" improved MQTT support (#4110 by @itCarl)
- Added a usermod for interacting with BLE Pixels Dice (#4093 by @axlan)
- Allow lower values for touch threshold (#4081 by @RobinMeis)
- Added POV image effect usermod (#3539 by @Liliputech)
- Remove repeating code to fetch audio data (#4103 by @netmindz)
- Loxone JSON parser doesn't handle lx=0 correctly (#4104 by @FreakyJ, fixes #3809)
- Rename wled00.ino to wled_main.cpp (#4090 by @willmmiles)
- SM16825 chip support including WW & CW channel swap (#4092)
- Add stress testing scripts (#4088 by @willmmiles)
- Improve jsonBufferLock management (#4089 by @willmmiles)
- Fix incorrect PWM bit depth on Esp32 with XTAL clock (#4082 by @PaoloTK)
- Devcontainer args (#4073 by @axlan)
- Effect: Fire2012 optional blur amount (#4078 by @apanteleev)
- Effect: GEQ fix bands (#4077 by @adrianschroeter)
- Boot delay option (#4060 by @DedeHai)
- ESP8266 Audioreactive sync (#3962 by @gaaat98, @netmindz, @softhack007)
- ESP8266 PWM crash fix (#4035 by @willmmiles)
- Usermod: Battery fix (#4051 by @Nickbert7)
- Usermod: Mpu6050 usermod crash fix (#4048 by @willmmiles)
- Usermod: Internal Temperature V2 (#4033 by @adamsthws)
- Various fixes and improvements (including build environments to emulate 0.14.0 for ESP8266)

#### Build 2407070
- Various fixes and improvements (mainly LED settings fix)

#### Build 2406290
- WLED 0.15.0-b4 release
- LED settings bus management update (WARNING only allow available outputs)
- LED settings bus management update (WARNING: only allows available outputs)
- Add ETH support for LILYGO-POE-Pro (#4030 by @rorosaurus)
- Update usermod_sn_photoresistor (#4017 by @xkvmoto)
- Several internal fixes and optimisations
Expand Down
22 changes: 19 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ A good description helps us to review and understand your proposed changes. For

Please make all PRs against the `0_15` branch.

### Updating your code
While the PR is open - and under review by maintainers - you may be asked to modify your PR source code.
You can simply update your own branch, and push changes in response to reviewer recommendations.
Github will pick up the changes so your PR stays up-to-date.

> [!CAUTION]
> Do not use "force-push" while your PR is open!
> It has many subtle and unexpected consequences on our github reposistory.
> For example, we regularly lost review comments when the PR author force-pushes code changes. So, pretty please, do not force-push.


You can find a collection of very useful tips and tricks here: https://github.com/Aircoookie/WLED/wiki/How-to-properly-submit-a-PR


### Code style

When in doubt, it is easiest to replicate the code style you find in the files you want to edit :)
Expand All @@ -37,16 +51,18 @@ if (a == b) {
}
```

```cpp
if (a == b) doStuff(a);
```

Acceptable - however the first variant is usually easier to read:
```cpp
if (a == b)
{
doStuff(a);
}
```

```cpp
if (a == b) doStuff(a);
```

There should always be a space between a keyword and its condition and between the condition and brace.
Within the condition, no space should be between the parenthesis and variables.
Expand Down
Loading