I'm completely new to node-red but need to create some project that integrates PLC controller with web interface running on external server. I do it using SQL database running on the same server as the website and it works perfectly for displaying charts, data archives etc. My application looks now like this: I have PLC connected to the microcontroller (Siemens SIMATIC IOT2040) and these two devices communicate fine. I have the IOT connected to the Internet and send data gathered from PLC to the external SQL server using "mysql" node - it also works great.
I've unfortunately faced totally different problem. I would like to get some signals from external website via node-red but compeletely have no idea how to do so. The idea is to create some html form with mainly buttons, but also maybe text fields and receive them in node-red. I tried to use http node with post method but it didn't work - I get no message. As far as I read, the http is mostly used for connecting node-red program with locally running websites but is there any way to connect it with external website? I eventually thought about setting some record in SQL database via html button and read that value in node-red via "mysql" node but it doesn't look like a good solution for me...
Thank you in advance for all reponses!