-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional API / Showing Radio Data #93
base: master
Are you sure you want to change the base?
Conversation
Quick Question: When the server is playing a specific radio station and the signal starts dropping out (Whitenoise starting) - Is the SetRadioStation called again with the Signal Strength? Or is this handled by the setWhitenoise function in web/main.js |
setWhitenoise, in particular here: https://github.com/Koenvh1/ets2-local-radio/blob/master/web/lib/js/main.js#L308 |
API Feature - Signal is now dynamic based on the white-noise values and is refreshed along-side: function refresh(data) |
Station Updates
Updated, works more efficiently/reliably now! |
An extra API for people to use
http://IPADDRESS/api/radio/
This will show a JSON String with the Current Radio Station & the Signal strength
Like this;
{"Radio":"RAI Radio 1","Signal":"5"}
I wanted to include the Nearest City but it would require a slight change to the main.js (Web one) which isnt hosted locally to try
& In-Game Time, but the SDK used by this Program isn't new enough so doesn't include the value