Broadlink plugin

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!
Post Reply
Terence
Posts: 5
Joined: Monday 01 June 2015 22:50
Target OS: Raspberry Pi
Domoticz version:
Contact:

Broadlink plugin

Post by Terence » Wednesday 25 April 2018 0:26

Hi

I have managed to get it working, but when I run ./plugin_http.sh

I get the following in the no hap.out file

Traceback (most recent call last):
File "/home/terence/domoticz/plugins/BroadlinkRM2/plugin_http.py", line 319, in <module>
os.chdir(PATH)
FileNotFoundError: [Errno 2] No such file or directory: 'c:/BroadlinkRM2'
Traceback (most recent call last):
File "/home/terence/domoticz/plugins/BroadlinkRM2/plugin_http.py", line 319, in <module>
os.chdir(PATH)
FileNotFoundError: [Errno 2] No such file or directory: 'c:/BroadlinkRM2'
Traceback (most recent call last):
File "/home/terence/domoticz/plugins/BroadlinkRM2/plugin_http.py", line 319, in <module>
os.chdir(PATH)
FileNotFoundError: [Errno 2] No such file or directory: 'c:/BroadlinkRM2'
Traceback (most recent call last):
File "/home/terence/domoticz/plugins/BroadlinkRM2/plugin_http.py", line 319, in <module>
os.chdir(PATH)
FileNotFoundError: [Errno 2] No such file or directory: 'c:/BroadlinkRM2'

Can anybody help.

It looks like the C:/Broadlink is wrong I am on a Debian system, but do not know where to change that location

CaesarPL
Posts: 130
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Broadlink plugin

Post by CaesarPL » Wednesday 25 April 2018 14:37

Put any folder name if you want to store it under your home directory
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge

cardy
Posts: 3
Joined: Tuesday 15 May 2018 11:47
Target OS: Linux
Domoticz version:
Contact:

Re: Broadlink plugin

Post by cardy » Tuesday 15 May 2018 13:30

Looking at the version of the script I have the http_plugin.py script accepts 3 parameters.

Hostname port-number path

Code: Select all

if len(sys.argv) > 3:
    HOST_NAME = sys.argv[1]
    PORT_NUMBER = int(sys.argv[2])
    PATH = sys.argv[3]
else:
    PATH="c:/BroadlinkRM2"
    HOST_NAME = ""
    PORT_NUMBER = 9000
If these are not specified it defaults to one values after the if statement above which is where your "c:\BroadlinkRM2" is coming from. I am guessing that when the script is called by the plugin all 3 values are passed to it.

If you wish to specify just a new directory you could use something like.

Code: Select all

./http_plugin.py '' 9000 '/home/pi/broadlinkrm2'
to run the script.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest