Skip to content
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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

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