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

Retrieve Live NPR Program Information with Siri Shortcuts #331

Open
extratone opened this issue Jun 5, 2022 · 0 comments
Open

Retrieve Live NPR Program Information with Siri Shortcuts #331

extratone opened this issue Jun 5, 2022 · 0 comments
Labels
audio Audio, the medium! End User and other stuff. automation i On iOS & iPhone. (Subject) media Regarding the media industry. music Music, the music industry, streaming music, and more. (Subject) siri

Comments

@extratone
Copy link
Owner

Retrieve Live NPR Program Information with Siri Shortcuts

Finding UCSID

This past month, MacStories hosted a community Siri Shortcuts contest called Automation April. One of its winners - a shortcut called "What's on KUTX?" credited to Jack Wellborn - caught my eye as a lifelong dependent upon National Public Radio. Via John Voorhees' comment:

The solution Wellborn came up with is ingenious. It turns out that KUTX uses a web API that can return information about the currently playing track. The API is used to drive an ‘On Now’ widget on the station’s website, but Wellborn discovered that they could query the API and get the track information back as JSON. So, they built a shortcut that queries the API when run, returning the info about the currently-playing song.

I began playing around with the NPR API Jack used and discovered quite accidentally that their shortcut could be modified to display current program information for those NPR stations that are not music-oriented, like mine.

What's on KBIA? Shortcut

Web Inspector Logo

Broadcasts Logo

@extratone extratone added audio Audio, the medium! End User and other stuff. automation i On iOS & iPhone. (Subject) media Regarding the media industry. music Music, the music industry, streaming music, and more. (Subject) siri labels Jun 5, 2022
extratone added a commit that referenced this issue Jun 5, 2022
extratone added a commit that referenced this issue Jun 5, 2022
extratone added a commit that referenced this issue Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Audio, the medium! End User and other stuff. automation i On iOS & iPhone. (Subject) media Regarding the media industry. music Music, the music industry, streaming music, and more. (Subject) siri
Projects
None yet
Development

No branches or pull requests

1 participant