Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mport #7

Open
west-pool opened this issue May 31, 2018 · 6 comments
Open

Mport #7

west-pool opened this issue May 31, 2018 · 6 comments

Comments

@west-pool
Copy link

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

@magcode
Copy link
Owner

magcode commented May 31, 2018

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 -h -v

from the command line and see what happens

@west-pool
Copy link
Author

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'

@magcode
Copy link
Owner

magcode commented May 31, 2018

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

@west-pool
Copy link
Author

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

Thank You

@Simonk007
Copy link

@ws

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

Thank You

Did you manage to find a solution

@alexdan-77
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants