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

feat: AzuraCast / Custom Endpoint #263

Open
4 tasks done
TychoWerner opened this issue Feb 1, 2025 · 5 comments
Open
4 tasks done

feat: AzuraCast / Custom Endpoint #263

TychoWerner opened this issue Feb 1, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@TychoWerner
Copy link

Please check existing knowledge before opening an issue

What Type?

Source

Name

AzuraCast

Website

https://www.azuracast.com/docs/developers/now-playing-data/#standard-now-playing-api

API Available?

Yes

Free To Use?

Yes

Willing to finance development?

None

Will you help implement it?

  • I am willing to contribute code towards completing this feature
  • I am willing to help test preview builds for this feature

Additional Context

Hi, for a radio station I monitor Now Playing data thru AzuraCast, and wish to Scrobble this to multiple places, this seems like a nice project to connect this. I can provide my own data to a custom endpoint but was unable to find it.

There are 2 ways to connect with AzuraCast, pull the data from the Now Playing API: https://www.azuracast.com/docs/developers/now-playing-data/#standard-now-playing-api

or get a HTTP POST request from AzuraCast,

Image https://azuracast.com/api

Thanks in advance and hope to hear from you!

@TychoWerner TychoWerner added the enhancement New feature or request label Feb 1, 2025
@TychoWerner
Copy link
Author

Available endpoint for testing: https://demo.azuracast.com/api/nowplaying

@FoxxMD
Copy link
Owner

FoxxMD commented Feb 2, 2025

I just started using azuracast about a month ago, great timing! I hadn't considered using the now playing endpoint for scrobbling, this is a great idea. I'll look into implementing a Source this coming week.

@TychoWerner
Copy link
Author

Awesome! Sounds good Foxx, if there is something I can test let me know

@TychoWerner
Copy link
Author

How are you standing against a general endpoint that can be used? @FoxxMD
I can write a wrapper API in something like Node-RED.

@FoxxMD
Copy link
Owner

FoxxMD commented Feb 3, 2025

My plan is to implement websockets polling with a fallback to the static json endpoint in the event WS cannot be established or kept open.

To detect listening automatically you will be able to specify how many listeners need to be seen to make the monitoring "active". Useful for fully-private stations where you are the only listener IE "monitorWhenListeners": 2 = start scrobbling if now playing API reports 2 or more listeners for the station.

I'll also implement a manual toggle for scrobbling so a user can initiate "active scrobbling" through the web dashboard or an API endpoint to MS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants