Hi can someone help me make a script to use from CE?
I want it to run daily at 10 a clock and copy new guide.xml from remote share and write over existing guide.xml on remote share
So it means you’re doing it manually every day and place it to a Web folder on your box with TVheadend?
What country do you grabbing epg for?
I think you’re over thinking here a little bit
No once a week , i run Tvh and grabber on my Asus nas . But have not found a way to run cronjobb on the nas to grabb and move guide from web folder to data folder yet.
Im grabbing tv.nu for sweden. I know there is other options but tv.nu has the best guide with ep/season info and pictures for every program
@borygo
Ok thanks again for above, now next question to make all work with out manually do anything
This command works from terminal to start grabbing remotely:
sudo php /volume1/Web/tempest.php engine=Generate createxmlgz=on createinvxmlgz=on
The grabbing is done under 1h , after that i want to move the guide.xml as above
How to do this in the same cron as above ?
ip 192.168.0.100
user: test
pass: test1
I’ve never been using tempest so got no idea how it works but installed php8-cli in entware. Started your line you gave me earlier and nothing happening. Clearly php is installed. What should it do actually? Sorry but doing it on my phone too lazy to fire up pc…
I am Kivanc, the author of Tempest EPG Generator. I saw this thread by coincidence and wanted to join for some clarifications.
hi @borygo
Based on your screenshot, I see that you already run tempest.php on php-cli without any argument. This will only make it create its folder structure under "/tempest_config/. Tempest is not a fixed source epg grabber so after this point, you need to add files for epg sources that you want to use and add your selected channels into created config.xml file.
hi @Jonke
It seems you have only issue with transferring files. I am not so familier with coreelec or Asus NAS but this should work on almost all linux distros. Easiest way of achieving this is, creating a .sh file for tempest run and other copy paste jobs(if required) as below;
create a tempest_run.sh file and add the following inside;
#!/bin/bash
##first run the tempest for epg generating
sudo php /volume1/Web/tempest.php engine=Generate createxmlgz=on createinvxmlgz=on
##in a command script, next line will be always executed after completion of current line
##so shell will wait tempest to finish then proceed to copy line
sudo cp smb://192.168.0.100/Web/Guide.xml smb://192.168.0.100/TVheadend/config/data/Guide.xml
##if you want to copy more files, add as example below for copying .gz compressed files
##sudo cp smb://192.168.0.100/Web/Guide.xml.gz smb://192.168.0.100/TVheadend/config/data/Guide.xml.gz
after giving suitable ownership and execute permission to sh file, you can add it to your cron as;