I bumped it to mochad-0.1.21 (I've heard rumblings of version 0.1.19 floating around somewhere). I've commented every change I made, and updated the change log. And now includes "mochad.h". Compiles great and works without issues (that I can find). I'm not using dimming, just X10 off/on. Here it is if anyone wants to give it a go.
Thank you. Your instructions were very helpful. I am a novice and was able to get it up an running. Is there a way to set auto on and off functions for lights?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just wanted to report that this still works and compiles fine using your instructions with the latest Raspberry Pi OS version, Raspbian GNU/Linux 11 (bullseye), as of July 20, 2023. Thank you Steve for your work!
Last edit: Dustin Bolton 2023-07-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On Thu, Jul 20, 2023 at 2:38 PM, Dustin Boltondustout@users.sourceforge.net wrote:
Just wanted to report that this still works and compiles fine with the latest Raspberry Pi OS version, Raspbian GNU/Linux 11 (bullseye), as of July 20, 2023. Thank you Steve for your work!
Just saw your message. Great news Peter! Good start to the new year 😁
Sent from Yahoo Mail on Android
On Tue, Jan 3, 2023 at 7:42 AM, Peterpeter-grigalis@users.sourceforge.net wrote:
I redid the upgrade and install 3 times and eventually the libusb install worked. So I no have working mochad!!
Hi Sean, glad you're able to use my efforts! Not allot of folks out there are still trying to use X10 still, but I still love it.
To answer your question: YES! I can go through my setup for you, don't know if it's going to be the right place to do it. But here goes....
I use Alexa for all my timing and routines. Things like "Alexa, turn on the living room fan", which is using X10 relay wall switch. I also have a ton of "smart" light bulbes and wall "warts" (on/off). All my porch lights, living room lights, pool lights (X10) are running on Alexa.
The way (the I do....could be other ways) to use X10/mochad is with a online cloud service called "TriggerCMD" (subscription, but VERY reasonable). An agent is installed on you computer (in this case, the Rasberry PI"}. It is installed as an Amazon 'Skill', so "Alexa" sends a voice command, or a pre-setup routine, to the TriggerCMD website, which then sends the appropriate commands directly to my Rasberry PI. Recently moved all that from my Windows desktop to the Rasberry PI, (which is why I worked on and 'fixed' mochad).
I'll give you more info if you haven't been scared off by all this. With help, it's not too daunting!
Cheers,
Steve
Last edit: Steve Porter 2022-02-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for updating Mochad to v21. I decided to begin the process of moving mochad from my legacy RPI 2B which has been running reliably for 5 years with mochad 1.0-17. Tried compiling it on my new RPI 5 which failed due to the errors you fixed.
I use a custom shell script to monitor the output of mochad, parse it's results, and trigger a remote (WebThing) action when X10 button presses are obtained. It's worked flawlessly for many years and mochad continues to work. I've also use Home Assistant's mochad addon a bit which also natively supports Mochad to some degree.
Just a quick thanks....
Eric L. Edberg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for updating Mochad to v21. I decided to begin the process of moving mochad from my legacy RPI 2B which has been running reliably for 5 years with mochad 1.0-17. Tried compiling it on my new RPI 5 which failed due to the errors you fixed.
I use a custom shell script to monitor the output of mochad, parse it's results, and trigger a remote (WebThing) action when X10 button presses are obtained. It's worked flawlessly for many years and mochad continues to work. I've also use Home Assistant's mochad addon a bit which also natively supports Mochad to some degree.
Hey everyone, I tried to compile mochad-0.1.17 on current Rasberry PI 4. Does not compile due to tons of duplicate declaration errors. So....
I've fixed all the critical errors and also added J. Jones' int fix: https://sourceforge.net/p/mochad/discussion/1320002/thread/582c852aa0/
I bumped it to mochad-0.1.21 (I've heard rumblings of version 0.1.19 floating around somewhere). I've commented every change I made, and updated the change log. And now includes "mochad.h". Compiles great and works without issues (that I can find). I'm not using dimming, just X10 off/on. Here it is if anyone wants to give it a go.
Steve
Don't forget this:
Before you connect the CM15Pro with your Rasp. Enter the following commands:
sudo apt-get install update
sudo apt-get upgrade
sudo apt-get install libusb-1.0-0-dev
Install mochad:
(assuming mochad-0.1.21.tgz is in /home/pi/ )
tar xf /home/pi/mochad-0.1.21.tgz
cd /home/pi/mochad-0.1.21
./configure
make
sudo make install
Connect the CM15Pro with your Rasp with the USB interface.
Command line to test:
$ echo "pl a1 on" | nc -w 1 localhost 1099
Last edit: Steve Porter 2022-02-05
Thank you. Your instructions were very helpful. I am a novice and was able to get it up an running. Is there a way to set auto on and off functions for lights?
Just wanted to report that this still works and compiles fine using your instructions with the latest Raspberry Pi OS version, Raspbian GNU/Linux 11 (bullseye), as of July 20, 2023. Thank you Steve for your work!
Last edit: Dustin Bolton 2023-07-20
Thanks for the info and feedback Dustin!
Steve
Sent from Yahoo Mail on Android
On Thu, Jul 20, 2023 at 2:38 PM, Dustin Boltondustout@users.sourceforge.net wrote:
Just wanted to report that this still works and compiles fine with the latest Raspberry Pi OS version, Raspbian GNU/Linux 11 (bullseye), as of July 20, 2023. Thank you Steve for your work!
Rasberry PI compile errors
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mochad/discussion/1320002/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Last edit: Chris Bergerson 2023-09-30
Hi Steve,
Problems with usb...
when i try to make I get the following message. Any suggestions?
mochad.c:75:31: fatal error: libusb-1.0/libusb.h: No such file or directory
include <libusb-1.0 libusb.h=""></libusb-1.0>
Can you help?
TIA Peter
Last edit: Peter 2023-01-03
I redid the upgrade and install 3 times and eventually the libusb install worked. So I no have working mochad!!
Thanks Steve!!
Just saw your message. Great news Peter! Good start to the new year 😁
Sent from Yahoo Mail on Android
On Tue, Jan 3, 2023 at 7:42 AM, Peterpeter-grigalis@users.sourceforge.net wrote:
I redid the upgrade and install 3 times and eventually the libusb install worked. So I no have working mochad!!
Thanks Steve!!
Rasberry PI compile errors
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mochad/discussion/1320002/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Hi Sean, glad you're able to use my efforts! Not allot of folks out there are still trying to use X10 still, but I still love it.
To answer your question: YES! I can go through my setup for you, don't know if it's going to be the right place to do it. But here goes....
I use Alexa for all my timing and routines. Things like "Alexa, turn on the living room fan", which is using X10 relay wall switch. I also have a ton of "smart" light bulbes and wall "warts" (on/off). All my porch lights, living room lights, pool lights (X10) are running on Alexa.
The way (the I do....could be other ways) to use X10/mochad is with a online cloud service called "TriggerCMD" (subscription, but VERY reasonable). An agent is installed on you computer (in this case, the Rasberry PI"}. It is installed as an Amazon 'Skill', so "Alexa" sends a voice command, or a pre-setup routine, to the TriggerCMD website, which then sends the appropriate commands directly to my Rasberry PI. Recently moved all that from my Windows desktop to the Rasberry PI, (which is why I worked on and 'fixed' mochad).
I'll give you more info if you haven't been scared off by all this. With help, it's not too daunting!
Cheers,
Steve
Last edit: Steve Porter 2022-02-09
Check here for more info:
www.triggercmd.com/forum/topic/1927/command-format-on-raspi/25
Got it all working tonight. YAY! Thanks again guys. Just to get it all in one place, here's what works for me:
/root/.TRIGGERcmdData/commands.json
{"trigger":"Living Room Fan","command":"/home/pi/scripts/X10.sh i6","ground":"background","voice":"Living Room Fan","allowParams": "true"},
(duplicated for each X10 house unit, i.e. i6, i5, etc.)
Script:
"/home/pi/scripts/X10.sh i6"
echo "pl $1 $2" | nc -w 1 localhost 1099
echo "sent powerline command $1 $2 to mochad"
Even with you guys' help this was a bit of a pain. This really should all be put into a simple install guide. But, it works great!
Cheers!
1
Steve PorterSteve Porter 10 days ago
@steve-porter Oops,
"home/pi/scripts/X10.sh"
Steve Porter:
Thanks for updating Mochad to v21. I decided to begin the process of moving mochad from my legacy RPI 2B which has been running reliably for 5 years with mochad 1.0-17. Tried compiling it on my new RPI 5 which failed due to the errors you fixed.
I use a custom shell script to monitor the output of mochad, parse it's results, and trigger a remote (WebThing) action when X10 button presses are obtained. It's worked flawlessly for many years and mochad continues to work. I've also use Home Assistant's mochad addon a bit which also natively supports Mochad to some degree.
Just a quick thanks....
Eric L. Edberg
Hi Eric, glad it's working!
Yahoo Mail: Search, Organize, Conquer
On Sat, Jul 27, 2024 at 2:05 PM, Eric L. Edbergericledberg@users.sourceforge.net wrote:
Steve Porter:
Thanks for updating Mochad to v21. I decided to begin the process of moving mochad from my legacy RPI 2B which has been running reliably for 5 years with mochad 1.0-17. Tried compiling it on my new RPI 5 which failed due to the errors you fixed.
I use a custom shell script to monitor the output of mochad, parse it's results, and trigger a remote (WebThing) action when X10 button presses are obtained. It's worked flawlessly for many years and mochad continues to work. I've also use Home Assistant's mochad addon a bit which also natively supports Mochad to some degree.
Just a quick thanks....
Eric L. Edberg
Rasberry PI compile errors
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mochad/discussion/1320002/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/