You are here

EPG Update Automatic

13 posts / 0 new
Last post
Ricky
Offline
Donator
Joined: 8 years
Last seen: 10 hours
EPG Update Automatic

Hi

i have woorking the epg but i have to scan every day and wait 3 hour to download,...

how i can put the epg on my portal, that do it automatic update ?

thanks

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

Well,

Depending on your config file, you can speed up things.

And to automate on windows: http://webgrabplus.com/documentation/interact-your-pvr-software/schedule...

Ricky
Offline
Donator
Joined: 8 years
Last seen: 10 hours

thanks for your reply,..

but i dont have that program like that,.. i have the Webgrabplus.exe  in on 1 computer then i press the icon and start to run, when is done i take out the

guide.xml and put it in my server where is the stalker portal.

please if is any guide or tuto how to will be fine

thanks

 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

Well, if you are on windows, you have.

I updated the above link with the content of the UpdateEPG.bat file.

 

For uploading the resulting guide.xml to the stalker portal, you'll give some more information on how you are doing that now. Then we could see how we could add this to the update script.

But firtst you must make the the above working before going further.

jenseneverest
Offline
Joined: 8 years
Last seen: 4 years

Interesting.... i have a similar wish. My grab takes 17 hours daily. I have it working without a script using windows 10 scheduler 

That part is simple enough...in my case i then need to

1. copy to seperate file and overwrite excisting output guide.xml

2. Compress output guide.xml to gzip format, overwrite excisting copy

3. FTP to host server, again overwrite excisting file

I have had a look at this FTP programme: https://winscp.net/eng/docs/guide_schedule 

I currently use filezilla for FTP and 7zip for compression. It would appear winscp can be scheduled, i am not sure about 7zip...but there must be a better a way of doing all of the above tasks via a script, however i have somewhere between zero and very little knowledge of writing any script...

Thanks

 

Ricky
Offline
Donator
Joined: 8 years
Last seen: 10 hours

ok =francis

im using WinXP, intall the WebGrab+ on my PC, the i run every day, when is finished i put the guide.xml with WinSCP on the server, on the stalker portal y press update and appears the guide..

now,   i create the UpdateEPG.bat file with the scrip inside and put it on the program i hit 2 and run,... i create the Schedule Tasks 

i let you know if works today

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

@jenseneverest

What I would do:

1. create a UpdateEPG.bat file and call that instead of the program.

For the "Start a program" value use: /c start "WG++" /min "C:\ProgramData\ServerCare\WebGrab\UpdateEPG.bat"

2. in that C:\ProgramData\ServerCare\WebGrab\UpdateEPG.bat file (foregive me if I make a mistake in one of these lines, not tested)

@ECHO off
:CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO BIT64) ELSE (GOTO BIT32)

:BIT64
SET ProgramPath=%PROGRAMFILES(X86)%
GOTO END

:BIT32
SET ProgramPath=%PROGRAMFILES%
GOTO END

:END
"%ProgramPath%\ServerCare\WebGrab+PlusV1.1.1\WebGrab+Plus.exe" "C:\ProgramData\ServerCare\WebGrab"

@REM copy your file to the name you want
@REM(you could also adjust the guide.xml name directly in the config file of wg++)
COPY /Y "C:\ProgramData\ServerCare\WebGrab\guide.xml" "C:\ProgramData\ServerCare\WebGrab\guide_new_name.xml"

@REM create the gzip file for uploading
"C:\Program Files\7-Zip\7z.exe" a -tgzip "C:\ProgramData\ServerCare\WebGrab\upload.gzip" "C:\ProgramData\ServerCare\WebGrab\guide_new_name.xml"

@REM upload the gzip file to the server
ftp -i -s:ftp_script.txt

@REM comment out next line, to stop the command window from automaticly closing
@REM PAUSE

EXIT

3. create the ftp command file (C:\ProgramData\ServerCare\WebGrab\ftp_script.txt)

@ftp -i -s:"%~f0"&GOTO:EOF
open the.url.of.your.server.com
your_ftp_username
your_ftp_password
!:--- FTP commands below here ---
lcd C:\ProgramData\ServerCare\WebGrab
cd  public_html/MyRemoteDirectory
binary
mput "upload.gzip"
disconnect
bye

you'll have to change some of the values to your personal settings, like:

-guide_new_name.xml
-the.url.of.your.server.com
-your_ftp_username
-your_ftp_password
-public_html/MyRemoteDirectory

Ricky
Offline
Donator
Joined: 8 years
Last seen: 10 hours

