Commit Graph

377 Commits

Author SHA1 Message Date
Ewoud
4409ceb3ec Merge remote-tracking branch 'origin/ac_main' into mdev 2023-01-02 21:05:03 +01:00
Blaz Kristan
22b2503839 Bugfix & code optimisation. 2022-12-22 18:13:32 +01:00
Ewoud
3139f5228d Merge remote-tracking branch 'origin/ac_main' into mdev 2022-12-19 14:00:52 +01:00
Blaz Kristan
3c5838cafd Remove "strip" dependency in Segment class 2022-12-16 22:31:07 +01:00
Ewoud
ffe52fcbf5 Merge remote-tracking branch 'origin/ac_main' into mdev 2022-12-16 11:43:27 +01:00
Christian Schwinne
f50c9e855c Use "pd" JSON API call for direct preset apply (#2946) 2022-12-13 14:27:44 +01:00
Ewoud
3160a0b090 Merge remote-tracking branch 'origin/ac_main' into mdev 2022-12-06 14:38:49 +01:00
Blaz Kristan
e629c90a71 Missing UDP sync notifications bugfix. 2022-12-05 22:56:44 +01:00
cschwinne
efc476e50b Disable register keyword to reduce compiler warnings
Minor formatting improvements
"ps" string optimization
Removed travis envs
2022-12-03 20:55:17 +01:00
Ewoud
91c2ce0d8f Merge remote-tracking branch 'origin/ac_main' into mdev 2022-11-28 19:58:51 +01:00
Blaz Kristan
8899684092 Select custom palette bugfix. 2022-11-25 17:33:29 +01:00
Ewoud
1fa903ad81 Merge remote-tracking branch 'origin/ac_main' into mdev 2022-11-24 16:25:27 +01:00
cschwinne
324fc149b3 Shorter JSON keys for 1d2d map and sound sim
(smaller fxdata, saves 100b flash, slightly shorter json doc)
2022-11-24 04:15:24 +01:00
Jason Kölker
29b1f2afae feat(json): add wifi scanning (#2895)
* feat(json): add wifi scanning

Adds wifi scanning to the JSON api at `/json/networks`. The initial
request will trigger a scan, subsequent requests will scan or return the
results depending on the state of the `WiFiScan`.

Add a `Scan` button next to the client ssid input, on click, scan for
networks, and change the input to a select with the found ssids.

Fixes: #1964

* Added option to go back to manual SSID input

Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2022-11-24 02:50:24 +01:00
Ewoud
7946c745d4 Fix ledmap code
Index.js: fix ledmap bug
json.cpp: remove old ledmap checks
presets.cpp: remove loadledmap call
2022-11-19 14:15:29 +01:00
Ewoud
ede08cedf2 Merge remote-tracking branch 'origin/ac_main' into mdev 2022-11-15 12:47:32 +01:00
Ewoud
3b21f02442 Fix Ledmap dropdown in presets
platformio: cosmetic updates
index.js: ledmap: show filename instead of nr
update.htm: remove installed bin prompt
json.cpp: deserializeState: assign loadLedmap from root, serializeState: assign loadLedmap to root / remove from root
presets.cpp: savePreset: assign loadLedmap from sObj
util.cpp: init ledMaps to 0
2022-11-15 11:42:25 +01:00
Blaz Kristan
b141ec7ea7 Fix for #2880 (stateChanged on segment on/off)
Added comments.
Added X1, X2, X3, M1, M2, M3 segment options to HTTP API.
Added "on" handling with "ps".
2022-11-13 12:13:49 +01:00
cschwinne
c0a783198e Reduce fxdata size by about 200 bytes
Removed redundant commas before semicolon delimiter (`,;` -> `;`)
No need to transmit `@` in /json/fxdata
2022-11-11 03:10:41 +01:00
Blaz Kristan
d370f67f60 Optimization & bugfix for net debug.
- Inherited from Print class.
- Added UI option to disable net  debug output.
2022-11-10 21:50:21 +01:00
Ewoud
c3c3ff39b5 Change WLEDSR to WLEDMM in comments 2022-11-09 12:14:42 +01:00
Ewoud
f2adc5eff4 Add bin name in info tab, bin name starts with WLEDMM
package.json: Version from 0.14.0.2.0 to 0.14.0.2.1
output_bins.py and xml.cpp: MM postfix after WLED in bin name
index.js and json.cpp: Add bin name in info tab
2022-11-09 11:56:03 +01:00
Ewoud
46ee25b46b Platformio: further refactoring and bug fixing
platformio:
- min and max as postfix instead of prefix
- add common_mm entry for MM build_flags and lib_deps
- add esp32_4MB_V4_max_base entry for V4

const.h and FX_(2D)fcn.cpp: add IRAM_ATTR_YN to switch off if not esp32 (esp8266 not enough iram for this)

json.cpp: start stop compatibility only if 2D not disabled
2022-11-01 18:18:03 +01:00
Ewoud
0474be3069 Platformio: Refactor PSRAM, S3 and 8266 entries
package.json: -mmod -> _MM

platformio.ini: refactored:
   esp32mdev_PSRAM -> min_esp32_4MB_PSRAM
  esp32s3-mdev -> min_esp32S3_8MB (compile error!)
  esp8266mdev -> min_esp8266_4MB (link error!)

(using extends)

json.cpp: getMinFreeHeap not for esp8266
2022-10-30 10:40:35 +01:00
Ewowi
8e70176de6 Add compatibility for SR playlists (to support HB effects)
liveviewws2D and ws.cpp: show preset and playlist id
json.cpp: add SR preset compatibility
2022-10-20 10:39:50 +02:00
Frank
72851b5725 small changes to info page
- added "max used PSRAM" info
- moved all mem infos into one part
- only check PSRAM if BOARD_HAS_PSRAM
- oappend: debug message in case that stack buffer is too small.
2022-10-17 15:40:56 +02:00
Ewowi
3377b7644e Merge branch 'expand-1DEffects' into mdev 2022-10-16 11:04:23 +02:00
Frank
a6ddcf57c3 Merge remote-tracking branch 'origin/small-changes' into mdev 2022-10-14 13:46:44 +02:00
Frank
fec4c7f573 small update to HW info page
* bootcode ->rst reason
*totalHeap not available on 8266
2022-10-14 13:33:25 +02:00
Frank
4baac0df1d Merge remote-tracking branch 'origin/small-changes' into mdev 2022-10-13 19:41:37 +02:00
Frank
dde9af8f05 Chip Infos added to Info Page
* CPU type & Speed
* FLASH speed
* last boot code (reset reason)
* totalHeap not available on 8266
2022-10-13 19:37:27 +02:00
Blaž Kristan
a6ab4feca5 Bugfix. Unload playlist on "ps" JSON. 2022-10-13 07:06:49 +02:00
Blaz Kristan
d00a708177 Minor string optimisations. 2022-10-09 12:09:46 +02:00
Blaz Kristan
7642f8d702 Async preset saving.
Minor bugfixes.
2022-10-08 18:25:51 +02:00
Ewowi
6aa189fb65 Merge remote-tracking branch 'origin/dev' into mdev 2022-10-01 12:05:49 +02:00
Blaž Kristan
f385af595a Add setMode() and setPalette() methods
- automatically start transition
Implement load FX defaults for HTTP API (FXD)
2022-09-29 12:49:12 +02:00
Ewowi
cd3fa2464a Merge remote-tracking branch 'origin/dev' into mdev 2022-09-27 14:59:57 +02:00
Blaz Kristan
dc700c41fb Invalid FX bugfix. 2022-09-26 21:26:00 +02:00
Ewowi
37ee28fa0a Merge remote-tracking branch 'origin/dev' into mdev 2022-09-21 18:26:20 +02:00
Ewowi
96fc330b26 Merge branch 'small-changes' into mdev 2022-09-20 11:21:09 +02:00
Ewowi
5aa7b34b05 Add total heap and total psram into Info tab 2022-09-20 10:58:59 +02:00
Ewowi
9dd8a59572 Merge remote-tracking branch 'origin/dev' into mdev 2022-09-19 22:55:35 +02:00
Blaz Kristan
799d4f9465 Playlist load bugfix.
serializeConfig() in loop() (prevent crash/hang in web server callback)
2022-09-14 22:28:06 +02:00
Blaz Kristan
47797bcf4a Playlist loading bugfix. 2022-09-14 20:13:03 +02:00
Frank
dc8230bf2e arch = ESP.getChipModel()
rely on ESP.getChipModel() for new MCUs-
2022-09-11 00:19:32 +02:00
Ewowi
4922c42b25 Merge remote-tracking branch 'origin/dev' into mdev 2022-09-10 14:21:36 +02:00
Blaz Kristan
c9fd69ceb7 Preset loading tuning.
Multi-relay toggle support.
Fire2012 tuning.
2D functions tuning.
Global SPI comments & tuning.
Bugfix in 4LD usermod.
2022-09-09 17:21:13 +02:00
Blaz Kristan
e4fbf70568 Preset loading tuning.
Multi-relay toggle support.
Fire2012 tuning.
2D functions tuning.
Global SPI comments & tuning.
Bugfix in 4LD usermod.
On & bri support fix.
2022-09-09 17:16:52 +02:00
Ewowi
a84afdf199 Merge branch 'json-mapping' into mdev 2022-09-08 11:38:45 +02:00
Ewowi
a1fa1ff105 json mapping: refactor
- virtualLength back to const
- rename getjMap() to createjMap()
- rename initjMapDoc to updatejMapDoc
- rename jMapC to jMap
- updatejMapDoc: delete if no name, reset name if no file found
- case M12_jMap: do not use getjMap
- deserializeSegment: create or delete jMap
2022-09-08 11:37:23 +02:00