mpower-tools icon indicating copy to clipboard operation
mpower-tools copied to clipboard

Mport

Open west-pool opened this issue 6 years ago • 6 comments

Hi,

are the Thermostat script working on mPort ? With the mFi THS one or any other module connected to the mPort ? I try use and mosquito_sub don't detect any comming from mPort, mPower outlets working fine, just all my mPorts not working in mqtt. Any solution to this ?

Regards,

Luis

west-pool avatar May 31 '18 08:05 west-pool

Sorry. I don't own a mPort. No idea what is inside and if mqtt works on this thing. Does it have a /var/log/messages? Anything inside from the thermostat script?

You can also try to just run the

mosquitto_sub -I <clientID> -h -v

from the command line and see what happens

magcode avatar May 31 '18 08:05 magcode

Hi,

the status of mqtt v2 running on mPort are:

MF.v2.1.12# ./mqrun.sh mqtt: killing old instances killall: mqsub.sh: no process killed mqtt: Using temp file /tmp/mqtmp.XXXXwKkfps mqtt: starting pub and sub scripts MF.v2.1.12# mqtt: MQTT listening... mqtt: Found 0 ports. mqtt: Publishing to 192.168.0.1 with topic homie/mPortAcessos

but can't find any sensors connected.

When I try run mosquito_sub in mPort I get this.

MF.v2.1.12# ./mosquitto_sub -I -h -v ./mosquitto_sub: can't load library 'libmosquitto.so.1'

west-pool avatar May 31 '18 08:05 west-pool

mqtt v2 does not find ports because it is designed to work with mpower. Feel free to change it and support mport "sensors"

When I try run mosquito_sub in mPort I get this.

set ld lib path before:

export LD_LIBRARY_PATH=/var/etc/persistent/mqtt

of course you need also provide the right params for mosquitto_sub. see manual of mosquitto_sub

magcode avatar May 31 '18 08:05 magcode

ok, let me try then. I will update you with more info asap.

Thank You

west-pool avatar May 31 '18 09:05 west-pool

@ws

ok, let me try then. I will update you with more info asap.

Thank You

Did you manage to find a solution

Simonk007 avatar Dec 17 '20 22:12 Simonk007

useless thing...doesnt work propertly. mFiMSC doesnt know.

alexdan-77 avatar Jan 22 '21 19:01 alexdan-77