Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11
98 posts

Master Geek
+1 received by user: 11


  Reply # 1711202 28-Jan-2017 22:46
Send private message

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!


60 posts

Master Geek
+1 received by user: 14


  Reply # 1711203 28-Jan-2017 22:58
Send private message

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.


1664 posts

Uber Geek
+1 received by user: 188

Subscriber

  Reply # 1711252 29-Jan-2017 10:02
Send private message

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.

 

 


60 posts

Master Geek
+1 received by user: 14


  Reply # 1712588 30-Jan-2017 08:17
One person supports this post
Send private message

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. 


1664 posts

Uber Geek
+1 received by user: 188

Subscriber

  Reply # 1712591 30-Jan-2017 08:27
Send private message

Working like a charm Mickey - volume much improved now - really awesome addition to the NZ Alexa Experience - thanks for this!!


1797 posts

Uber Geek
+1 received by user: 120


  Reply # 1713488 31-Jan-2017 19:30
Send private message

I've been working on a php script to grab data from the metservice and output a text string that Alexa can speak back to me but haven't quite got it. Anyone care to have a look?

 

 

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.

60 posts

Master Geek
+1 received by user: 14


  Reply # 1713592 31-Jan-2017 22:38
One person supports this post
Send private message

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!


1797 posts

Uber Geek
+1 received by user: 120


  Reply # 1713778 1-Feb-2017 10:44
Send private message

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.


1664 posts

Uber Geek
+1 received by user: 188

Subscriber

  Reply # 1713808 1-Feb-2017 11:05
Send private message

What would be great is a query parameter with the location name/id which is passed to the script. 

 

Awesome work lads!!


60 posts

Master Geek
+1 received by user: 14


  Reply # 1713862 1-Feb-2017 12:18
2 people support this post
Send private message

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.


1664 posts

Uber Geek
+1 received by user: 188

Subscriber

  Reply # 1713864 1-Feb-2017 12:21
Send private message

You are a superstar! Thanks a million!


1797 posts

Uber Geek
+1 received by user: 120


  Reply # 1713892 1-Feb-2017 13:01
Send private message

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.


256 posts

Ultimate Geek
+1 received by user: 20


  Reply # 1714791 3-Feb-2017 07:08
One person supports this post
Send private message

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.


358 posts

Ultimate Geek
+1 received by user: 18


  Reply # 1714794 3-Feb-2017 07:40
Send private message

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)


358 posts

Ultimate Geek
+1 received by user: 18


  Reply # 1715120 3-Feb-2017 19:11
Send private message

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.


1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11
View this topic in a long page with up to 500 replies per page Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.