2014-02-16, 08:48
Latest version available.. -> https://www.dropbox.com/s/19jarh5fnkg29o...-1.0.1.zip
(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<--
(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<--
(2015-01-07, 19:56)ponch0 Wrote:(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<--
Adding the line:
hour_multiplier=3600
At the beggining of the definition of function schedule_check (line 401 in default.py) seems to do the magic
(2015-02-23, 15:07)pieman Wrote: Ok I think I am making progress with The Scheduler.
Can users confirm that Kodi needs to be restarted after each amendment to the Schedule. As a script I see why this would be the case but there are some scripts that just pick up the latest xml file and process it without the service needing a restart.
Is there a way to restart the service without restarting Kodi. Edit: I was thinking we could just disable the service and then enable it again but doing this crashes Kodi for me on Windows 8.1. Will keep testing and try other OS' too.
I can confirm that RunScript(script.whatever) does work in Gotham but AFAIK you will need to restart Kodi (or The Scheduler service) for it to take effect.
Any progress on using Custom scripts 3 to 10?