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 | ... | 5 | 6 | 7 | 8 | 9 | 10 | 11
Juicytree
141 posts

Master Geek


  #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!




MickeyD
97 posts

Master Geek

Lifetime subscriber

  #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.


  #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.

 

 




MickeyD
97 posts

Master Geek

Lifetime subscriber

  #1712588 30-Jan-2017 08:17
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. 


  #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!!


Disrespective
1926 posts

Uber Geek


  #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.

MickeyD
97 posts

Master Geek

Lifetime subscriber

  #1713592 31-Jan-2017 22:38
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!


 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
Disrespective
1926 posts

Uber Geek


  #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.


  #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!!


MickeyD
97 posts

Master Geek

Lifetime subscriber

  #1713862 1-Feb-2017 12:18
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.


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

You are a superstar! Thanks a million!


Disrespective
1926 posts

Uber Geek


  #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.


keepitwarm
265 posts

Ultimate Geek


  #1714791 3-Feb-2017 07:08
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.


plas
455 posts

Ultimate Geek


  #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)


plas
455 posts

Ultimate Geek


  #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 | ... | 5 | 6 | 7 | 8 | 9 | 10 | 11
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.