Open mherke opened 6 years ago
Hi @mherke , currently it is not supported. The extension will create a Node-RED instance (which is a localhost website) and show it in VS Code. So is your raspberry pi IP reachable? I mean you could type using the IP address in your browser to access the Node-RED. If yes, you could add an option for the extension to set the IP address, so that you could connect to Node-RED in remote machine in your local VS Code.
hi formulahendry,
thanks for your reply.
yes the raspberry pi IP is reachable and i can connect to node-red running on my pi
you wrote: "...If yes, you could add an option for the extension to set the IP address, so that you could connect to Node-RED in remote machine in your local VS Code..." ...can you provide some more details how to to this? how and where can i set the IP?
thanks for your support!
regards
michael
ups, i closed the issue by mistake
Hi @mherke , sorry for the typo, I mean I will add an option for the extension to set the IP address
And now, the setting vscode-node-red.url
is added, please install the new version and refer to https://github.com/formulahendry/vscode-node-red#settings to have a try. Let me know if it is working as you expect.
BTW, I want to know more about how would you like to connect Node-RED on Pi in VS Code, what's your real usage scenario? This would be helpful to improve this extension. 😄
Hi, sorry for my delayed response, but I don't had internet access because of a short holiday. I will try the new version at the weekend and let you know if it will work. I am using my raspberry pi for home automation tasks. I startet a while ago using openhab but switched to node-red. The raspberry is mounted in switch cabinet and can not be removed for maintenance easily. Using openhab allowed me to connect to the pi via webinterface from my laptop or pc to maintain the pi and sensors. Even creating new rules etc. was a simple task. With node-red I can only use ssh terminal or use vnc or a x-server to connect. X-server or vnc don't feel fast and precise. Connecting a keyboard and monitor to the pi is not an option because of the fixed installation of the device. Running visual studio code on my laptop or pc and using vscode-node-red to create new flows or modify them would be a great help.
With kind regards
Michael
hi, maybe i am wrong, but is there a option to connect to a raspberry pi running node-red? i could not find any configuration dialog (win10; vscode-node-red).
with kind regards
michael