import socket
import struct
def sendWakewOnLan(MAC,ipN):
mac = MAC.replace(":","")
sendData = bytes.fromhex("FF" * 6 + mac * 16) # <---- changed from py2
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.sendto(sendData, (ipN, 9))
ipBC= "192.168.1.255"
mac = "12:34:56:78:AB:AB"
sendWakewOnLan(mac, ipBC)
import socket
def sendWakewOnLan(MAC,ipN):
data = ''.join(['FF' * 6, MAC.replace(':', '') * 16])
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.sendto(data.decode("hex"), (ipN, 9))
ipBC= "192.168.1.255"
mac = "12:34:56:78:AB:CD"
sendWakewOnLan(mac, ipBC)
Action Group Wake On LAN - 2nd Attempt
Script Error action group "Wake On LAN - 2nd Attempt" embedded script error:
Script Error 'str' object has no attribute 'decode'
Script Error Exception Traceback (most recent call shown last):
embedded script, line 11, at top level
embedded script, line 7, in sendWakewOnLan
AttributeError: 'str' object has no attribute 'decode'
Apr 21, 2023 at 6:46:57 AM
Stopping plugin PowerView (pid 853)
Stopped plugin PowerView
Upgrading plugin PowerView to newer version 2.0.0 (previous version moved to trash)
Loading plugin "PowerView 2.0.0" using API v3.0
Starting plugin "PowerView 2.0.0" (pid 41001)
Started plugin "PowerView 2.0.0"
PowerView Error exception in device_start_comm(Active Double French Door): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Back Bedroom): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Double Transom): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Fixed Double French Door): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Front Bedroom): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Kevins Office): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Left Ensuite): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Lower Left): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Lower Right): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Right Ensuite): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Sandra’s Office): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Single French Door): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Single Transom): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Top Left): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Top Right): PowerView() takes no arguments
PowerView Error exception in device_start_comm(Upper Center): PowerView() takes no arguments
curl -X POST -H "Authorization: Bearer YOUR-API-KEY" -d '{"message":"indigo.device.turnOn","objectId":123456789}' http://127.0.0.1:8176/v2/api/command
curl -X POST -H "Authorization: Bearer YOUR-API-KEY" -d '{"message":"indigo.device.turnOff","objectId":123456789}' http://127.0.0.1:8176/v2/api/command
Error: listen EADDRINUSE: address already in use :::8581
[6/5/2021, 4:05:59 PM] [Homebridge UI] Another process or service on this host is using port 8581.
[6/5/2021, 4:05:59 PM] [Homebridge UI] Please stop the other service or change the port you have assigned to homebridge-config-ui-x.
[6/5/2021, 4:05:59 PM] [Homebridge UI] Ending process now.
pip install pyOSC
-bash: pip: command not found
vtmikel wrote:Yes, about three seconds for me. With the config that HomeKit Bridge used, I had a slower experience, and sometimes the video feeds would cut out after a bit. Latest HomeBridge + ffmpeg I do not see that problem. I'm also running HomeBridge on a docker container.
What do you mean about the Security Spy plugin? The SS iOS app for me takes several seconds to connect to the server. Once connected, bringing up a feed is near instant.
durosity wrote:siclark wrote:There's even a plugin for my tumble drier [emoji23]
Which tumble dryer do you have?
yassi wrote:So, is it possible to have for instance Homebridge.io on a Raspberry Pi running and also still have the Indigo plugin on the Mac running?
Will it act as a second bridge and will be visible this way in Homekit?
Any drawbacks/interferences?
Londonmark wrote:And probably the most useful of them all is the Harmony plugin that presents my remotes as if they were HomeKit TVs.. works bloody marvellously!
Which one are you using? I'm trying the nicoduj one but can only get volume and mute to show up in the Home App. Homebridge says I have a television accessory, but I can't see it anywhere in the Home App.
siclark wrote:There's even a plugin for my tumble drier [emoji23]
And probably the most useful of them all is the Harmony plugin that presents my remotes as if they were HomeKit TVs.. works bloody marvellously!
yassi wrote:So, is it possible to have for instance Homebridge.io on a Raspberry Pi running and also still have the Indigo plugin on the Mac running?
Will it act as a second bridge and will be visible this way in Homekit?
Any drawbacks/interferences?
{
"name": "Camera FFmpeg",
"porthttp": 8590,
"cameras": [
{
"name": "Outside Camera - Front",
"motion": true,
"motionTimeout": 30,
"unbridge": true,
"videoConfig": {
"source": "-rtsp_transport tcp -i rtsp://<LOGIN>:<PASSWORD>@<IP>:<PORT>/++stream?cameraNum=2&codec=h264",
"stillImageSource": "-i http://<LOGIN>:<PASSWORD>@<IP>:<PORT>/++image?cameraNum=2&width=2560&height=1440",
"maxWidth": 2560,
"maxHeight": 1440,
"audio": true
}
}
}
],
"platform": "Camera-ffmpeg"
}
curl -X GET -i 'http://<IP to HomeBridge>:8590/motion?Outside%20Camera%20-%20Front'
import OSC
def send(address, value=0):
c = OSC.OSCClient()
c.connect(('192.168.5.103', 7700))
oscmsg = OSC.OSCMessage()
oscmsg.setAddress(address)
oscmsg.append(value)
c.send(oscmsg)
send('indigo01',1.0)
send('indigo01',0.0
Nov 14, 2019 at 4:18:40 PM
Action Group QQQQQlight Test
Script Error Qlighrt222.py: invalid syntax
Script Error around line 4 - " c = OSC.OSCClient()"
Nov 14, 2019 at 4:32:24 PM
Action Group QQQQQlight Test
Script Error Qlighrt222.py: No module named OSC
Script Error Exception Traceback (most recent call shown last):
Qlighrt222.py, line 1, at top level
ImportError: No module named OSC
pip: command not found
sudo pip install python-osc
3. Install pyOSC on the indigo machine
Code: Select all
pip install pyOSC
pip install python-osc
import OSC
def send(address, value=0):
c = OSC.OSCClient()
c.connect(('127.0.0.1', 7700))
oscmsg = OSC.OSCMessage()
oscmsg.setAddress(address)
oscmsg.append(value)
c.send(oscmsg)
send('indigo01',1.0)
send('indigo01',0.0)