Hi there! KFAI volunteer here, new to Spinitronās deeper functions. Weāre hoping to use metadata push to post to a Bluesky account. I made a couple of Blueskyās sample scripts work, but even after looking at KFAIās existing metadata push channels, Iām not clear how to implement this in Spinitron.
The specific part of this that I donāt get is how to send the user/password to authenticate, then parse the token from the object I get back to send the request w/metadata. Is that possible using one of Spinitronās existing metadata push channels?
I donāt think push from Spinitron to Bluesky is going to work without some special code. Given how social media integration has worked for us in the past I am not enthusiastic about making that code a feature of Spinitron. But it would be pretty easy to do it elsewhere. It would actually be well suited to a server-less function (e.g. AWS Lambda).
Set up an HTTP service to receive an application/x-www-form-urlencoded push from Spinitron and do the API transaction with Bluesky based on that.
Sounds like you might already be halfway there if you have the sample scripts running.
In fact I do know! Another KFAI DJ shared that account with me, and I reached out to Dan. Heās scraping info from the Spinitron site every 60 seconds and said he didnāt think to check whether Spinitron had an API.
I have a POC ready to go that accepts a POST request and then uses an atproto client to post to Bluesky. It works great on my laptop! So right now Iām trying to find someone at the station whoās familiar with its web hosting situationāif theyāre already deployed on AWS or Google, for instance, Iād like to set this up as a serverless service on the same platform.
Using PUSH from Spinitron is the way to go. I donāt like polling for this kind of thing. And I donāt like page scraping at all.
Tbh I think thereās limited use for this kind of thing. Social media bots can be kind of a pest. Who wants to follow an account thatās posting every few minutes? And is it a convenient way to look up whatās on the radio if you have to locate the account without following it? Idk. It maybe has some value if someone can find the station after doing a music search, but Idk how like that is to work. When we made the software to do it for Twitter back in the day it was mostly a fun gimmick.