local &mdash; The Psalms https://bilge.world/tag:local A <a href="https://davidblue.wtf/db.vcf">narcoleptic yokel</a> on software and culture. Wed, 21 Sep 2022 10:32:50 +0000 Retrieve Live NPR Program Information with Siri Shortcuts https://bilge.world/npr-siri-shortcuts?pk_campaign=rss-feed <![CDATA[What's on NPR? Banner A modified shortcut to query live program information from your NPR station. !--more-- 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. For the vast majority of the 24-hour cycle, KBIA - "Mid-Missouri's NPR station" - plays news programs, mostly from NPR, itself, supplanted by BBC news late at night. https://twitter.com/NeoYokel/status/1533556819624349697 After some trimming and the addition of the URL for KBIA's Apple Music Stream, I came up with What's on KBIA?, which displays upon run the current program's title as well as a hyperlink to open its distinct webpage. By way of a simple Choose from Menu action, it then prompts one with three options: Open the program's webpage (again.) Open KBIA's stream in Apple Music. Open KOPN's stream in Apple Music. (KOPN is Columbia's community radio station.) What's on KBIA? Shortcut Creating a Shortcut for Your NPR Station All I really needed to customize Jack Wellborn's original shortcut was my NPR station's "UCSID,"which, for reference, is 5387648fe1c8335046a1d4b4. Upon installation of my What's on NPR? shortcut, you'll be prompted to specify this. Unfortunately, retrieving it via NPR's API requires special authorization, for some reason, but - since we're retrieving data from an NPR station's playback widget already configured to use the API - it's actually as easy as opening your browser's "Dev Tools" or showing on your given station's homepage. If you're unfamiliar, here's a handy guide to doing so on some popular desktop web browsers. centera href="https://apps.apple.com/us/app/web-inspector/id1584825745"img src="https://i.snap.as/6dahYnnY.png" alt="Web Inspector" width="30%"/img/a/center Honestly, though, if you're already on your iOS/iPadOS device and you're willing to install a single, free Safari Extension, I believe you'll find Web Inspector to be the single, simplest method of retrieving your station's UCSID. Finding UCSID-Web Inspector Finding your station's UCSID with Web Inspector Navigate to your station's homepage (ex. kbia.org.) Start playback of the live stream you'd like to query (may or may not be necessary, depending.) Open Web Inspector via the Safari Extensions Menu. In the DOM tab, use the search icon to filter for ucsid. Your station's UCSID is the value for the data-stream-ucsid field. Depending on how modern your station's website is (I think - I'm supposing, here,) you may or may not find this field. For reference, here is the HTML source of KBIA's webpage from which I drew in its entirety. If you're having trouble, please feel free to contact me however you wish, ideally with your preferred station's identifier/web url. centera href="https://apps.apple.com/us/app/broadcasts/id1469995354"img src="https://i.snap.as/e68mJ9cQ.png" alt="Broadcasts" width="30%"/img/a/center "Integration" with the Broadcasts app Broadcasts is a very popular and highly-praised universal Apple application for internet radio streaming. By default, my What's on NPR? shortcut includes an action to begin streaming a station in Broadcasts, but it requires further configuration. Broadcasts App Integration In all likelihood, a search of the Broadcasts Directory for your station's four-letter identifier should yield results. Once you've added your station to your library in Broadcasts, hold its icon (or ^ Tap) to present the context menu (shown in the screenshots embedded above) and select Edit. The exact value for the Name field in configuration menu that results must be supplied as the answer to the second configuration step of my What's on NPR? shortcut. If you do not wish to use Broadcasts, you need only delete or replace its single action in the shortcut's default configuration. If you've followed along this far, you now have both values you're prompted for at installation of said shortcut, by default: your station's ucsid and its name in the Broadcasts app. You need only continue if you'd prefer to add options for Apple Music and/or VLC. Finding an NPR Station's Apple Music URL "Integration" with Apple Music If you'd like to have a menu option to begin streaming your NPR station in Apple Music, begin by searching within the app for your station's identifier (as shown in the screenshot embedded above.) Use the triple-dot menu's Share Station option to copy its Apple Music URL. (WBEZ's, for example, is https://music.apple.com/us/station/npr-news-wbez-chicago/ra.872998937.) Replace or append to the Broadcasts option with a menu option pointing to an Open URLs action containing the resulting URL. (Refer to my What's on KBIA? shortcut to see this implemented.) centera href="https://apps.apple.com/us/app/vlc-media-player/id650377962"img src="https://i.snap.as/RZYRoIw8.png" alt="VLC" width="30%"/img/a/center "Integration" with VLC media player The VLC media player iOS app does not yet have its own Siri Shortcuts actions, but it does have a handy URL scheme which allows one to stream or download the contents of any raw media URL. Using Web Inspector as described above, I was able to find the raw stream URL for KBIA (https://playerservices.streamtheworld.com/api/livestream-redirect/KBIAFM.mp3) quite quickly in the Resources tab whilst streaming live. Finding Raw Stream URL-Web Inspector To add an option to my shortcut to open the stream in VLC, I would add the following value in an Open URLs action: vlc-x-callback://x-callback-url/stream?url=https://playerservices.streamtheworld.com/api/livestream-redirect/KBIAFM.mp3 Once again, if you have any trouble configuring What's on NPR? - whether that be with finding your station's UCSID and/or "integrating" playback with another app, please do reach out. Links What's on NPR? on RoutineHub What's on NPR?'s Issue on my iOS-specific GitHub Repository Source-HTML Source-JSON Source-PLIST --- a href="https://remark.as/p/bilge.world/npr-siri-shortcuts"Discuss.../a #automation #configuration #local]]>

