Dnpwwo wrote:@sincze, firstly thanks for putting together a really good post. Trouble shooting is so much easier when people take the time to post the detail of their issue.

tnx, I read your post regarding what to send
Just updated to v2.3867, sorry for extensive log. Hope we can find the problem.
I seem to have 2:
- After restart of PC Domoticz and Kodi machines don't seem to like each other that much.
- Plugin will not start.
I use the following script:
Code: Select all
commandArray = {}
commandArray['Studeerkamer']='Execute script.securitycam'
commandArray['Studeerkamer']='Execute weather.ozweather'
return commandArray
A maybe I was mistaken by the screenshots mentioned here in the wiki:
https://www.domoticz.com/wiki/Kodi
it say "Lounge" in the setup screenshot and in the end it says "Lounge Kodi"
The -9090 now says:
Code: Select all
2015-12-21 21:58:05.447 Kodi: (Studeerkamer) Connected to '*.*.*.*:9090'.
2015-12-21 21:58:05.450 Kodi: (Studeerkamer) Event: 'On'.
2015-12-21 21:58:05.579 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"System.GetProperties","params":{"properties":["canhibernate","cansuspend","canshutdown"]},"id":1007}'
2015-12-21 21:58:05.778 Kodi: (Keuken) Connected to '*.*.*.*:9090'.
2015-12-21 21:58:05.781 Kodi: (Keuken) Event: 'On'.
2015-12-21 21:58:06.579 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"JSONRPC.Ping","id":1001}'
....
....
2015-12-21 22:00:29.366 Kodi: Restarting I/O service thread.
Also the script is being executed however no action
Code: Select all
2015-12-21 22:01:00.382 EventSystem: Script event triggered: /home/linaro/domoticz/scripts/lua/script_time_kodi.lua
It seems I have a problem with Kodi when starting up (problem one seems to count for all my kodi machines running on windows 7 or 10.
If I do the following:
System -> Settings -> Services -> Web Server, I have username & password empty as described and port 9090.
If I disable the Allow remote control via HTTP en re-enable it and type 9090 again. The domoticz log changes instantly.
Code: Select all
2015-12-21 22:02:35.086 Kodi: (Studeerkamer) Event: 'Off'.
2015-12-21 22:02:35.215 Kodi: (Studeerkamer) Disonnected.
2015-12-21 22:02:35.266 Kodi: (Studeerkamer) Connected to '*.*.*.*:9090'.
2015-12-21 22:02:35.268 Kodi: (Studeerkamer) Event: 'On'.
2015-12-21 22:02:35.391 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"System.GetProperties","params":{"properties":["canhibernate","cansuspend","canshutdown"]},"id":1007}'
2015-12-21 22:02:35.399 Kodi: (Studeerkamer) Handling message: '{"id":1007,"jsonrpc":"2.0","result":{"canhibernate":true,"canshutdown":true,"cansuspend":true}}'.
2015-12-21 22:02:35.399 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"Player.GetActivePlayers","id":1005}'
2015-12-21 22:02:35.401 Kodi: (Studeerkamer) Handling message: '{"id":1005,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}'.
2015-12-21 22:02:35.401 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"Player.GetItem","id":1003,"params":{"playerid":1,"properties":["artist","album","year","channel","showtitle","season","episode","title"]}}'
2015-12-21 22:02:35.531 Kodi: (Studeerkamer) Handling message: '{"id":1003,"jsonrpc":"2.0","result":{"item":{"album":"","artist":[],"episode":9,"id":7893,"label":"The Septum Deviation","season":8,"showtitle":"The Big Bang Theory","title":"The Septum Deviation","type":"episode","year":0}}}'.
2015-12-21 22:02:35.531 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'
2015-12-21 22:02:35.534 Kodi: (Studeerkamer) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":53.261528015136719,"speed":1}}'.
2015-12-21 22:02:35.537 Kodi: (Studeerkamer) Event: 'Video - The Big Bang Theory [S8E9], The Septum Deviation'.
2015-12-21 22:02:36.392 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'
2015-12-21 22:02:36.393 Kodi: (Studeerkamer) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":53.342601776123047,"speed":1}}'.
2015-12-21 22:02:37.312 Kodi: (Studeerkamer) Handling message: '{"jsonrpc":"2.0","method":"Input.OnInputRequested","params":{"data":{"title":"Port","type":"number","value":"9090"},"sender":"xbmc"}}'.
2015-12-21 22:02:37.312 Kodi: (Studeerkamer) Message warning, unhandled method: 'Input.OnInputRequested'
..
..
2015-12-21 22:02:40.773 Kodi: (Studeerkamer) Handling message: '{"jsonrpc":"2.0","method":"Input.OnInputFinished","params":{"data":null,"sender":"xbmc"}}'.
2015-12-21 22:02:40.773 Kodi: (Studeerkamer) Message warning, unhandled method: 'Input.OnInputFinished'
..
..
2015-12-21 22:03:00.409 EventSystem: Script event triggered: /home/linaro/domoticz/scripts/lua/script_time_kodi.lua
2015-12-21 22:03:00.970 Kodi: (Studeerkamer) Sending data: '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"weather.ozweather"},"id":1010}'
2015-12-21 22:03:00.970 Kodi: (Studeerkamer) Sent command: 'Execute Addon weather.ozweather'.
2015-12-21 22:03:00.975 Kodi: (Studeerkamer) Handling message: '{"error":{"code":-32602,"message":"Invalid params."},"id":1010,"jsonrpc":"2.0"}'.
2015-12-21 22:03:00.975 Error: Kodi: (Studeerkamer) Code -32602 Text 'Invalid params.' ID '1010' Request '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"weather.ozweather"},"id":1010}'
That is maybe because I don't have ozweather installed, however it should also start the securitycam plugin, but it doesn't. (problem 2)
How can I determine the exact name of securitycam ?