The last hurdle might be the realization that having an Alexa in the
first place was a mistake ;-)

On Sat, Dec 5, 2020 at 6:39 PM Michael Barnes <[email protected]> wrote:
>
> On Sat, Dec 5, 2020 at 5:58 PM Bill Barry <[email protected]> wrote:
>
> > On Sat, Dec 5, 2020 at 3:22 PM Michael Barnes <[email protected]>
> > 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
> >
>
> Apparently, the EOF thing was an issue.  Adding the -q flag fixed it.
>
> echo "rf A2 on" | nc -q 0 localhost 1099
>
> An entry in /etc/rc.local seems to have fixed the startup problem.
>
> Got ha-bridge and mochad talking. Now the last hurdle is getting Alexa to
> talk to ha-bridge.
>
> Michael
> _______________________________________________
> PLUG: https://pdxlinux.org
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to