Posts: 451
Joined: Sep 2012
Reputation:
4
Ok,
it works with the skin widget addon 0.23
Posts: 830
Joined: Jan 2012
Reputation:
5
2013-03-29, 18:17
(This post was last modified: 2013-03-29, 19:11 by thebearnecessit.)
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.
Posts: 830
Joined: Jan 2012
Reputation:
5
2013-03-29, 19:52
(This post was last modified: 2013-03-29, 19:53 by thebearnecessit.)
yeah, what i was trying to ask was if you could add an extra option of 10 minutes?
Posts: 2,368
Joined: Mar 2010
Reputation:
60
giftie
Skilled Python Coder
Posts: 2,368
To get changes in the settings to work right away, you need to disable the addon then enable the add-on.
Posts: 359
Joined: Jul 2011
Reputation:
2
2013-04-12, 20:27
(This post was last modified: 2013-04-12, 20:35 by RavenNL.)
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?
Posts: 1
Joined: Apr 2013
Reputation:
0
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!
Posts: 5
Joined: Apr 2012
Reputation:
0
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.
Posts: 70
Joined: May 2010
Reputation:
0
2013-05-22, 05:44
(This post was last modified: 2013-05-22, 05:44 by brotbuexe.)
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.
Posts: 70
Joined: May 2010
Reputation:
0
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.