2016-02-18, 21:14
(2016-02-18, 19:48)bigbadrabbit Wrote: I cannot get any of my scripts to execute. They work perfectly with previous versions of your plugin from the old thread.
Here's one of my scripts (Player_START.sh) that should get executed when the player starts:
Code:#!/bin/bash
/usr/bin/osascript <<-EOF
tell application "Hue Server" to run command "Wohnzimmer Off"
delay 0.2
do shell script "curl http://localhost:5005/Wohnzimmer/pause"
delay 0.2
do shell script "curl http://192.168.0.20/goform/formiPhoneAppDirect.xml?SDHDMI"
do shell script "curl http://192.168.0.20/goform/formiPhoneAppDirect.xml?MSDOLBY%20DIGITAL"
EOF
And here're the errors:
Code:18:46:39 T:123145304526848 ERROR: /Users/macmini_home/Library/Application Support/Kodi/addons/script.service.kodi.callbacks-nonrepo/resources/lib/watchdog/observers/__init__.py:83: UserWarning: Failed to import fsevents and kqueue. Fall back to polling.
warnings.warn("Failed to import fsevents and kqueue. Fall back to polling.")
18:46:39 T:123145304526848 ERROR: Previous line repeats 1 times.
18:46:39 T:123145304526848 NOTICE: $$$ [kodi.callbacks] - Running Test for Event: E1
18:46:39 T:123145304526848 NOTICE: $$$ [kodi.callbacks] - Settings for test read
18:46:39 T:123145304526848 NOTICE: $$$ [kodi.callbacks] - Creating subscriber for test
18:46:39 T:123145304526848 NOTICE: $$$ [kodi.callbacks] - Test subscriber created successfully
18:46:39 T:123145304526848 NOTICE: $$$ [kodi.callbacks] - Running test
18:46:39 T:123145304526848 WARNING: CSkinInfo: failed to load skin settings
18:46:39 T:123145304526848 ERROR: /Users/macmini_home/Library/Application Support/Kodi/addons/script.service.kodi.callbacks-nonrepo/resources/lib/dialogtb.py:47: DeprecationWarning: object.__init__() takes no parameters
super(MessageDialog, self).__init__(*args, **kwargs)
18:46:40 T:123145308819456 WARNING: DARWINOSX: underflow (0 vs 4096 bytes)
As I have mentioned before, please post a full log to pastebin and post the link here.
Nothing in the partial above explains why your script failed.
There are other things I need to look at to help debug.
And the forum moderators have many times asked not to post logs in the forum.
Thanks for your help with complying with this.
EDIT:
The above two are warnings and should not be responsible for your script failing. The first warning is expected. In order to use fsevents on OSX you would need to install the full version of watchdog in OSX and then build the binary which requires that you have XCode installed.
The second is a peculiarity on OSX when using a super call with an xbmc module. Although xbmcgui.MessageDialog does indeed take arguments it must not communicate that properly to the python flavor distributed with Kodi.
The output of the textbox that opens after the 'Test' would be important. I would also need to know if you are using shell or not and also the full path name to your script.