OpenMarine
Send Lat/Long to web page - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Node Red (https://forum.openmarine.net/forumdisplay.php?fid=15)
+--- Thread: Send Lat/Long to web page (/showthread.php?tid=4219)



Send Lat/Long to web page - captmatto - 2022-09-09

Hi All

Just working my head around Node Red.

I am trying to setup a "simple" Tongue  flow that sends the latitude and longitude to a website. I have the following flow

  1. Yellow subscribe input sending lat/long via navigation.position (which after testing with debug shows lat/long)
  2. Http Request with method set as POST and to the webpage
  3. Debug message
The following is being returned - it looks like the payload being sent is empty? I'm just dumping the $_POST data back to the page. Do I need to add something else?

object
payload: string
array(0) {
}
_msgid: "5d2c0c3a9e7dc8f3"
statusCode: 200
headers: object
responseUrl: "https://www.sailadventure.co.uk/automations/posit/"
redirectList: array[2]
retry: 0
responseCookies: object


RE: Send Lat/Long to web page - captmatto - 2022-09-09

I seem to have fixed my issue - I was not setting the headers to be sending form data!


RE: Send Lat/Long to web page - Rhenus - 2023-10-25

Possibly, reaching out to experts well-versed in Node-RED might provide a solution to this problem https://tech-stack.com/services/internet-of-things


RE: Send Lat/Long to web page - PaddyB - 2023-10-25

(2023-10-25, 01:17 PM)Rhenus Wrote: Possibly, reaching out to experts well-versed in Node-RED might provide a solution to this problem https://tech-stack.com/services/internet-of-things

You sound like a bot..