A modified shortcut to query live program information from your NPR station.

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. For the vast majority of the 24-hour cycle, KBIA – “Mid-Missouri's NPR station” – plays news programs, mostly from NPR, itself, supplanted by BBC news late at night.

After some trimming and the addition of the URL for KBIA's Apple Music Stream, I came up with What's on KBIA?, which displays upon run the current program's title as well as a hyperlink to open its distinct webpage. By way of a simple Choose from Menu action, it then prompts one with three options:

  1. Open the program's webpage (again.)
  2. Open KBIA's stream in Apple Music.
  3. Open KOPN's stream in Apple Music. (KOPN is Columbia's community radio station.)

Creating a Shortcut for Your NPR Station

All I really needed to customize Jack Wellborn's original shortcut was my NPR station's “UCSID,“which, for reference, is 5387648fe1c8335046a1d4b4. Upon installation of my What's on NPR? shortcut, you'll be prompted to specify this. Unfortunately, retrieving it via NPR's API requires special authorization, for some reason, but – since we're retrieving data from an NPR station's playback widget already configured to use the API – it's actually as easy as opening your browser's “Dev Tools” or showing on your given station's homepage. If you're unfamiliar, here's a handy guide to doing so on some popular desktop web browsers.

Web Inspector

Honestly, though, if you're already on your iOS/iPadOS device and you're willing to install a single, free Safari Extension, I believe you'll find Web Inspector to be the single, simplest method of retrieving your station's UCSID.

Finding UCSID-Web Inspector

Finding your station's UCSID with Web Inspector

  1. Navigate to your station's homepage (ex. kbia.org.)
  2. Start playback of the live stream you'd like to query (may or may not be necessary, depending.)
  3. Open Web Inspector via the Safari Extensions Menu.
  4. In the DOM tab, use the search icon to filter for ucsid.
  5. Your station's UCSID is the value for the data-stream-ucsid field.

Depending on how modern your station's website is (I think – I'm supposing, here,) you may or may not find this field. For reference, here is the HTML source of KBIA's webpage from which I drew in its entirety. If you're having trouble, please feel free to contact me however you wish, ideally with your preferred station's identifier/web url.

Broadcasts

“Integration” with the Broadcasts app

Broadcasts is a very popular and highly-praised universal Apple application for internet radio streaming. By default, my What's on NPR? shortcut includes an action to begin streaming a station in Broadcasts, but it requires further configuration.

Broadcasts App Integration

In all likelihood, a search of the Broadcasts Directory for your station's four-letter identifier should yield results. Once you've added your station to your library in Broadcasts, hold its icon (or ^ Tap) to present the context menu (shown in the screenshots embedded above) and select Edit. The exact value for the Name field in configuration menu that results must be supplied as the answer to the second configuration step of my What's on NPR? shortcut. If you do not wish to use Broadcasts, you need only delete or replace its single action in the shortcut's default configuration.

If you've followed along this far, you now have both values you're prompted for at installation of said shortcut, by default: your station's ucsid and its name in the Broadcasts app. You need only continue if you'd prefer to add options for Apple Music and/or VLC.

