Kodi Community Forum
[RELEASE] - The Scheduler - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: [RELEASE] - The Scheduler (/showthread.php?tid=144378)

Pages: 1 2 3 4 5 6 7


RE: [RELEASE] - The Scheduler - Slipass - 2013-03-05

Hello,
i have an problem with the addon library watchdog 0.7.2, the actualy nightly xbmc, mysql 5.5 and windows 8.

XBMC crashes with Runtime Error! C:\Program Files (x86)\XBMC\XBMC.exe
This application has requested the runtime to terminate it in an unusualy way.
Please contact the applications support theam for more information.

The same failure comes, when i try to close xbmc.

When i disable one of this addon, xbmc works

This is the failure code:
13:49:57 T:3660 ERROR: XBPyThread:Confusedtop - script C:\Users\MediaCenter\AppData\Roaming\XBMC\addons\service.scheduler\default.py didn't stop in 5 seconds - let's kill it


RE: [RELEASE] - The Scheduler - Slipass - 2013-03-05

Ok,
it works with the skin widget addon 0.23


RE: [RELEASE] - The Scheduler - thebearnecessit - 2013-03-29

Any chance of allowing users to run a script every ten minutes or at least 20 minutes or so?

Would be very much appreciated.

my script runs a slideshow of pictures in a dropbox folder on my pc. i want the slideshow to restart every ten minutes so that new photo's are included.


RE: [RELEASE] - The Scheduler - giftie - 2013-03-29

(2013-03-29, 18:17)thebearnecessit Wrote: Any chance of allowing users to run a script every ten minutes or at least 20 minutes or so?

Would be very much appreciated.

my script runs a slideshow of pictures in a dropbox folder on my pc. i want the slideshow to restart every ten minutes so that new photo's are included.

The lowest time setting is 1 hour..


RE: [RELEASE] - The Scheduler - thebearnecessit - 2013-03-29

yeah, what i was trying to ask was if you could add an extra option of 10 minutes?


RE: [RELEASE] - The Scheduler - thebearnecessit - 2013-04-02

i have added a script but it doesn't seem to work.

can you see anything wrong?

i have setup a script to run daily.

RunScript(d:/stuff/backups/scripts/slideshow.py)

when i put the same thing into my favourites.xml he script runs fine and starts up a slideshow.

but when i set it up through the scheduler nothing happens in xbmc.

this appears in my log: in this example i was making setings changes at 13:02 and telling it to run at 13:04 but asw you can see the slideshow didnt start at 13:04

Code:
12:59:19 T:1164  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:47
12:59:19 T:3120  NOTICE: Thread Jobworker start, auto delete: true
13:03:02 T:3912  NOTICE: Previous line repeats 1 times.
13:03:02 T:3912  NOTICE: Thread Background Loader start, auto delete: false
13:03:02 T:3912 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://disabled/folder.jpg
13:03:02 T:3912 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://enabled/folder.jpg
13:03:02 T:3912 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://repos/folder.jpg
13:03:02 T:3912 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://install/folder.jpg
13:03:02 T:3912 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://search/folder.jpg
13:03:02 T:2088  NOTICE: Thread Jobworker start, auto delete: true
13:03:03 T:436  NOTICE: Thread Background Loader start, auto delete: false

my slideshow script is running everytime xbmc starts though! not sure why...

Code:
12:57:58 T:576  NOTICE: [service.scheduler] - Mode triggered: custom1
12:57:58 T:576  NOTICE: [service.scheduler] - Built-in Function: RunScript(d:/stuff/backups/scripts/slideshow.py)

any ideas?

thanks in advance Smile


Re: [RELEASE] - The Scheduler - giftie - 2013-04-02

To get changes in the settings to work right away, you need to disable the addon then enable the add-on.


RE: [RELEASE] - The Scheduler - RavenNL - 2013-04-12

Not sure what I'm doing wrong but I have this addon working fine for 2 other scheduled tasks. Now I'm trying to add a new task that I want my client to turn off or go to sleep at a specific time. But whatever option I try I don't see anything happening. I tried to the following commands.

- powerdown
- xbmc.shutdown()
- xbmc.suspend()

Also when checking the scheduler log I don't see anything happening. And yes before I applied the new rule i disabled the addon. Am I using the incorrect commands?


RE: [RELEASE] - The Scheduler - maschmaschmasch - 2013-04-21

