diff --git a/README.md b/README.md index 034c1f2e2..a910e723e 100644 --- a/README.md +++ b/README.md @@ -12,5 +12,9 @@ It automatically switches when you are too far away from a station, and it can o 3. Put the skin in ets2-telemetry-server's skins folder 4. Select it and have fun +## Screenshots: ## +![Screenshot](http://i.imgur.com/1FOLMj5.png) +_Screenshot near Białystok_ -![Screenshot](http://i.imgur.com/V0CtUkK.jpg) \ No newline at end of file +![Screenshot](http://i.imgur.com/KiFPfeP.png) +_Screenshot near Suwałki_ \ No newline at end of file diff --git a/config.json b/config.json index 5816f8f55..e9251efc1 100644 --- a/config.json +++ b/config.json @@ -9,7 +9,7 @@ " radius: What the radius in SCS coordinates is for a city to be in range", " treshold: What value in SCS coordinates to switch to the new country's radio station", " whitenoise: Play static when a station is far away", - " volumeDelta: Tone down the volume by this amount (0.2 = 20%) [Planned feature]" + " peerJSkey: The key for WebRTC pairing (the remote control). Key can be obtained for free by registering at http://peerjs.com " ], "config": { @@ -23,7 +23,7 @@ "radius": 7700, "treshold": 300, "whitenoise": true, - "volumeDelta": "0.2" + "peerJSkey": "damhc79361fhto6r" } } \ No newline at end of file diff --git a/dashboard.css b/dashboard.css index 8b04e3fdd..82ac71687 100644 --- a/dashboard.css +++ b/dashboard.css @@ -35,4 +35,8 @@ body { .remote { display: none; -} \ No newline at end of file +} + +.update { + display: none; +} diff --git a/dashboard.html b/dashboard.html index 3544e81cf..f5c53464c 100644 --- a/dashboard.html +++ b/dashboard.html @@ -32,11 +32,14 @@
-

Radio stations:

This device: +

Radio stations:

+
An update is available! Update now
-
This player is being controlled remotely
-

Submit a new station

+
This player is being controlled remotely
+

Submit a new stationThis device:

+
+
@@ -70,25 +67,7 @@

Radio stations:

' + '' + '

' + - '

' + stations[key][j]['name'] + '

' + + '

' + stations[key][j]['name'] + '

' + key.toUpperCase() + '
' + '
' + @@ -169,10 +197,11 @@ function setWhitenoise(volume) { if(g_skinConfig.whitenoise) { var newVolume = Math.pow(volume, 2) - 0.1; if(newVolume < 0) newVolume = 0; + var playerVolume = 1; if(newVolume > 0.5){ - var playerVolume = document.getElementById("player").volume + parseFloat(((Math.floor(Math.random() * 19) / 100) - 0.09) / 1.2); + playerVolume = document.getElementById("player").volume + parseFloat(((Math.floor(Math.random() * 19) / 100) - 0.09) / 1.2); if(playerVolume > 1) playerVolume = 1; - if(playerVolume < 0.2) playerVolume = 0.2; + if(playerVolume < 0.1) playerVolume = 0.1; document.getElementById("player").volume = playerVolume; } else { document.getElementById("player").volume = 1; diff --git a/dashboard.psd b/dashboard.psd index d3b09a317..6e5502278 100644 Binary files a/dashboard.psd and b/dashboard.psd differ