Skip to content

Conversation

@N95JPL
Copy link
Contributor

@N95JPL N95JPL commented Apr 22, 2020

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

@N95JPL
Copy link
Contributor Author

N95JPL commented Apr 23, 2020

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
Thanks,
JPL

@Koenvh1
Copy link
Owner

Koenvh1 commented Apr 23, 2020

@N95JPL N95JPL mentioned this pull request Apr 25, 2020
@N95JPL
Copy link
Contributor Author

N95JPL commented Apr 25, 2020

API Feature - Signal is now dynamic based on the white-noise values and is refreshed along-side:

function refresh(data)

@N95JPL
Copy link
Contributor Author

N95JPL commented May 9, 2020

Updated, works more efficiently/reliably now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants