[PLUG] Home Automation mochad netcat ha-bridge

Bill Barry bill at billbarry.org
Sun Dec 6 01:58:05 UTC 2020


On Sat, Dec 5, 2020 at 3:22 PM Michael Barnes <barnmichael at gmail.com> wrote:
>
> Anybody have any experience with mochad or netcat?
> My project is using a Raspberry Pi Zero with an X-10 CM-19A transceiver to
> control my Christmas lights from Alexa.
>
> There are two components to this. First is to install mochad to pipe
> commands to the CM-19A. I got mochad installed and it seems to work. From
> the command line or script, I do
>
> echo "rf A2 on" | nc localhost 1099
>
Does
nc localhost 1099  << EOF
rf A2 on
EOF
work? Some netcats need more persuasion, but some way of feeding it an
EOF is needed.

Bill



More information about the PLUG mailing list