2014-01-19, 21:53
This did not work, but it can wait.
I am more concerned with the reporting of what is playing for a 3D movie.
I have edited the new home_automation.py to include:
def broadcastUDP( self, data, port = 8278 ): # XBMC's former HTTP API output port is 8278
IPADDR = '255.255.255.255'
PORTNUM = port
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
if hasattr(socket,'SO_BROADCAST'):
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
s.connect((IPADDR, PORTNUM))
s.send(data)
s.close()
So for the triggers I have:
#3D Intro
elif trigger == "3D Intro" and ha_setting [ "ha_3d_intro" ]:
self.broadcastUDP( "<b>CE_Automate<li>3D_intro</b>" )
etc..
When playing a 3D movie, everything works except when I get to this trigger, it broadcasts the one for intermission and then no more are broadcasted, (countwon, audio format, movie). I tried turning off the only trigger once for multiple videos setting and got the same result.
I hope this makes since. I think the elif trigger or ha_setting is not reporting correctly
I am more concerned with the reporting of what is playing for a 3D movie.
I have edited the new home_automation.py to include:
def broadcastUDP( self, data, port = 8278 ): # XBMC's former HTTP API output port is 8278
IPADDR = '255.255.255.255'
PORTNUM = port
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
if hasattr(socket,'SO_BROADCAST'):
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
s.connect((IPADDR, PORTNUM))
s.send(data)
s.close()
So for the triggers I have:
#3D Intro
elif trigger == "3D Intro" and ha_setting [ "ha_3d_intro" ]:
self.broadcastUDP( "<b>CE_Automate<li>3D_intro</b>" )
etc..
When playing a 3D movie, everything works except when I get to this trigger, it broadcasts the one for intermission and then no more are broadcasted, (countwon, audio format, movie). I tried turning off the only trigger once for multiple videos setting and got the same result.
I hope this makes since. I think the elif trigger or ha_setting is not reporting correctly