User avatar
Marcos
Topic Author
Posts: 4
Joined: 09 Mar 2020, 18:42

Unable to Connect to remote AIO module with node red

09 Mar 2020, 18:56

Hi All,
I'm here to ask for a suggestion.
I currently use node-red and since some weeks ago I've been started to test new Revolution Pi and AIO module.
Since I work on the RevPi, no problem with node-red nodes. I configure the AIO server as localhost:8000 on my nodes and everything is ok.

But, when I try to connect from another machine (different IP) I always obtain

Stopped reconnecting. Max Reconnections reached!
ERROR connect ETIMEDOUT 192.168.1.8:8000
Closed connection to WS Server!

And this is strange for me because there is not so much stuff to configure in the node and that is the correct IP of the RevPi.

Do you have any Idea?

I've tried several attempts by changing user and permissions on the remote pi but I have no positive results.

Thanks

Marco
 
User avatar
Marcos
Topic Author
Posts: 4
Joined: 09 Mar 2020, 18:42

Re: Unable to Connect to remote AIO module with node red

12 Mar 2020, 08:49

Hi,
I try to go deep into the topic.
Here following, my 2 attempts to connect RevPi AIO server
Cattura.JPG
Cattura.JPG (94.13 KiB) Viewed 1208 times
Cattura2.JPG
Cattura2.JPG (42.56 KiB) Viewed 1208 times
In the first, I've tried to connect using authentication (both with pi user and node-red user) while in the second I've tried with no authentication.
Always the same result.

I've also tried to use the same user (and password) for RevPi and the remote Pi. No luck.

This is what I have on the remote Pi node
Cattura3.JPG
Cattura3.JPG (40.38 KiB) Viewed 1208 times
without any possibility to select an Input pin.

Of course on RevPi I can make all my choices
 
Frank
KUNBUS
Posts: 63
Joined: 09 Jan 2017, 10:46

Re: Unable to Connect to remote AIO module with node red

12 Mar 2020, 11:20

Hello Marcos,

one basic question in advance:
Your remote AIO module is reachable from the Node-RED machine (Pinging works) in principle - but ONLY the web server is not responding?

Regards,
Frank
 
jgerlach-erminas
Official 3rd Party Support Erminas
Posts: 14
Joined: 22 Jan 2020, 14:31

Re: Unable to Connect to remote AIO module with node red

12 Mar 2020, 11:40

Hi Marco,

remote connections are currently disabled in noderedrevpinodes, because https/wss support is not added yet and no user authentification is in place. If you are on a local network and willing to take the safety risk, try the following:

Download the latest server code from the github repo on the remote revpi:
wget https://raw.githubusercontent.com/erminas/noderedrevpinodes-server/master/revpi-server.py
Edit the file and disable the external connection blocking, by changing the line 237 to block_external_connections = False
nano revpi-server.py
Overwrite existing server
sudo cp revpi-server.py /usr/share/noderedrevpinodes-server/revpi-server.py
Remove temporary file
rm revpi-server.py
Restart python server
sudo systemctl restart noderedrevpinodes-server.service
Sorry for the inconvenience, external connections and config files are planned features for future releases. Feel free to ask further questions.
Greetings,
Jonas
 
User avatar
Marcos
Topic Author
Posts: 4
Joined: 09 Mar 2020, 18:42

Re: Unable to Connect to remote AIO module with node red

14 Mar 2020, 20:37

Dear Jonas,
thank you so much for your help.
I've just checked it and it works.
I'll perform other tests in the next days.
Marco

Who is online

Users browsing this forum: No registered users and 3 guests