[RELEASE] - The Scheduler

  Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Ferrari Offline
Junior Member
Posts: 8
Joined: Nov 2012
Reputation: 0
Post: #16
Dear all,

I downloaded the 0.0.8 release of the sript and I added to my Openelec XBMC RaspberryPI version.
I can configure the script but I have two questions:
- I want to powerdown at 3.00 PM. I suppose that I have to use Custo Builtun. So I edited the Custom Scripting 1 and I put RunScript(XBMC.Powerdown) in the Built-in script field. I select Daily as Type of schedule and I select 15:00 as Time of day. Unfortunately it doesn't work.
What do I have to change ? What is incorrect ?
- I want to set the log file but the screen "Extra Setting" is not selectable (I click on the arrow at right side the tabs but no action is taken).
I'm a novice of XBMC so I think that something is wrong or is incorrect.
Could you help me to fix the problem ?

thank you very much for your help and ooperation

regards
find quote
giftie Online
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #17
Just try the following as the built-in command(no RunScript)
Code:
Powerdown

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
Ferrari Offline
Junior Member
Posts: 8
Joined: Nov 2012
Reputation: 0
Post: #18
Ok. I modified the setting and the system should power off.
Is it possible to execute a shell script i.e: touch /storage/downloads/test.txt ? (I suppose that I have to use System.Exec("touch /storage/downloads/test.txt"). Is it correct ?

thank you very much

regards
find quote
Ferrari Offline
Junior Member
Posts: 8
Joined: Nov 2012
Reputation: 0
Post: #19
Dear giftie,
I modified the setting accordion your suggestion "Just try the following as the built-in command(no RunScript)" but the system was not powered off.

How to check if the script is installed correctly ?
How to check if the settings are OK ?
How to set the log file ? (as I mentioned the Extra Setting tab is not accessible)
Could you, please, show me an example of settings (iust a JPEG screenshot)

thank you very much for your help and cooperation

regards
find quote
giftie Online
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #20
(2012-11-29 01:19)Ferrari Wrote:  Dear giftie,
I modified the setting accordion your suggestion "Just try the following as the built-in command(no RunScript)" but the system was not powered off.

How to check if the script is installed correctly ?
How to check if the settings are OK ?
How to set the log file ? (as I mentioned the Extra Setting tab is not accessible)
Could you, please, show me an example of settings (iust a JPEG screenshot)

thank you very much for your help and cooperation

regards

I just tried the BuiltIn command 'Powerdown'. Though my system did not power down(I think I uncovered a bug in XBMC), XBMC started the process of shutting down. You can also try the 'ShutDown' command.

The script logs to the XBMC log file(need to have XBMC's debugging on), this will also show the triggers as they are activated. What skin are you using?

Edit.....

I know for sure that 'Powerdown' works perfectly when there is not a normal script(one started from programs) running. I forgot to remove the custom a schedule and found my system off the next day.

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


(This post was last modified: 2012-12-02 05:52 by giftie.)
find quote
Ectholian Offline
Member
Posts: 60
Joined: Jun 2012
Reputation: 0
Post: #21
I use these extra script command:
RunScript(script.artworkorganizer)
(This post was last modified: 2012-12-18 16:30 by Ectholian.)
find quote
matt77303 Offline
Fan
Posts: 359
Joined: Dec 2011
Reputation: 6
Post: #22
Instead of setting a time or every 8 hours for example, would it possible to say run a script after xbmc is running for 15 minutes?

Also would like to see if possible running a script while shutting down, ie select shutdown or reboot and the script is ran then it continues to shut down/reboot. for example you selct shutdown, then it runs xbmc backup when thats done it shuts down.

Thanks

Matt

CPU - AMD Athlon™ II X2 Dual-Core 3.4Ghz
MB - ASUS M5A78L-M/USB3, Nvidia 610 2GB
RAM - 4GB DDR3 Dual-Channel
OS - XBMC Frodo
TV - Panasonic TX-P50S21B
Home Cinema - Pioneer VSX-S300 5.1
Remote - Harmony one
find quote
matt77303 Offline
Fan
Posts: 359
Joined: Dec 2011
Reputation: 6
Post: #23
With respect to the built in cd art manager functions, which order should i do ' enable cdART manager downloading scheduling ' and ' cd manager schedule update '

Thanks

Matt

CPU - AMD Athlon™ II X2 Dual-Core 3.4Ghz
MB - ASUS M5A78L-M/USB3, Nvidia 610 2GB
RAM - 4GB DDR3 Dual-Channel
OS - XBMC Frodo
TV - Panasonic TX-P50S21B
Home Cinema - Pioneer VSX-S300 5.1
Remote - Harmony one
find quote
jmh2002 Offline
Fan
Posts: 305
Joined: Dec 2008
Reputation: 2
Location: FRA, ITA, UKR,
Post: #24
Great AddOn, thank you! Smile

I see a lot of functions and AddOns that already update 'at Startup' but would it be possible to add an option to run certain items from the scheduler 'on Shutdown' ?

This would bring various AddOns that are communicating with external devices/websites/etc up to date after the final use of XBMC (and mean all is ready to be updated again when XBMC is opened again, eg: on a different machine in a different location)
find quote
Slipass Offline
Member
Posts: 95
Joined: Sep 2012
Reputation: 0
Post: #25
Hello,
is it possible to run the ArtworkDownloader automatically with this script?
find quote
Martijn Offline
Team Kodi
Posts: 11,386
Joined: Jul 2011
Reputation: 165
Location: Dawn of time
Post: #26
(2013-01-07 01:37)Slipass Wrote:  Hello,
is it possible to run the ArtworkDownloader automatically with this script?

No

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
matt77303 Offline
Fan
Posts: 359
Joined: Dec 2011
Reputation: 6
Post: #27
Is there a reason? Ive got mine setup to run at 1.05 am looking at the last run thing in artwork.downloader it ran last night and downloaded stuff.

Matt
Hi giftie,

I also seem to be having problems with PowerDown, it was working.but now its not.

Is there a way to force it to shut down? Even if there is a script running? Or keep trying if somthing important is running when it tries to shut down.


Matt

CPU - AMD Athlon™ II X2 Dual-Core 3.4Ghz
MB - ASUS M5A78L-M/USB3, Nvidia 610 2GB
RAM - 4GB DDR3 Dual-Channel
OS - XBMC Frodo
TV - Panasonic TX-P50S21B
Home Cinema - Pioneer VSX-S300 5.1
Remote - Harmony one
(This post was last modified: 2013-01-08 12:41 by matt77303.)
find quote
Slipass Offline
Member
Posts: 95
Joined: Sep 2012
Reputation: 0
Post: #28
Hello,
i want to create an auto export from the video library.

The build in code from xbmc is: exportlibrary(video,true,false,false)

But nothing happens
find quote
Ghostdivision Offline
Posting Freak
Posts: 751
Joined: Jan 2012
Reputation: 0
Post: #29
Is there a way to schedule xbmc to quit at a certain time?

Would I just type quit?
(This post was last modified: 2013-01-09 18:20 by Ghostdivision.)
find quote
matt77303 Offline
Fan
Posts: 359
Joined: Dec 2011
Reputation: 6
Post: #30
(2013-01-09 18:17)Ghostdivision Wrote:  Is there a way to schedule xbmc to quit at a certain time?

Would I just type quit?

http://wiki.xbmc.org/index.php?title=Lis..._functions

4th from top

Matt

CPU - AMD Athlon™ II X2 Dual-Core 3.4Ghz
MB - ASUS M5A78L-M/USB3, Nvidia 610 2GB
RAM - 4GB DDR3 Dual-Channel
OS - XBMC Frodo
TV - Panasonic TX-P50S21B
Home Cinema - Pioneer VSX-S300 5.1
Remote - Harmony one
find quote
Post Reply