<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Complete HTTP receiver or HTTP JSON receiver example... anywhere??]]></title><description><![CDATA[<p dir="auto">Hi.  I am new to this product but have looked around the forum in many places and only see disjointed fragments of examples around how one goes about setting up an HTTP receiver or HTTP JSON receiver or TCP/IP receiver?</p>
<p dir="auto">I am looking to import arduino data real-time into Mango, ideally using a TCP/IP or higher stack method.  I can structure the data in whatever format but I need clear instructions on how the various UI parameters in the data source match to what is sent via a script, etc.  Does something like that exist somewhere?</p>
]]></description><link>https://forum.mango-os.com/topic/4212/complete-http-receiver-or-http-json-receiver-example-anywhere</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 19:56:04 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4212.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 May 2019 22:51:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Complete HTTP receiver or HTTP JSON receiver example... anywhere?? on Thu, 16 May 2019 19:17:49 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Phil, I'll keep these in mind also</p>
]]></description><link>https://forum.mango-os.com/post/22169</link><guid isPermaLink="true">https://forum.mango-os.com/post/22169</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 16 May 2019 19:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to Complete HTTP receiver or HTTP JSON receiver example... anywhere?? on Thu, 16 May 2019 16:24:08 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Hi Ceremona, welcome to the forum!</p>
</blockquote>
<p dir="auto">I often link people to this post for the format of the publisher's output, which is what the HTTP Receiver is made to work with (though any client could send such HTTP messages, of course):<br />
<a href="https://forum.infiniteautomation.com/topic/2187/how-to-use-publishers-http-sender/3" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2187/how-to-use-publishers-http-sender/3</a></p>
<p dir="auto">Outgoing HTTP receiver messages are not quite the same formatting, as was discussed in this thread:<br />
<a href="https://forum.infiniteautomation.com/topic/2854/http-receiver-set-point-name" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2854/http-receiver-set-point-name</a></p>
<p dir="auto">For the HTTP JSON receiver, you may find the last post in this thread answers the question:<br />
<a href="https://forum.infiniteautomation.com/topic/4057/how-to-set-a-value-using-http/9" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/4057/how-to-set-a-value-using-http/9</a></p>
<p dir="auto">The HTTP JSON receiver does not currently support settable points, so perhaps there is a useful feature to be added there.</p>
]]></description><link>https://forum.mango-os.com/post/22167</link><guid isPermaLink="true">https://forum.mango-os.com/post/22167</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 16 May 2019 16:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to Complete HTTP receiver or HTTP JSON receiver example... anywhere?? on Thu, 16 May 2019 20:48:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi Ceremona, welcome to the forum!</p>
<p dir="auto">If you look at the '?' there is a full blown user help for how to utilise these sources.<br />
<img src="https://camo.nodebb.org/de65e84fefe2b139755e031bb83e069123d7edc0?url=https%3A%2F%2Fi.imgur.com%2FcCMNyYH.png" alt="0_1557966258052_8d9b2c7d-6af9-4c33-9e0d-e8661cde99c8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">As can be read, the url you need to post to is http://[mangodomain|localhost]/httpds</p>
<p dir="auto">Anyway, you see that set point url I'm pointing to?<br />
EDIT: Sorry I meant to mean device white list, I was pointing at the wrong textbox!<br />
You set that as your reference so it will land (the data) in this datasource.<br />
the parameter being <code>__device</code></p>
<p dir="auto">Here's a snippet:</p>
<pre><code>var _URL="http://ipAddressHere/httpds?__device=DEMO&amp;QUANTUMM1="+pt*.value+'@'+pt*.time;
       httpReq(_URL,"post",res,{'Content-Type':'application/x-www-form-urlencoded'},{});
</code></pre>
<p dir="auto">Where in this case QUANTUMM1 is my point identifier in the data point in the data source itself.<br />
<img src="https://camo.nodebb.org/45a8f991ed411a7dd584c4ebb829ce1a4f79e81c?url=https%3A%2F%2Fi.imgur.com%2FRONEVXT.png" alt="0_1557966635843_58b8e4cc-a686-46da-801d-508e2afb5c6a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The format as you can see in the code (1 of the allowed formats at least, read the datasource help for the others) is <code>"+pt*.value+'@'+pt*.time</code><br />
So value first, separated by an '@' then a timestamp. NOTE This format I believe is the publisher set format for the set format option of this datasource so you can use a mango publisher to flick data via an http publisher to a mango http receiver datasource.</p>
<p dir="auto">So as a recap:</p>
<p dir="auto">params: __device=[setPointUrl]<br />
&amp;httpParameterName=[value]@[Timestamp]</p>
<p dir="auto">url: mangoUrl/httpds</p>
<p dir="auto">You can test by clicking on the 'Listen for HTTP data' button to ascertain if your values are coming through.<br />
Any further confusion, we're all here to help</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/22158</link><guid isPermaLink="true">https://forum.mango-os.com/post/22158</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 16 May 2019 20:48:28 GMT</pubDate></item></channel></rss>