[RELEASE] - The Scheduler

  Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
giftie Offline
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #76
Latest version available.. -> https://www.dropbox.com/s/19jarh5fnkg29o...-1.0.1.zip

[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
Lunatixz Offline
Posting Freak
Posts: 2,664
Joined: May 2011
Reputation: 45
Location: New York
Post: #77
Thanks

[Image: m86j8t6]
[Image: nm9wgdf]
[PseudoTV Live][Donate?][+1 Rep Me!][+5 ★ Thread!]
find quote
thos Offline
Member
Posts: 56
Joined: Dec 2011
Reputation: 0
Post: #78
I'm confused with this ....

I want to run plugin.video.mms on a scheduled basis ...

So do I need:
RunScript(/home/thos/.xbmc/addons/plugin.video.mms/default.py)
or
RunScript(plugin.video.mms)


Here's the snip from my settings file
<setting id="custom1" value="true" />
<setting id="custom1_cycle" value="1" />
<setting id="custom1_day" value="0" />
<setting id="custom1_disable_music" value="false" />
<setting id="custom1_disable_video" value="false" />
<setting id="custom1_interval" value="1" />
<setting id="custom1_script" value="RunScript(plugin.video.mms)" />
<setting id="custom1_time" value="19:45" />


19:22:27 T:140519424935680 DEBUG: Process - Entering source directory /home/thos/.xbmc/addons/service.scheduler
19:22:27 T:140519424935680 DEBUG: Instantiating addon using automatically obtained id of "service.scheduler" dependent on version 2.1.0 of the xbmc.python api
19:22:27 T:140519424935680 NOTICE: [service.scheduler] - Loading Setting
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Setting Settings Load Interval: 86400 seconds
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - cdart_manager_running: False
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - cdart_manager_update: False
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Current Day: Wednesday
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Current Time: 19:22
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Adjusting Testing time
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Current Value: 19:45
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Current Interval: 16
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Test time: 20:01
19:22:27 T:140519424935680 DEBUG: [service.scheduler] - Setting Sleep Interval: 900 seconds


I'm NOTseeing the log entries like others are:
417 20:12:36 T:7964 NOTICE: [service.scheduler] - Starting Custom 1 Hourly Schedule, every 8 Hours
find quote
BootsC5 Offline
Junior Member
Posts: 7
Joined: May 2013
Reputation: 0
Post: #79
I'm getting this error on startup. Running Gotham, fresh install, running 1.0.1. Any ideas?

11:10:40 T:14400 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: global name 'hour_multiplier' is not defined
Traceback (most recent call last):
File "C:\Users\Boots\AppData\Roaming\XBMC\addons\service.scheduler\default.py", line 850, in <module>
script.start()
File "C:\Users\Boots\AppData\Roaming\XBMC\addons\service.scheduler\default.py", line 844, in start
self.schedule_check()
File "C:\Users\Boots\AppData\Roaming\XBMC\addons\service.scheduler\default.py", line 573, in schedule_check
self.custom1_timer = Timer( self.custom1[ "interval" ] * hour_multiplier, self.trigger_builtin, [ self.custom1[ "script" ], "custom1" ] )
NameError: global name 'hour_multiplier' is not defined
-->End of Python script error report<--
find quote
Frozin Offline
Senior Member
Posts: 140
Joined: Aug 2012
Reputation: 2
Post: #80
I'm getting the same error Sad

(2014-06-01 17:14)BootsC5 Wrote:  I'm getting this error on startup. Running Gotham, fresh install, running 1.0.1. Any ideas?

11:10:40 T:14400 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: global name 'hour_multiplier' is not defined
Traceback (most recent call last):
File "C:\Users\Boots\AppData\Roaming\XBMC\addons\service.scheduler\default.py", line 850, in <module>
script.start()
File "C:\Users\Boots\AppData\Roaming\XBMC\addons\service.scheduler\default.py", line 844, in start
self.schedule_check()
File "C:\Users\Boots\AppData\Roaming\XBMC\addons\service.scheduler\default.py", line 573, in schedule_check
self.custom1_timer = Timer( self.custom1[ "interval" ] * hour_multiplier, self.trigger_builtin, [ self.custom1[ "script" ], "custom1" ] )
NameError: global name 'hour_multiplier' is not defined
-->End of Python script error report<--

[Image: all-clearlogo.jpg]
find quote
dafy1974 Offline
Junior Member
Posts: 5
Joined: Jul 2014
Reputation: 0
Post: #81
Hi I was wondering if anyone could help me with some scripting. I am trying to use the custom script to start up a tvcatchup channel from favourites but am unable to get the script to work. This is what I have so far RunScript(&quot;script.tvcatchup&quot;,17,BBC News)

Any help would be appreciated
find quote
Post Reply