How to send TCP/IP message when the movie starts playing [ SOLVED ]
#1
I want to send ordinary TCP/IP message to known server, for example, when the selected movie starts playing.

cons:
Cinema Experiences add-on does not work smoothly. At least in RPi hardware. It works generally, but many (accidental) times it missed the movie started, I dont' know from which issue.

cons:
Home Automation add-in does not work with TCP/IP if I understand.
Any other add-on?


The message should be something like: xxxx.com?ID=START or IP xxx.xxx.xxx.xxx?ID=START
I use such message to start my cinema light dimmer remotely. It works well when I send this message from any PC or Android.
The dimmer is based on WIFI-enabled hardware with static IP.

1. How to listen for events of Kodi? starting movie/video/mp3, pause, change volume, etc....
2. How to send TCP/IP message? with any editable string or parameters


This could be done with already available add-ons, but I don't know, I missed, which one is working at all.
Reply
#2
This should be possible with a service add-on. You may want to look at this thread for monitoring Kodi events. You will also want to look at the Python documentation for urllib2 or the documentation for Requests to send HTTP requests to your device(s).
Reply
#3
This can be easily done with a little service addon in phyton. Just watch at the event OnPlay and send the command.
Just a little phython.
Reply
#4
http://forum.kodi.tv/showthread.php?tid=151011
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.)
Reply
#5
It works fantastic!
This is what I need! Every day. Every watched movie.

Pure. Simple.

(2015-10-07, 04:21)nickr Wrote: http://forum.kodi.tv/showthread.php?tid=151011
Reply

Logout Mark Read Team Forum Stats Members Help
How to send TCP/IP message when the movie starts playing [ SOLVED ]0