![]() ![]() ![]() |
|
RNZ news bulletins are probably going to be difficult to source because they are accessed by a URL that increases by one digit each hour. It makes coding somewhat more difficult for old codgers like me with slow neurons between the ears!
I have a working script for RNZ news now too. It's written in PHP because that's all I know. Again, pm me if you want it.
Both radio NZ and radio live are a bit quiet compared to what alexa expects. Next step is to find a way to automatically increase the audio volume.
MickeyD:
I have set it up to get the latest bulletin from RadioLive news.
Got this working - thanks very much Mickey!!
As you mentioned, it is very quiet so hopefully we can figure that out, but otherwise very cool stuff!!
Thanks for sharing.
Radio NZ script updated to increase the volume and strip leading and trailing silence.
That was a bit more involved than setting up the feed for alexa. Again, happy to share the scripts on request.
Working like a charm Mickey - volume much improved now - really awesome addition to the NZ Alexa Experience - thanks for this!!
The implementation is very similar to @MickeyD's but you choose a text based content type.
The error I see from Amazon is that the output is not a json format, but i'm pretty sure it is...
File is here:
https://github.com/pabloNZ/metservice-Alexa/blob/master/metservice.php
It's pretty easy to edit the format of the spoken text string, and the url's need to be modified for your location to make them work properly for you.
I had a look - your script works for me and doesn't give any error.
I've added that to the collection at http://alexa.vagabond.net.nz too. Thanks @Disrespective!
Thanks for the updates to the code ;) and hosting it Mickey. I'd not written PHP before yesterday so that took a bit of time to figure out heh. Feel free to edit the name of the script on your page to reflect the location I have if it will make things clearer when/if other people want other locations.
What would be great is a query parameter with the location name/id which is passed to the script.
Awesome work lads!!
SumnerBoy:
What would be great is a query parameter with the location name/id which is passed to the script.
Then great is what you shall have:
Set the feed source to http://alexa.vagabond.net.nz/metservice_weather.php?region=xxxxxx where xxxxxx is the region code from metservice.com (e.g. 'wellington', 'auckland', 'lyall-bay' etc)
Alexa sometimes gets upset that the script is too slow and says it's unavailable. When I get time I'll look at whether I can make it faster, or whether it needs to be cached.
You are a superstar! Thanks a million!
Very nice. That's going to help people get set up for sure.
Like you say, it did take a few tries to have Alexa confirm the script contents were valid. Would simply adding a sleep() function to the end of the script give it time to grab all the data before output? I don't really know how Alexa handles the scripts though so that may be completely counter productive.
Some new things to try with plex, slack and web hooks, ( have not myself yet)
https://www.plex.tv/blog/alexa-ask-plex-get-party-started/
.............................................................
simple logic.
keepitwarm:
Some new things to try with plex, slack and web hooks, ( have not myself yet)
https://www.plex.tv/blog/alexa-ask-plex-get-party-started/
Typical, I just spent last night setting up a Plex skill so Alexa could tell me recent downloads and what is on deck. But this looks good, I'm interested to see if it plays nice with the Samsung TV app (I don't have much hope)
The Plex skill doesn't work currently with new Samsung TVs, there is going to be an update but no eta.
So instead of watching TV I've now got Alexa controlling my garden sprinklers.
|
![]() ![]() ![]() |