Commit Graph

27 Commits

Author SHA1 Message Date
Wizmo2
667b90fafc ledvu-update-clean 2023-10-30 19:24:23 -04:00
philippe44
809b55579f add plugin and fix loudness = 0 disable equalizer 2023-08-28 18:59:17 -07:00
Michael Herger
7ad39a02f5 Extend firmware download handler to serve locally built custom firmware, too.
Just save it as `squeezelite-esp32-custom.bin` in the firmware update folder (LMS Cache/updates) and paste http://yourlms:9000/plugins/SqueezeESP32/firmware/custom.bin in the firmware URL box.
2021-04-17 07:19:04 +02:00
Michael Herger
36571d3dad Improve firmware download proxy
* initialize firmware pre-fetching when a player connects
* get firmware based on the player's version string as returned by `status.json`
* keep firmware file per platform/branch/resolution combination to support different squeezelite-ESP32 players in an installation
* remove handler to get firmware by numeric ID rather than filename
2021-04-17 06:27:25 +02:00
Michael Herger
f9e97036cf Firmware proxy (#88)
* Add support for a firmware download proxy. This should help in situations where the player's firmware can't handle https correctly.

Two possibilities:
* full path to image: http://yourlms:9000/plugins/SqueezeESP32/firmware/ESP32-A1S.32.634.master-cmake/squeezelite-esp32-master-cmake-ESP32-A1S-32-V0.634.bin
* use Github's asset ID: http://yourlms:9000/plugins/SqueezeESP32/firmware/34298863

The former is more prone to issues related to the path. A change in the schema could break the matching regex.
The latter is simpler to use if you know the ID. But the ID is not easily available to the user. And it requires one more lookup in the plugin to get from the ID to the download path.

* Add support for proxying firmware downloads through LMS

* add magic asset ID -99 to allow the front-end to check whether the plugin does support download proxying
* web manager is expecting `lms_port` and `lms_ip` in `status.json`. If that's available, check whether plugin does support firmware downloading. If that's the case, download firmwares through LMS
* plugin would cache firmware images. In case of multiple images the file would be served directly from LMS.

* Add firmware pre-caching

* keep track of the most recently requested firmware build type
* poll Github for releases every ~6h
* download new firmware file for the same player model used before

Factor out firmware handling code to its own module.

Co-authored-by: Michael Herger <michael@herger.net>
2021-04-04 13:02:12 -04:00
Michael Herger
bc0d104290 Add support for a firmware download proxy (#85)
* Add support for a firmware download proxy. This should help in situations where the player's firmware can't handle https correctly.

Two possibilities:
* full path to image: http://yourlms:9000/plugins/SqueezeESP32/firmware/ESP32-A1S.32.634.master-cmake/squeezelite-esp32-master-cmake-ESP32-A1S-32-V0.634.bin
* use Github's asset ID: http://yourlms:9000/plugins/SqueezeESP32/firmware/34298863

The former is more prone to issues related to the path. A change in the schema could break the matching regex.
The latter is simpler to use if you know the ID. But the ID is not easily available to the user. And it requires one more lookup in the plugin to get from the ID to the download path.

* Add support for proxying firmware downloads through LMS

* add magic asset ID -99 to allow the front-end to check whether the plugin does support download proxying
* web manager is expecting `lms_port` and `lms_ip` in `status.json`. If that's available, check whether plugin does support firmware downloading. If that's the case, download firmwares through LMS
* plugin would cache firmware images. In case of multiple images the file would be served directly from LMS.

Co-authored-by: Michael Herger <michael@herger.net>
2021-04-03 21:01:40 -04:00
Philippe G
b3ff717d32 32 bits cleanup 2021-03-04 20:30:06 -08:00
Philippe G
c33c6187ca remove unused code + plugin update 2020-12-03 20:56:56 -08:00
Philippe G
99019cd22f mirror make branch changes on plugin (need to point there ...) 2020-12-02 14:06:49 -08:00
Philippe G
6ae47a908b add player type 101 - release 2020-10-06 22:28:01 -07:00
Michael Herger
fcfbbd61c0 The SqueezeESP32 plugin requires LMS 7.9. It wouldn't run on 7.7. 2020-05-15 14:15:19 +02:00
Michael Herger
192847af89 Make the EQ in player settings update the player in "real time" as you change the values. 2020-05-08 13:42:40 +02:00
Michael Herger
fd16af1ae6 We need to wrap the callback to make it unique. Otherwise subscriptions would overwrite each other. 2020-05-06 06:17:00 +02:00
Michael Herger
9f23b79818 Fix some issues when SqueezeAmp doesn't have a display
* only push simple prefs on the list of automatically managed items - hashes and lists can't be managed by the Settings super class
* only push display/artwork related prefs on the list if deal with a player which has a display
* move most artwork/display handling code out of the plugin to the Player class
* rename `eq` pref to `equalizer`, as `eq` is a reserved word
* automatically update the player when the `equalizer` pref is changed
* strip down Plugin to the bare minimum needed with any SqueezeAMP, no matter whether it has a display or not
2020-05-05 22:45:54 +02:00
Philippe G
e0e309c4ed equalizer w/o display 2020-04-17 14:54:39 -07:00
Philippe G
394d6b6465 equalizer - release 2020-04-17 08:03:17 -07:00
Philippe G
26330ee69e add SSD1322 + few tweaks - release 2020-04-01 20:03:57 -07:00
philippe44
fb499982c2 better screensaver handling - release 2020-03-21 13:24:26 -07:00
philippe44
ff40290610 handle "generic" visualizer - release 2020-03-20 23:55:26 -07:00
philippe44
b5199650ff notification correction 2020-03-19 17:16:43 -07:00
philippe44
606f1983c5 artwork support - release 2020-03-19 16:13:59 -07:00
philippe44
5e5dc9ba29 1st artwork version 2020-03-18 23:42:44 -07:00
philippe44
c865dfbe9c By player screen settings 2020-03-05 19:46:06 -08:00
philippe44
d78c50f781 "log-like" scale on spectrum visu 2020-02-18 18:37:03 -08:00
philippe44
5a4181642f add width parameter in plugin 2020-01-16 00:31:16 -08:00
philippe44
dba4782871 display improvements, reset player_id when switching server 2020-01-13 19:19:55 -08:00
philippe44
2783a83a00 Display plugin update 2020-01-13 00:32:36 -08:00