ok=francis

thanks for your help

i do this

1. i create a UpdateEPG.bat file like this post and change the name guide_new_name.xml for my, put it on my pc where is the program webgrab

i press 2 times the UpdateEPG.bat file and start working now.

where i do this ? For the "Start a program" value use: /c start "WG++" /min "C:\ProgramData\ServerCare\WebGrab\UpdateEPG.bat"

2. in that C:\ProgramData\ServerCare\WebGrab\UpdateEPG.bat file ,..      its ok i put it and works

3. i create the script ftp command file and put it here (C:\ProgramData\ServerCare\WebGrab\ftp_script.txt) in the program

i change the values to my personal settings, like:

-guide_new_name.xml .... change it on my UpdateEPG.bat file
-the.url.of.your.server.com .....  change and put my url
-your_ftp_username .... change and put my ftp usernam
-your_ftp_password .... change and put my ftp pass
-public_html/MyRemoteDirectory  .... change and put cd var/www/html ( where is located the guide)

now i created the Schedule Task and doesnt start indicated (Could not Start) this is on WinXP

on Run:  i put ....  C:\ProgramData\ServerCare\WebGrab\UpdateEPG.bat

on Start in: i have to put   /c start "WG++" /min    or this    C:\ProgramData\ServerCare\WebGrab\UpdateEPG.bat

but indicated this

An errors has ocured while attempting to set task information.

The specific error is :

0x80070005: Acces is denied.

you do not have permission to perform the requested operation.

im loging as admin.

other thing the guide when is done is with the time zone +0000 i have to change it to -4:00 so is perfect, how i can dounloaded with the correct time zone  ?

today i wil now its star automatic and i let you know

thanks

giannit
Offline
Joined: 7 years
Last seen: 7 years
Hello, I have prepared UpdateEPG.bat file, to which I added a script to automatically run the xml file to my 
FTP server / zip of the EPG, if I run them manually works perfectly, but if you do run into activities planned for 
windows 10, the script does not work, someone had a similar problem?

@echo off
:CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO BIT64) ELSE (GOTO BIT32)

:BIT64
SET ProgramPath=%PROGRAMFILES(X86)%
GOTO END

:BIT32
SET ProgramPath=%PROGRAMFILES%
GOTO END

:END
"%ProgramPath%\ServerCare\WebGrab+PlusV1.1.1\WebGrab+Plus.exe" "C:\ProgramData\ServerCare\WebGrab"

@REM copy your file to the name you want
@REM(you could also adjust the guide.xml name directly in the config file of wg++)
@REM COPY /Y "C:\ProgramData\ServerCare\WebGrab\italia.xml" "C:\ProgramData\ServerCare\WebGrab\italia.xml"

@REM create the zip file for uploading
"C:\Program Files\7-Zip\7z.exe" a -tzip "C:\ProgramData\ServerCare\WebGrab\italia.zip" "C:\ProgramData\ServerCare\WebGrab\italia.xml"

@REM upload the gzip file to the server
ftp -i -s:ftp_script.txt

@REM comment out next line, to stop the command window from automaticly closing
@REM PAUSE

EXIT

 

SCRIPT FTP

@ftp -i -s:"%~f0"&GOTO:EOF
open ftp.myusername.altervista.org
my user
my pass
!:--- FTP commands below here ---
lcd "C:\ProgramData\ServerCare\WebGrab"
cd mypath
binary
mput "C:\ProgramData\ServerCare\WebGrab\italia.zip"
disconnect
bye

yxyx1980@yahoo.com
Offline
Has donated long time ago
Joined: 8 years
Last seen: 1 year

So, I did the above: batscript itself is working when I give it amin rights manually. It is grabbing and making a zipfile, but it is not uploading the file into my remote server/vps. So, I must be doing sth wrong.

2- The schedual action is also not working and I have been trying every solution I could think of. So, any ideals please?

3. And yes I tried with windows 7 64bit. with or without a password for the active user. And still no joy. 

Ricky
Offline
Donator
Joined: 8 years
Last seen: 10 hours

Im using Win XP but doenst do it automatic

Ricky
Offline
Donator
Joined: 8 years
Last seen: 10 hours

i can use it in the same server that i have the panel with ubuntu 14.04 ?

vladmk
Offline
Joined: 7 years
Last seen: 7 years

Hello . I make epg and epg works 2 days . No its no working anny help ? Maybe not set to auto update. Im now expiriens with this . Anny help  pls . ty

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl