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.




760 posts

Ultimate Geek


#90470 22-Sep-2011 07:47
Send private message

I posted this over at the MythTVNZ mailing list, but thought it may be of use here too.

Here is a very simple shell script for pulling NZ EPG data (7 days' worth) into your MythTV backend. 

Various other methods I've found either seemed a) complicated (the MHEGTVNZ script, needing rb-download etc) and/or b) didn't work for me (tv_grab_nz-py and Myth on my setup didn't work properly - possibly something to do with Arch linux running Python 3). 

As you can see, this script will download the freeview.xml.gz file from nzepg.org, unzip it, install it into Myth's backend, then clean up.

Paste it into a text file, save it with a ".sh" extension, make it executable (chmod +x) then run it as a daily cron task at, say, 3am and you never need be without an up-to-date EPG! 

#! /bin/bash 
wget http://nzepg.org/freeview.xml.g
gunzip freeview.xml.gz 
mythfilldatabase --file 1 freeview.xml --update 
rm freeview.xml 
exit 
 

ps this method is contingent on the xml file being available at nzepg

pps the freeview.xml which the script downloads is the same as that called for in the tv_grab_nz-py script, and contains the EPG data for both FreeviewHD (DVB-T) and Freeview satellite (DVB-S) channels.

Create new topic
150 posts

Master Geek


  #529110 4-Oct-2011 16:12
Send private message

Awesome, Thanks Laughing



760 posts

Ultimate Geek


  #529142 4-Oct-2011 17:13
Send private message

Ah ha!

Not that I'm sensitive about such things, but it's nice to get at least ONE positive message about this ridiculously simple & easy script :)

 

 
 
 
 


150 posts

Master Geek


  #529148 4-Oct-2011 17:19
Send private message

After the frustration of trying to get other solutions to work and failing badly (ok so I'm still on the learning curve with Linux) I could not believe my eyes as the guide came up with all the entries :) I was almost jumping around the room in excitement at something so easy.

 



760 posts

Ultimate Geek


  #529181 4-Oct-2011 21:02
Send private message

I'm not on a linux learning curve (well, it's an endless process, I suppose), but I couldn't get any of the other solutions to work either. Necessity being the mother of invention as they say, and following a KISS principle, led me to this solution.

It's great to read it's working for someone else, and therefore that I'm not just delusional at how simple it is! Laughing

Create new topic




News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35


UFB hits more than one million connections
Posted 6-Aug-2020 09:42


D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01


New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35


Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21


Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11


Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05


Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26


Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07


Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45


Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48


Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50


Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00


Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51


QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.