Finding an NPR Station's Apple Music URL

“Integration” with Apple Music

If you'd like to have a menu option to begin streaming your NPR station in Apple Music, begin by searching within the app for your station's identifier (as shown in the screenshot embedded above.) Use the triple-dot menu's Share Station option to copy its Apple Music URL. (WBEZ's, for example, is https://music.apple.com/us/station/npr-news-wbez-chicago/ra.872998937.) Replace or append to the Broadcasts option with a menu option pointing to an Open URLs action containing the resulting URL. (Refer to my What's on KBIA? shortcut to see this implemented.)

VLC

“Integration” with VLC media player

The VLC media player iOS app does not yet have its own Siri Shortcuts actions, but it does have a handy URL scheme which allows one to stream or download the contents of any raw media URL. Using Web Inspector as described above, I was able to find the raw stream URL for KBIA (https://playerservices.streamtheworld.com/api/livestream-redirect/KBIAFM.mp3) quite quickly in the Resources tab whilst streaming live.

Finding Raw Stream URL-Web Inspector

To add an option to my shortcut to open the stream in VLC, I would add the following value in an Open URLs action:

vlc-x-callback://x-callback-url/stream?url=https://playerservices.streamtheworld.com/api/livestream-redirect/KBIAFM.mp3

Once again, if you have any trouble configuring What's on NPR? – whether that be with finding your station's UCSID and/or “integrating” playback with another app, please do reach out.


Discuss...

#automation #configuration #local

]]>
https://bilge.world/npr-siri-shortcuts Mon, 06 Jun 2022 00:19:31 +0000
Three Billboards Outside Silva, North Carolina https://bilge.world/three-billboards-outside-ebbing-missouri-review?pk_campaign=rss-feed <![CDATA[Three Billboards Nitpicking the recklessness of last year’s highly-awarded, class-blind black comedy !--more-- Listen to this article read by Siri Voice 2 below... audio controls source src="https://github.com/extratone/bilge/raw/main/audio/TTS/Three%20Billboards%20Outside%20Silva%20North%20Carolina.mp3" /audio Indeed, it may be the time to jab at the rural, working-class South, but Martin McDonagh claims to have written his Golden Orb Special “eight years ago,” long before Tump, and any critical resolution the film provides is argued haphazardly. Consequently, its eye is cast on this strange, satirical portrayal of the Midwest in a manner which is inaccurate and insensitive enough to irk this Missourian. When I saw it at Columbia’s Ragtag Cinema this week, it was introduced by a young employee who noted that 1) Ebbing, Missouri is not a real place, 2) the film was actually shot in one of the Carolinas (an audience member suggested incorrectly that it was in SC,) and 3) we should prepare ourselves to be roused a bit by a bar scene in which a character pays $8 for two beers because “that just wouldn’t happen” (the Ragtag also serves alcohol.) The “redemption arc” of the racist “hick” “loser” Officer Dixon (Sam Rockwell) was rightfully at the center of the film’s controversy, but even if one imagines his role and fate written differently — perhaps with him irrecoverably shunned and/or visibly punished for his excessive, hateful violence — his rubishness would still be unforgivable. Living with his mother and turtle feels like an effort to humanize him — and, by extension, racist small-town cops as a whole. The Huffington Post’s Zeba Blay wrote an essential take on why Three Billboards — with its terrifyingly racist dork — was received the way it was. Rockwell’s character is the racist uncle whom white liberals fear and love. The ability to feel for him ― to root for him in spite of his past transgressions, because he really is a “good man at heart,” an idiot who doesn’t know any better ― offers a kind of catharsis for the white viewer who can’t or won’t deal with true nuance, who is unable to reconcile their own complicity with their desire to be “good.” It’s not as if the film isn’t technically well executed or refreshing — thanks in large part, yes, to Frances McDormand — or that I will not regret appealing on behalf of my home state, but it’s hard not to speak up when Hollywood shits so recklessly on my people. I don’t much like writing about movies because there are so many voices who consistently speak so much more effectively. NPR’s Pop Culture Happy Hour, for instance, did a wonderful job dissecting the film’s depictions of racism and domestic violence. Gene Demby commented that “[McDonagh] doesn’t get these particular physics of American racism, and he’s not interested in them,” and I think it’s reasonable to suggest that Mark’s not very versed or interested in the physics of American class, either. If you must differentiate the state of Missouri as a cultural whole between North and South, it is currently more red than blue — we went 56% for Donald and 38% for Hillary — but ask anyone from “somewhere down in the Georgia, Florida, Alabama corner” — as McDonagh put it -where we generally fall, and they’d be unlikely to regard us, fraternally, as the same part of the country. The accents in Three Billboards are not among the wide variety of local dialects you’ll encounter anywhere in the state, but perhaps they wouldn’t be out of place in Sylva, North Carolina, where the film was actually shot. Regardless of all potential criticism of the film’s cultural perspective or technical excellence — and I think most of it is more valid than any take I could possibly offer — my particular issue with it comes from a culmination of tasteless decisions. If one reasonably successful Irish director were to produce a patronizing film at the expense of Missouri’s working class filled with a ton of absurd, misconstrued characters portrayed by A-list talent on location in a real Missouri town, the side-effectual economic benefits such a production delivers to a locale would make it all more forgivable. Say what you want about us… as long as you’re paying. But to photograph such a film completely separate Missouri — culturally and financially — set in a fictional(ized) town, include the state’s name in its title, before conducting oneself in interviews as if we were a random target on a “Southern” dartboard… Well, that’s awfully shitty. Boy, working class Americans sure are a riot! The writing is interesting enough for this, totally-out-of-touch“reviewer,” but I can’t imagine why it won Best Screenplay at the Globes, unless the other nominees were completely, bleakly predictable. (I wouldn’t know.) The excerpt below (uSPOILER WARNING I GUESS? LOL/u) was the most stirring part of the experience, personally, if only because I really like films that palm strike one in the face without warning with bizarre, chaotic vulgarity (like the elevator scene in Drive.) I suppose it could have been the result of a rational decision to give any depth to Anne (Abbie Cornish) — who is Chief Willoughby’s (Woody Fucking Harrelson) Australian?, much-too-attractive wife — before he kills himself in the last third of the movie, making her suddenly relevant. Or, perhaps it was another attempt to emphasize the emotional repression of “Southern” folks — one of the almost-accurate positives of the film, if only thanks to McDormand’s skill. She and Sam Rockwell won Best Actress and Best Actor in a Supporting Role, respectively, which makes sense — it’s a shame they accepted such an out-of-touch work with which to demonstrate their ability to assume aloof, emotionally-dysfunctional characters. Growing up astride classe while traveling throughout the vast majority of Missouri for various reasons has made me defensive, and — while my right to speak for hard-working Midwesterners is certainly debatable -I’d suggest the industry at large be more diligently interested when setting is especially emphasized. It is no longer acceptable to pass up the opportunities McDonagh has for critical storytelling in Three Billboards. Racist cops, abusive spouses, unsolved murders, and mishandled grief are real, abundant issues in the country’s breadbasket, and they’re worth discussing responsibly — especially with such a powerful platform. If the purpose of film writing is to help an audience determine whether or not a work is worth spending their time and money to see it in theaters or otherwise, I can tell you — even within my bias and limited authority -that this one just… isn’t. #film #local]]> Three Billboards

