π¬ Building a Raspberry Pi Gateway
-
Would someone be willing to create a post that lists each step required to set up the simple encryption+signing option? I understand I have to add a password line to the arduino sketch. But how exactly one sets up the server side is still a bit of a mystery to me. It would rock if there was a similar simple command to give during the make process.
-
@mfalkvidd : thanks a lot ! I had searched for such version history and couldn't find it.
Indeed it seems introduction of the switches for log files was introduced in February, so I should probably update my install.Precisely, talking about upgrade process: I read in previous posts that we should uninstall/unregister the install/service. WHat would be commands to do so ? Should it be:
sudo systemctl disable mysgw.serviceand executed before anything else ? So upgrade process would be:
sudo systemctl disable mysgw.service make sudo make install sudo systemctl enable mysgw.service(and maybe test the gateway before the "systemctl enable..")
Is there anyfile to remove manually ? or any other command to apply before or after ?@ricorico94 to update your install run:
sudo make install sudo systemctl restart mysgw.service -
Thank you for the clarification !
-
@anticimex said in π¬ Building a Raspberry Pi Gateway:
https://www.mysensors.org/apidocs/group__RaspberryPiGateway.html
@Anticimex Thanks, but a documentation page (which I have checked before) is not the same as an easy to use guide for beginners.
In my ideal world it would be this:
- Add the MY_SIMPLE_PASSWORD line to your Arduino sketch.
- Compile the gateway with --MY_SIMPLE_PASSWORD="yabadabad000!"
- Done
-
@anticimex said in π¬ Building a Raspberry Pi Gateway:
https://www.mysensors.org/apidocs/group__RaspberryPiGateway.html
@Anticimex Thanks, but a documentation page (which I have checked before) is not the same as an easy to use guide for beginners.
In my ideal world it would be this:
- Add the MY_SIMPLE_PASSWORD line to your Arduino sketch.
- Compile the gateway with --MY_SIMPLE_PASSWORD="yabadabad000!"
- Done
@alowhum it is not easy to have simple guides tailored for specific usecases when there are so many options.
Those tend to not follow implementation and our documentation is made to live with the implementation to ensure it is always up to date. Maintaining a simple guide for every conceivable use case is simply not feasible. The signing and security documentation does have a step by step guide for setting up security. -
@Anticimex: I understand, but:
- Currently even the outline of the steps eludes me. Seeing the steps for usecase #14 or #385 would already help me understand the scope, and to see what ballpark of difficulty it's in. It's easier to mod a guide when there is something to go on.
- Secondly, there must be a common use case? The defaults that MySensors uses already suggests a lot of these: a Raspberry Pi with the default settings of the software (ethernet), with the nRF24 radio.
-
@Anticimex: I understand, but:
- Currently even the outline of the steps eludes me. Seeing the steps for usecase #14 or #385 would already help me understand the scope, and to see what ballpark of difficulty it's in. It's easier to mod a guide when there is something to go on.
- Secondly, there must be a common use case? The defaults that MySensors uses already suggests a lot of these: a Raspberry Pi with the default settings of the software (ethernet), with the nRF24 radio.
@alowhum ok, well first of all, I don't have a rPi setup to test on, secondly I don't have time to look into that (this) environment.
But, this is a open source project so anyone is free to contribute with both code and documentation (which in our case lives in the same repositories) so if there are guides missing enyone is welcome to contribute with experiences and guides to help others out.
It is just important to understand that the guides need to be maintained in order to remain valid.
I don't mind guides at all. But it makes little sense for me to write guides for an environment which I am not familiar with nor can test on. -
@Anticimex: Sure, that's totally understandable. There are other people on the forum :-) Can anyone help me and @pepson out?
And it is exactly my goal to create a more elaborate guide after someone points out the basic steps.
-
I have designed a 3D printable enclosure for this and the design/STL files are available here: https://www.thingiverse.com/thing:3072244
-
@John-Oliva, nice! Added it to the MySensors collection:
https://www.thingiverse.com/mysensors/collections/mysensors -
Hello, it seems I found the problem: Complete newbie thing: :beginner:
sudo ./bin/mysgw -hworked, but/usr/local/bin/mysgwdidn't
I just gave the right to the folder, and now it's working.
Thanks for taking time to help beginners ! -
@gohan I was try to find it with ps -ef, but nothing found. Reload RPI.
@korleone was write about this
"Hello, it seems I found the problem: Complete newbie thing: π°
sudo ./bin/mysgw -h worked, but /usr/local/bin/mysgw didn't
I just gave the right to the folder, and now it's working."But what right hi gave ?
-
Is the rasberry pi serving as a gateway and a server in this project? Or do you have to have a separate pi to host something like openhab and another pi for your gateway?
Hi @magjef29, welcome to the MySensors forum!
You can run your controller(s) on the same Raspberry Pi.
Depending on what tou mean by βserverβ, the gateway can be a server, but the gateway is not a controller.
If you havenβt already, see the getting started guide for information about the different parts.