Skip to content

Commit e8ed958

Browse files
committed
v0.6.250
1 parent 1895043 commit e8ed958

File tree

14 files changed

+119
-8
lines changed

14 files changed

+119
-8
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [Hardware setup](#hardware-setup)
1010
- [Quick start](#quick-start)
1111
- [Update](#update)
12+
- [Update over web-interface](#update-over-web-interface)
1213
- [Controls](Controls.md)
1314
- [MQTT](#mqtt)
1415
- [Home Assistant](#home-assistant)
@@ -209,6 +210,16 @@ download _http://\<yoradioip\>/data/playlist.csv_ and _http://\<yoradioip\>/data
209210
4. Go to page _http://\<yoradioip\>/_ in the browser and press Ctrl+F5 to update the scripts.
210211
5. Well done!
211212

213+
## Update over web-interface
214+
1. Backup your settings: \
215+
download _http://\<yoradioip\>/data/playlist.csv_ and _http://\<yoradioip\>/data/wifi.csv_ and place them in the yoRadio/data/data/ folder
216+
2. Get firmware binary: Sketch → Export compiled binary
217+
3. Get SPIFFS binary: disconnect ESP32 from your computer, click on **ESP32 Data Sketch Upload**. \
218+
You will get an error and file path
219+
<img src="images/getspiffs.jpg" width="830" height="208">
220+
4. Go to page _http://\<yoradioip\>/update_ and upload yoRadio.ino.esp32.bin and yoRadio.spiffs.bin in turn, checking the appropriate upload options.
221+
5. Well done!
222+
212223
---
213224
## MQTT
214225
1. Copy file exsamples/mqttoptions.h to yoRadio/ directory
@@ -278,6 +289,11 @@ Work is in progress...
278289

279290
---
280291
## Version history
292+
#### v0.6.250
293+
- added update via web-interface \
294+
**Attention! Full firmware with chip re-partitioning is required!** see [board setup example](#quick-start)
295+
- fixed choppy when switching stations via Home Assistant
296+
281297
#### v0.6.220
282298
- new option PLAYER_FORCE_MONO (with i2S DAC only)
283299
- change default scroll speed in DSP_NOKIA5110

images/board3.jpg

6.15 KB
Loading

images/getspiffs.jpg

143 KB
Loading

yoRadio/controls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void initControls() {
103103
}
104104

105105
void loopControls() {
106-
if(display.mode==LOST) return;
106+
if(display.mode==LOST || display.mode==UPDATING) return;
107107
#if ENC_BTNL!=255
108108
encoderLoop();
109109
#endif

yoRadio/data/www/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
<div class="logo"></div>
1616
<div id="navbar"%APMODE%>
1717
<div class="playerbytton navbutton" id="playlistbutton" onclick="showEditor()"></div>
18-
<div class="playerbytton navbutton" id="settingsbutton" onclick="showSettings()"></div>
18+
<div class="playerbytton navbutton" id="settingsbutton" onclick="event.stopPropagation(); showSettings()"></div>
19+
<div id="settingspopup" class="hidden">
20+
<div class="button" id="settingsbuttonwifi" onclick="showSettingsWifi()">Wi-Fi</div>
21+
<div class="button" id="settingsbuttonupload" onclick="showSettingsUoload()">Update</div>
22+
</div>
1923
</div>
2024
<div class="playerwrap">
2125
<div class="player">

yoRadio/data/www/script.js.gz

607 Bytes
Binary file not shown.

yoRadio/data/www/style.css.gz

819 Bytes
Binary file not shown.

yoRadio/data/www/update.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta name="viewport" content="width=device-width, minimum-scale=0.25">
5+
<meta name="apple-mobile-web-app-capable" content="yes">
6+
<meta name="apple-mobile-web-app-status-bar-style" content="default">
7+
<link rel="apple-touch-icon" type="image/png" href="elogo.png">
8+
<link rel="icon" type="image/png" href="elogo.png">
9+
<link rel="stylesheet" title="base" href="style.css" type="text/css">
10+
<title>ёRadio-update</title>
11+
<style>
12+
</style>
13+
</head>
14+
<body>
15+
<div class="content">
16+
<div class="logo"></div>
17+
<div class="playerwrap">
18+
<div class="player" id="uploaderwrap">
19+
<div id="uploadstatus">Please choose firmware or SPIFFS *.bin file</div>
20+
<form id="updateform" method="POST" action="/update" enctype="multipart/form-data">
21+
<div class="row">
22+
<label for="uploadtype1"><input type="radio" id="uploadtype1" name="updatetarget" value="fw" checked /><span class="checkmark"></span> firmware</label>
23+
<label for="contactChoice2"><input type="radio" id="uploadtype2" name="updatetarget" value="spiffs" /><span class="checkmark"></span> SPIFFS</label>
24+
</div>
25+
<div class="row rowinput">
26+
<input id="binfile" type="file" accept=".bin,.hex" name="update" />
27+
<input type="button" class="button" value="Update" onclick="doUpdate(this)">
28+
</div>
29+
</form>
30+
<progress id="updateprogress" max="100" value="70" hidden></progress>
31+
<a href="/" class="button" id="update_cancel_button">Cancel</a>
32+
</div><!--player-->
33+
</div><!--playerwrap-->
34+
<div id="copy">powered by <a target="_blank" href="https://github.com/e2002/yoradio/">ёRadio</a> | v%VERSION%</div>
35+
</div>
36+
<script src="script.js"></script>
37+
</body>
38+
</html>

yoRadio/display.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ void Display::swichMode(displayMode_e newmode) {
328328
if (newmode == LOST) {
329329
dsp.frameTitle("* LOST *");
330330
}
331+
if (newmode == UPDATING) {
332+
dsp.frameTitle("* UPDATING *");
333+
}
331334
if (newmode == NUMBERS) {
332335
//dsp.frameTitle("STATION");
333336
meta.reset();

yoRadio/display.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include "src/displays/displayCustom.h"
3737
#endif
3838

39-
enum displayMode_e { PLAYER, VOL, STATIONS, NUMBERS, LOST };
39+
enum displayMode_e { PLAYER, VOL, STATIONS, NUMBERS, LOST, UPDATING };
4040

4141
enum displayRequestType_e { NEWMODE, CLOCK, NEWTITLE, RETURNTITLE, NEWSTATION, NEXTSTATION, DRAWPLAYLIST, DRAWVOL };
4242
struct requestParams_t

0 commit comments

Comments
 (0)