Nitpicking the recklessness of last year’s highly-awarded, class-blind black comedy

Listen to this article read by Siri Voice 2 below...

Indeed, it may be the time to jab at the rural, working-class South, but Martin McDonagh claims to have written his Golden Orb Special “eight years ago,” long before Tump, and any critical resolution the film provides is argued haphazardly. Consequently, its eye is cast on this strange, satirical portrayal of the Midwest in a manner which is inaccurate and insensitive enough to irk this Missourian. When I saw it at Columbia’s Ragtag Cinema this week, it was introduced by a young employee who noted that 1) Ebbing, Missouri is not a real place, 2) the film was actually shot in one of the Carolinas (an audience member suggested incorrectly that it was in SC,) and 3) we should prepare ourselves to be roused a bit by a bar scene in which a character pays $8 for two beers because “that just wouldn’t happen” (the Ragtag also serves alcohol.)

The “redemption arc” of the racist “hick” “loser” Officer Dixon (Sam Rockwell) was rightfully at the center of the film’s controversy, but even if one imagines his role and fate written differently — perhaps with him irrecoverably shunned and/or visibly punished for his excessive, hateful violence — his rubishness would still be unforgivable. Living with his mother and turtle feels like an effort to humanize him — and, by extension, racist small-town cops as a whole. The Huffington Post’s Zeba Blay wrote an essential take on why Three Billboards — with its terrifyingly racist dork — was received the way it was.

