Mochad compatibility with Raspbian Stretch

Others (MiLight, Hue, Toon etc...)
Post Reply
amercat37
Posts: 16
Joined: Wednesday 19 November 2014 20:31
Target OS: Raspberry Pi
Domoticz version:
Contact:

Mochad compatibility with Raspbian Stretch

Post by amercat37 » Thursday 04 January 2018 17:35

I've been working on upgrading from a Pi B+ with Weezy and Domoticz 2.xx to a Pi 3 with Stretch and the latest Domoticz.

It seems everything is working great except for mochad. I can build it just fine, but when I echo any commands to nc 1099 it just hangs forever.

Has anyone else tried mochad with Stretch? I could just go to Jessie instead if I had to. I would just like to upgrade to the latest when possible.

I've tried mochad 0.1.16 and 17.

amercat37
Posts: 16
Joined: Wednesday 19 November 2014 20:31
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Mochad compatibility with Raspbian Stretch

Post by amercat37 » Tuesday 30 January 2018 17:36

So I've given up on Mochad, and X10. Time to upgrade to something more modern.

Hansbit
Posts: 48
Joined: Monday 17 February 2014 16:10
Target OS: Raspberry Pi
Domoticz version:
Contact:

[SOLVED] Re: Mochad compatibility with Raspbian Stretch

Post by Hansbit » Thursday 10 May 2018 16:31

SOLVED!
Had the same problem with Stretch and Mochad. Found a useful workaround. (after hours of searching :x )

Just add a timeout (-w1) of 1 second to your nc command:

Code: Select all

echo "st" | nc -w1 localhost 1099
This works great for me. I've updated my domoticz_main script.
Even more secure, now mochad can never cause the proces to hang.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests