diff --git a/simpledemo.html b/simpledemo.html index efc17dd..799b90d 100644 --- a/simpledemo.html +++ b/simpledemo.html @@ -1,327 +1,548 @@ - String html = ""; - html += "
"; - html += ""; - html += "Welcome to
"; - html += "" + version + "
"; +Welcome to
+[VERSION STRING HERE]
- html += "Playing | "; - html += ""; - html += audioPlaying ? "yes" : "no"; - html += " | "; - html += "
Volume | "; - html += "" + String(currentVolume) + "/" + String(maxVolume) + "% | "; - html += "
Muted | "; - html += ""; - html += muted ? "yes" : "no"; - html += " | "; - html += "
Equalizer Low | "; - html += "" + String(eqLow) + "dB | "; - html += "
Equalizer Mid | "; - html += "" + String(eqMid) + "dB | "; - html += "
Equalizer High | "; - html += "" + String(eqHigh) + "dB | "; - html += "
Balance (range -16 | +16) | "; - html += "" + String(balanceLevel) + " | "; - html += "
Path to playlist | "; - html += "" + currentPlaylist + " | "; - html += "
Index in playlist (starting from 0) | "; - html += "" + String(currentPlaylistPosition) + " | "; - html += "
Resource path | "; - html += "" + pbInfo.resourcePath + " | "; - html += "
Resource type | "; - html += "" + pbInfo.type + " | "; - html += "
Resource title | "; - html += "" + pbInfo.title + " | "; - html += "
Resource album | "; - html += "" + pbInfo.album + " | "; - html += "
Resource artist | "; - html += "" + pbInfo.artist + " | "; - html += "
Resource track number | "; - html += "" + pbInfo.track + " | "; - html += "
Resource year | "; - html += "" + pbInfo.year + " | "; - html += "
Resource genre | "; - html += "" + pbInfo.genre + " | "; - html += "
Version | "; - html += "" + version + " | "; - html += "
Friendly name | "; - html += "" + configuration.getString(PREFERENCES_KEY_FRIENDLY_NAME, " | ";
- html += "
Save & Restore state | "; - html += ""; - html += configuration.getBool(PREFERENCES_KEY_RESTORE_OLD_STATE, false) ? "yes" : "no"; - html += " | "; - html += "
Save & Restore playing state (default no) | "; - html += ""; - html += configuration.getBool(PREFERENCES_KEY_RESTORE_PLAYING, false) ? "yes" : "no"; - html += " | "; - html += "
WiFi SSID | "; - html += "" + configuration.getString(PREFERENCES_KEY_WIFI_SSID, "") + " | "; - html += "
Playing | ++ [html += audioPlaying ? "yes" : "no"] + | +
Volume | +[" + String(currentVolume) + "/" + String(maxVolume) + "] | +
Muted | ++ [html += muted ? "yes" : "no"] + | +
Equalizer Low | +[" + String(eqLow) + "dB"] | +
Equalizer Mid | +[" + String(eqMid) + "dB"] | +
Equalizer High | +[" + String(eqHigh) + "dB"] | +
Balance (range -16 | +16) | +" + String(balanceLevel) + " | +
Path to playlist | +" + currentPlaylist + " | +
Index in playlist (starting from 0) | +" + String(currentPlaylistPosition) + " | +
Resource path | +" + pbInfo.resourcePath + " | +
Resource type | +" + pbInfo.type + " | +
Resource title | +" + pbInfo.title + " | +
Resource album | +" + pbInfo.album + " | +
Resource artist | +" + pbInfo.artist + " | +
Resource track number | +" + pbInfo.track + " | +
Resource year | +" + pbInfo.year + " | +
Resource genre | +" + pbInfo.genre + " | +
Resource language (for TTS) | +" + pbInfo.tts_language + " | +
Version | +" + version + " | +
Friendly name | +" + configuration.getString(PREFERENCES_KEY_FRIENDLY_NAME, "
+ |
+
Save & Restore state | ++ html += configuration.getBool(PREFERENCES_KEY_RESTORE_OLD_STATE, false) ? "yes" : "no + | +
Save & Restore playing state (default no) | ++ html += configuration.getBool(PREFERENCES_KEY_RESTORE_PLAYING, false) ? "yes" : "no + | +
WiFi SSID | +" + configuration.getString(PREFERENCES_KEY_WIFI_SSID, "") + " | +
Playing | "; - html += ""; - html += audioPlaying ? "yes" : "no"; - html += " | "; - html += "
Volume | "; - html += "" + String(currentVolume) + "/" + String(maxVolume) + "% | "; - html += "
Muted | "; - html += ""; - html += muted ? "yes" : "no"; - html += " | "; - html += "
Playing | ++ html += audioPlaying ? "yes" : "no + | +
Volume | +" + String(currentVolume) + "/" + String(maxVolume) + "% + | +
Muted | ++ html += muted ? "yes" : "no + | +
The Audio library used maps -16 to most right and 16 to most left. Don't be confused by the appearently wrong direction the slider moves the balance to right and left.
"; - html += "Balance (range -16 | +16) | "; - html += "" + String(balanceLevel) + " | "; - html += "
Demo for playing a specific playlist on the SD card over the API.
+Demo for creating a new playlist containing all the contents of the given folder (on the SD card).
+The new playlist will be located in the given folder and is named .directory.m3u
. This can't be changed.
+
Creating fully personalized playlist or even uploading one will be subject of further development (see also the + Roadmap of the NetSpeaker project!).
+Equalizer Low (-40dB to 6dB) | "; - html += "" + String(eqLow) + "dB | "; - html += "
Equalizer Mid (-40dB to 6dB) | "; - html += "" + String(eqMid) + "dB | "; - html += "
Equalizer High (-40dB to 6dB) | "; - html += "" + String(eqHigh) + "dB | "; - html += "
The Audio library used maps -16 to most right and 16 to most left. Don't be confused by the appearently wrong + direction the slider moves the balance to right and left.
+Balance (range -16 | +16) | +" + String(balanceLevel) + " | +
Equalizer Low (-40dB to 6dB) | +" + String(eqLow) + "dB | +
Equalizer Mid (-40dB to 6dB) | +" + String(eqMid) + "dB | +
Equalizer High (-40dB to 6dB) | +" + String(eqHigh) + "dB | +
Demo for changing the wifi SSID and PSK (= Pre-Shared Key; well-known as 'Password' or 'Key'). There's no need to + give both - if you just wanna change the password - do it!
+After doing this, you have to go down to the restart collapsible. There, restart the NetSpeaker and it should connect + to the configured WiFi.
+If anything is wrong (either SSID or PSK wrong/typo, or the wifi's not available), the NetSpeaker opens an HotSpot
+ with the SSID " + apSSID + "
and the PSK " + apPSK + "
!
Restoring the old/last state can be toggeled on or off over the API. Doing so can have many reasons, one could be + that you wanted to build a device always playing some startup sound, or so.
+