Rockwell’s character is the racist uncle whom white liberals fear and love. The ability to feel for him ― to root for him in spite of his past transgressions, because he really is a “good man at heart,” an idiot who doesn’t know any better ― offers a kind of catharsis for the white viewer who can’t or won’t deal with true nuance, who is unable to reconcile their own complicity with their desire to be “good.”

It’s not as if the film isn’t technically well executed or refreshing — thanks in large part, yes, to Frances McDormand — or that I will not regret appealing on behalf of my home state, but it’s hard not to speak up when Hollywood shits so recklessly on my people. I don’t much like writing about movies because there are so many voices who consistently speak so much more effectively. NPR’s Pop Culture Happy Hour, for instance, did a wonderful job dissecting the film’s depictions of racism and domestic violence. Gene Demby commented that “[McDonagh] doesn’t get these particular physics of American racism, and he’s not interested in them,” and I think it’s reasonable to suggest that Mark’s not very versed or interested in the physics of American class, either.

If you must differentiate the state of Missouri as a cultural whole between North and South, it is currently more red than blue — we went 56% for Donald and 38% for Hillary — but ask anyone from “somewhere down in the Georgia, Florida, Alabama corner” — as McDonagh put it -where we generally fall, and they’d be unlikely to regard us, fraternally, as the same part of the country. The accents in Three Billboards are not among the wide variety of local dialects you’ll encounter anywhere in the state, but perhaps they wouldn’t be out of place in Sylva, North Carolina, where the film was actually shot.

Regardless of all potential criticism of the film’s cultural perspective or technical excellence — and I think most of it is more valid than any take I could possibly offer — my particular issue with it comes from a culmination of tasteless decisions. If one reasonably successful Irish director were to produce a patronizing film at the expense of Missouri’s working class filled with a ton of absurd, misconstrued characters portrayed by A-list talent on location in a real Missouri town, the side-effectual economic benefits such a production delivers to a locale would make it all more forgivable. Say what you want about us… as long as you’re paying. But to photograph such a film completely separate Missouri — culturally and financially — set in a fictional(ized) town, include the state’s name in its title, before conducting oneself in interviews as if we were a random target on a “Southern” dartboard… Well, that’s awfully shitty.

Boy, working class Americans sure are a riot!

The writing is interesting enough for this, totally-out-of-touch“reviewer,” but I can’t imagine why it won Best Screenplay at the Globes, unless the other nominees were completely, bleakly predictable. (I wouldn’t know.) The excerpt below (SPOILER WARNING I GUESS? LOL) was the most stirring part of the experience, personally, if only because I really like films that palm strike one in the face without warning with bizarre, chaotic vulgarity (like the elevator scene in Drive.)

I suppose it could have been the result of a rational decision to give any depth to Anne (Abbie Cornish) — who is Chief Willoughby’s (Woody Fucking Harrelson) Australian?, much-too-attractive wife — before he kills himself in the last third of the movie, making her suddenly relevant. Or, perhaps it was another attempt to emphasize the emotional repression of “Southern” folks — one of the almost-accurate positives of the film, if only thanks to McDormand’s skill. She and Sam Rockwell won Best Actress and Best Actor in a Supporting Role, respectively, which makes sense — it’s a shame they accepted such an out-of-touch work with which to demonstrate their ability to assume aloof, emotionally-dysfunctional characters.

Growing up astride classe while traveling throughout the vast majority of Missouri for various reasons has made me defensive, and — while my right to speak for hard-working Midwesterners is certainly debatable -I’d suggest the industry at large be more diligently interested when setting is especially emphasized. It is no longer acceptable to pass up the opportunities McDonagh has for critical storytelling in Three Billboards. Racist cops, abusive spouses, unsolved murders, and mishandled grief are real, abundant issues in the country’s breadbasket, and they’re worth discussing responsibly — especially with such a powerful platform. If the purpose of film writing is to help an audience determine whether or not a work is worth spending their time and money to see it in theaters or otherwise, I can tell you — even within my bias and limited authority -that this one just… isn’t.

#film #local

]]>
https://bilge.world/three-billboards-outside-ebbing-missouri-review Fri, 26 Jan 2018 19:00:00 +0000