:/usr/local/bin/cgateweb$ ln -s /usr/bin/nodejs /usr/bin/node :/usr/local/bin/cgateweb$ sudo npm install -g :/usr/local/bin/cgateweb$ sudo npm install mqtt –save Npm is already the newest version (3.5.2-0ubuntu4). :/usr/local/bin/cgateweb$ sudo apt-get install npm Nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1).Ġ to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. :/usr/local/bin/cgateweb$ sudo apt-get install nodejs Here is a rundown of installs into /usr/local/bin/cgateweb Maybe i should replace those updates with your originals scripts? (but this is with the jamescowan index.js and settings.js) I went a 3rd time through all the tutorials If the Cgate version is the problem is their chance you can update the Cgateweb/Cgate scripts for Cgate 2.11.1 or am i just doing something wrong. His Cgate updates also work for Cgate 2.11.1 with Cbus Toolkit 1.15.2īut MQTT messages are still not being sent from Cgateweb/Cgate With updated index.js and settings.js for Cgate 2.10.6 I can send MQTT messages from Homeassistant but i dont think Cgateweb can pass them to CgateĬan Cgateweb work with Cgate 2.11.1 or should i revert to Cgate 2.10.2 I have followed the instructions for installing MQTT, Cgateweb, Node and Javaīut it seems MQTT messages are not being sent from Cgateweb/Cgate I was able to open a Cbus project network using type CNI IP and port 10001 and scan/program all the Cbus modules and inputs via a USB-RS232 cable connected to a 5500PC I’ll post later about how I hooked C-Gate into openHAB MQTT.įor Cgate and Ser2sock to connect Windows 10 Cbus Toolkit 1.15.2 remotely to Cgate 2.11.1 on Ubuntu 16.04 server One more step! On the Pi, edit /usr/local/bin/cgate/config/C-gateConfig.txt and set the fault and project.start lines to your project’s name. Create a new project and add a CNI network using the Pi’s ip address and the port 10001. Now you can connect with your computer using File>Connect to Remote C-Gate… with the IP address of your Pi and whatever site name you want. Then add a line, using the ip address of your windows computer: Nano /usr/local/bin/cgate/config/access.txt You then need to enable access on the raspberry pi: Just grab it from here and install it on a windows computer. You can do all the setup through the cgate telnet interface, but I went with the easy route which is to use C-Bus Toolkit. Sudo nano /etc/systemd/system/rviceĮxecStart=/usr/bin/java =true -jar -noverify /usr/local/bin/cgate/cgate.jar Sudo chmod +x /usr/local/bin/cgate/cgate.jarĮdit: Again, if on Debian Jessie you’ll need this instead: PARAMS=”=true -jar -noverify $CGATEJAR”Įcho “Usage: /etc/init.d/cgate (start|stop|restart)”Ĭhange permissions on cgate folder and on the startup script: Test -x /usr/local/bin/cgate/cgate.jar || exit 0 # Description: This file should be used to construct scripts to be The cbus forums were a help again (particularly this thread) I also added a startup script for C-Gate. WorkingDirectory=/usr/local/bin/ser2sock/ Sudo nano /etc/systemd/system/rviceĮxecStart=/usr/local/bin/ser2sock/ser2sock -p 10001 -s /dev/ttyUSB0 -b 9600 usr/local/bin/ser2sock/ser2sock -d -p 10001 -s /dev/ttyUSB0 -b 9600Įcho “Usage: /etc/init.d/ser2sock ”Įdit: If you’re using Debian Jessie, you’ll need to do this instead of adding /etc/init.d/ser2sock: # Carry out specific functions when asked to by the system # If you want a command to always run, put it here # Description: A simple script to start / stop the serial port network interface at boot / shutdown. # Short-Description: Accept simultaneous tcp connections and fwd them to a serial port Here’s the steps to get it set up:Īnd here’s the startup script to go into ser2sock (again, from the cbus forums post by cheekymonkey here: The link to the ser2sock script was broken so I had to find it again. It uses a script to turn the serial connection into a socket connection, which makes the PCI module act like a CNI module. I had trouble with getting the serial connection going so I found some handy help here on the cbus forums. Here’s what I did to get C-Gate running.įIrst up, I grabbed C-Gate off the clipsal website and unzipped the files into /usr/local/bin/cgate. I already had a USB to RS-232 cable, and the C-Bus setup had a Serial PCI Module, so I could dive straight into it. I’ve got C-Bus lights at home and I wanted to tie them into openHAB so I decided to (surprise surprise) use a Raspberry Pi to bridge the gap.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |