Flow to turn SerialGateway into MQTT-SerialGateway
-
Oh, it's that error :p
Delete the sheet, and re-copy. It will show up then. That, btw, is an existing bug in NR.
-
@barduino . How peculiar. I think it might be the way RasPi chose to include Node-red. It appears that you might need to do my above npm command with sudo... You shouldn't need to hand-create node_modules or node-red-contrib-mysensors. npm should have done that all for you, along with any potential dependencies. Adafruit's help goes into Pi-weirdness: https://learn.adafruit.com/raspberry-pi-hosting-node-red/installing-further-plugins
But I hope the mysensors removal works well. Like I said, haven't tested it yet :P
Good luck!
Cranky -
@barduino . How peculiar. I think it might be the way RasPi chose to include Node-red. It appears that you might need to do my above npm command with sudo... You shouldn't need to hand-create node_modules or node-red-contrib-mysensors. npm should have done that all for you, along with any potential dependencies. Adafruit's help goes into Pi-weirdness: https://learn.adafruit.com/raspberry-pi-hosting-node-red/installing-further-plugins
But I hope the mysensors removal works well. Like I said, haven't tested it yet :P
Good luck!
Cranky -
Very cool!
Im currently using the dev branch MQTTClient Gateway sketch - but will keep my eye on this! -
Gladly :) There's more coming out. I just provided the flow to handle "DHCP" sensors (or the ones that do REQ ID 255;255;3;0;3;\n)
One step at a time....
-
Unfortunately, I do not. Until when I just looked at the source "MyGatewayTransportEthernet.cpp", I mistakenly assumed that it too published to an MQTT broker.
It doesn't look too terribly hard to do; with UDP being easier. But my main caveat here is that I don't have an SPI ethernet port for an arduino. That means I wouldn't be able to test my code.
If there was a packet documentation for TCP and UDP, I could write code for the reference. Again, past library and serial documentation, there is none I can refer to.
Of if some hardware fairy would be willing to send me a compatible SPI ethernet port, I could do it :-D
documentation
MY_PORT = (default) 5003
(TCP/UDP) choice
(server mode / client mode) choice. IP dest. reqd for being client
buffer receiving: 100 B
buffer sending: 120 B -
Ok, as you saw, I got the MQTT<-->TCP connector done , and that's live :)
Now, I have my GH up and populated. It's pretty sparse with documentation right now, but that will change.
https://github.com/jwcrawley/node-red-mysensors-flows/What's cool is I can use a the "Watch" NR node and watch for updates in my working directory and auto-push :-D
All you need is your SSH keys set up.
Then you watch for /.git/COMMIT_EDITMSG and when a change hits that, do a
git add (repo directory)Then read the /.git/COMMIT_EDITMSG into msg.payload and then send it to an EXEC node as
git commit -m {{payload}}And then
git push origin master..... And there you have it: automated local to Github.
-
I think you made one mistake in the flow, you need to remove "To MQTT" in the Topic item and put "To MQTT" in the Name item else all the message go in "To MQTT" topic.
I have start to make the same flow and I found this post, thanks for the job.