Do any of you kind folks mind explaining to me how I can get this addon to open a particular iPlayer stream (lets say BBC news) every morning? I have the requisite addons installed; just need help working out the script commands with which I can start the iPlayer addon / navigate to a particular stream.

Muchas gracias!


RE: [RELEASE] - The Scheduler - gatehead - 2013-04-23

So I'm trying to build an alarm clock that wakes me up with the simpsons.
Tried PlayMedia("smb:\\<server>\<share>\TV_Simpsons.xsp") and it didn't work
Replace it with just "Mute" and i noticed it didnt work either.


wait an extra 15 minutes and then mute kicked it.
Scheduled time was 00:13 and it started at 00:26, even the log said this...

1st - Correct way to start a playlist
2nd - how can we confirm its firing at the right time, why would it be delayed?
3rd - could you add a 'test' button so we can see if the script syntax is ok.


RE: [RELEASE] - The Scheduler - giftie - 2013-04-23

(2013-04-23, 03:31)gatehead Wrote: So I'm trying to build an alarm clock that wakes me up with the simpsons.
Tried PlayMedia("smb:\\<server>\<share>\TV_Simpsons.xsp") and it didn't work
Replace it with just "Mute" and i noticed it didnt work either.


wait an extra 15 minutes and then mute kicked it.
Scheduled time was 00:13 and it started at 00:26, even the log said this...

1st - Correct way to start a playlist
2nd - how can we confirm its firing at the right time, why would it be delayed?
3rd - could you add a 'test' button so we can see if the script syntax is ok.

1. Don't use quotes around the path.
2. This script is not designed to be used as an alarm clock, it is not accurate enough. The script has a default delay of 15mins(check Extra Settings) This can be turned off and then the adjustment is available from 1min to 60min show up. With XBMC in Debug mode, the script logs every delay time interval. Also, you need to Disable then Re-enable the service script after making changes to the settings.
3. No place to add a test button... It runs in the background, no gui.

(2013-04-12, 20:27)RavenNL Wrote: Not sure what I'm doing wrong but I have this addon working fine for 2 other scheduled tasks. Now I'm trying to add a new task that I want my client to turn off or go to sleep at a specific time. But whatever option I try I don't see anything happening. I tried to the following commands.

- powerdown
- xbmc.shutdown()
- xbmc.suspend()

Also when checking the scheduler log I don't see anything happening. And yes before I applied the new rule i disabled the addon. Am I using the incorrect commands?

The proper command is Powerdown and Suspend(note the Capitalization on the first letter.) The Builtins need to be exactly the same as here http://wiki.xbmc.org/index.php?title=List_of_built-in_functions

(2013-04-21, 19:39)maschmaschmasch Wrote: Do any of you kind folks mind explaining to me how I can get this addon to open a particular iPlayer stream (lets say BBC news) every morning? I have the requisite addons installed; just need help working out the script commands with which I can start the iPlayer addon / navigate to a particular stream.

Muchas gracias!

Internet streams sometimes change, so a direct command may not be possible.


RE: [RELEASE] - The Scheduler - brotbuexe - 2013-05-22

I get this error on 12.2, Addon Version 0.08:

05:40:17 T:3684 DEBUG: [service.scheduler] - Setting Settings Load Interval: 86400 seconds
05:40:17 T:3684 DEBUG: [service.scheduler] - cdart_manager_running: False
05:40:17 T:3684 DEBUG: [service.scheduler] - cdart_manager_update: False
05:40:17 T:3684 DEBUG: [service.scheduler] - Video Library Scan in progress
05:40:17 T:3684 DEBUG: [service.scheduler] - Current Day: Wednesday
05:40:17 T:3684 DEBUG: [service.scheduler] - Current Time: 05:40
05:40:17 T:3684 NOTICE: [service.scheduler] - Video Library Scan in Progress, delaying 60 Minutes
05:40:17 T:3684 NOTICE: Previous line repeats 2 times.
05:40:17 T:3684 NOTICE: [service.scheduler] - Starting Custom 3 Hourly Schedule, every 2 Hours

05:40:17 T:3684 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: Scheduler instance has no attribute 'delay_video_library'
Traceback (most recent call last):
File "D:\XBMC\portable_data\addons\service.scheduler\default.py", line 872, in <module>
script.start()
File "D:\XBMC\portable_data\addons\service.scheduler\default.py", line 866, in start
self.schedule_check()
File "D:\XBMC\portable_data\addons\service.scheduler\default.py", line 803, in schedule_check
elif self.video_library_cycle == 2 and not self.video_library_triggered and not self.delay_video_library:
AttributeError: Scheduler instance has no attribute 'delay_video_library'
-->End of Python script error report<--

This is on xbmc start and I set to update library on start in xbmc.


RE: [RELEASE] - The Scheduler - JuggalotusHeat - 2013-06-03

the scheduler is working great for me. One problem is it causes XBMC to throw errors when trying to shutdown, reboot, halt etc.

http://pastebin.com/zfBUCA64

Maybe some incompatibility with skin-widgets or aeon nox in general?


RE: [RELEASE] - The Scheduler - brotbuexe - 2013-06-05

I setup 3 custom scripts, but only 2 are detected at startup:

403 20:12:36 T:7964 DEBUG: [service.scheduler] - Setting Settings Load Interval: 86400 seconds
407 20:12:36 T:7964 DEBUG: [service.scheduler] - cdart_manager_running: False
408 20:12:36 T:7964 DEBUG: [service.scheduler] - cdart_manager_update: False
409 20:12:36 T:7964 DEBUG: [service.scheduler] - Current Day: Wednesday
410 20:12:36 T:7964 DEBUG: [service.scheduler] - Current Time: 20:12
417 20:12:36 T:7964 NOTICE: [service.scheduler] - Starting Custom 1 Hourly Schedule, every 8 Hours
418 20:12:36 T:7964 NOTICE: [service.scheduler] - Starting Custom 2 Hourly Schedule, every 8 Hours
419 20:12:36 T:7964 DEBUG: [service.scheduler] - Adjusting Testing time
420 20:12:36 T:7964 DEBUG: [service.scheduler] - Current Value: 03:00
421 20:12:36 T:7964 DEBUG: [service.scheduler] - Current Interval: 15
422 20:12:36 T:7964 DEBUG: [service.scheduler] - Test time: 03:15
423 20:12:36 T:7964 DEBUG: [service.scheduler] - Adjusting Testing time
424 20:12:36 T:7964 DEBUG: [service.scheduler] - Current Value: 03:00
425 20:12:36 T:7964 DEBUG: [service.scheduler] - Current Interval: 16
426 20:12:36 T:7964 DEBUG: [service.scheduler] - Test time: 03:16
427 20:12:36 T:7964 NOTICE: [service.scheduler] - Starting music Library Hourly Schedule, every 1 Hours
428 20:12:36 T:7964 DEBUG: [service.scheduler] - Setting Sleep Interval: 900 seconds


<setting id="custom1_cycle" value="2" />
<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="3" />
<setting id="custom1_script" value="Runscript(script.artwork.downloader, mediatype=movie)" />
<setting id="custom1_time" value="00:00" />
<setting id="custom2" value="true" />
<setting id="custom2_cycle" value="2" />
<setting id="custom2_day" value="0" />
<setting id="custom2_disable_music" value="false" />
<setting id="custom2_disable_video" value="false" />
<setting id="custom2_interval" value="3" />
<setting id="custom2_script" value="RunScript(script.artwork.downloader, mediatype=tvshow)" />
<setting id="custom2_time" value="00:30" />
<setting id="custom3" value="true" />
<setting id="custom3_cycle" value="2" />
<setting id="custom3_day" value="0" />
<setting id="custom3_disable_music" value="false" />
<setting id="custom3_disable_video" value="false" />
<setting id="custom3_interval" value="3" />
<setting id="custom3_script" value="CleanLibrary(video)" />
<setting id="custom3_time" value="00:00" />

custom3 never runs.

btw, I fixed the other issue by removing the " and not self.delay_video_library" from the line in the script.


RE: [RELEASE] - The Scheduler - JuggalotusHeat - 2013-06-07

(2013-06-03, 23:40)JuggalotusHeat Wrote: the scheduler is working great for me. One problem is it causes XBMC to throw errors when trying to shutdown, reboot, halt etc.

http://pastebin.com/zfBUCA64

Maybe some incompatibility with skin-widgets or aeon nox in general?

All of my issues were because of Watchdog w/ polling pointed at SMB paths. As soon as I made everything local, all errors were gone and also cleared up some issues with other addons as well.