Posts: 9
Joined: Aug 2014
Reputation:
0
Hi,
I'm currently moving from openelec 5 to 6.
My hardware is RPI2.
On openelec 6 RestartApp buildin command stay stuck .
In log I can found :
22:25:35 2513.399902 T:1699738688 WARNING: CPythonInvoker(5): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour wi
22:25:35 2513.418945 T:1699738688 NOTICE: $$$ xbmc.callbacks2 - Starting tester.py from cwd: /storage/.kodi/addons/service.xbmc.callbacks2
22:25:36 2514.286377 T:1699738688 NOTICE: $$$ [xbmc.callbacks2] - Executing command: [RestartApp] for event: onScreensaverActivated
22:25:36 2514.287109 T:1699738688 NOTICE: $$$ [xbmc.callbacks2] - Command for onScreensaverActivated resulted in ERROR: None
22:25:36 2514.313965 T:1968070656 NOTICE: Storing total System Uptime
22:25:36 2514.314697 T:1968070656 NOTICE: Saving settings
22:25:36 2514.341309 T:1968070656 NOTICE: stop all
22:25:36 2514.341553 T:1968070656 NOTICE: stop player
22:25:36 2514.341553 T:1968070656 NOTICE: ES: Stopping event server
22:25:36 2514.642822 T:1968070656 NOTICE: stopping upnp
22:25:36 2514.899414 T:1968070656 NOTICE: stopping zeroconf publishing
22:25:36 2514.905273 T:1968070656 NOTICE: Webserver: Stopping...
22:25:36 2514.905762 T:1968070656 NOTICE: WebServer: Stopped the webserver
22:25:36 2514.906006 T:1968070656 NOTICE: Webserver: Stopped...
22:25:37 2515.297607 T:1624241216 NOTICE: ES: UDP Event server stopped
22:25:37 2515.298340 T:1968070656 NOTICE: stop dvd detect media
22:25:37 2515.932129 T:1968070656 NOTICE: stop sap announcement listener
22:25:37 2515.932129 T:1968070656 NOTICE: clean cached files!
22:25:37 2515.932373 T:1968070656 NOTICE: unload skin
22:25:37 2516.051270 T:1806136384 NOTICE: ## OpenELEC Addon ## STOP SERVICE DONE !
22:25:38 2516.177734 T:1682961472 NOTICE: $$$ [xbmc.callbacks2] - Stopped xbmc.callbacks2
22:25:43 2521.209229 T:1968070656 ERROR: CPythonInvoker(5, /storage/.kodi/addons/service.xbmc.callbacks2/tester.py): script didn't stop in 5 seconds - let's kill it
how to investigate/fix this ?
I've tried to run in a terminal : kodi-send --action="XBMC.RestartApp"; result is OK.
Posts: 507
Joined: Nov 2013
Reputation:
28
It's hard to say bc that looks like an ok termination log.
The 'let's kill it' actually occurs for many addons and in this instance it is from the testing screen, so I am not sure if that is the issue.
Can you verify that kodi remains running in memory and does not restart after using this trigger from an actual screensaver event, not from the testing screen?
Posts: 9
Joined: Aug 2014
Reputation:
0
Hi,
Yes, same issue if using screensaver event
Posts: 204
Joined: Oct 2011
Reputation:
7
Any way to have an option for "Every Other Play Start" event? I basically want something to fire every other time something gets played.
Thanks!
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
Create a script that flips a variable when it runs, and then only continues if the variable is on.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
Create a script that flips a variable when it runs, and then only continues if the variable is on.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 204
Joined: Oct 2011
Reputation:
7
Genius - that works great, thanks!
Posts: 11
Joined: Oct 2015
Reputation:
2
JANGER
Junior Member
Posts: 11
Great news! Thank you.
I use your scripts to send http messages which control the lights in my cinema. Depending on the content and event type, I change color brightness or the speed of dimming. (When the movie starts all lights are dimming smoothly for few seconds)
One more dream:
I would like to play THX trailer video prior to each movie starts.
I hate Cinema Experience (it does not work with all skins, and not start automatically).
I hate CinemaVision even more, it has too many feature.
We need just the one: play selected video prior to the movie start event.
Have you any idea?