<?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[datapoint value to file]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">i want to export a value of a datapoint to a textfile or csv file.<br />
Each time there is a datapoint update there must be an update in that file as wel.</p>
<p dir="auto">the filename must be the current dat so i have one file each day.<br />
in the file there must be a time stamp and the value of the datapoint.</p>
<p dir="auto">can some one help me with this</p>
<p dir="auto">regards,<br />
Sprokkie</p>
]]></description><link>https://forum.mango-os.com/topic/2113/datapoint-value-to-file</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 17:11:26 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2113.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Jan 2016 16:10:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 22:12:50 GMT]]></title><description><![CDATA[<p dir="auto">finaly i got it up and running, now i am missing values from one data point, ill gusess something went wrong while updating :(<br />
the performance of the graphical view is better than the upgrade to 2.6.</p>
<p dir="auto">now find out how to fix the missing value's  and than renaming the folder to mango and it should work</p>
]]></description><link>https://forum.mango-os.com/post/10955</link><guid isPermaLink="true">https://forum.mango-os.com/post/10955</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 22:12:50 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 20:32:35 GMT]]></title><description><![CDATA[<p dir="auto">Joel,</p>
<p dir="auto">i am trying to upgrade for a while now.<br />
is there a nice tutorial for upgrade ?</p>
<p dir="auto">i copied my mango folder to a new folder started the mango and pressend update.<br />
result all modules where upgraded exept for the core.<br />
upgrading the core failed.</p>
<p dir="auto">at the moment i am doing the same again, and try to upgrade the core first with the upgrade function</p>
]]></description><link>https://forum.mango-os.com/post/10954</link><guid isPermaLink="true">https://forum.mango-os.com/post/10954</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 20:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 19:04:14 GMT]]></title><description><![CDATA[<p dir="auto">i copied the mango folder in to the mango 2.7 folder<br />
after the 2.5 is started i will perform an upgrade.<br />
wil post the results here</p>
]]></description><link>https://forum.mango-os.com/post/10953</link><guid isPermaLink="true">https://forum.mango-os.com/post/10953</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 19:04:14 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 18:56:48 GMT]]></title><description><![CDATA[<p dir="auto">Yes, you just need to modify the env.properties file to launch the second Mango on different web.port than the first.</p>
]]></description><link>https://forum.mango-os.com/post/10952</link><guid isPermaLink="true">https://forum.mango-os.com/post/10952</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 01 Feb 2016 18:56:48 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 18:55:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi Joel,</p>
<p dir="auto">As i rembered i gave you some details.<br />
showing the graphical view was slower after the upgrade, that was really anoying</p>
<p dir="auto">i have to test the new version first before i upgrade.<br />
is it possble to have 2 mango runing on one computer ?</p>
<p dir="auto">i enabled the swagger in the env file.<br />
the env file is a mess, maybe that is the problem ?<br />
i changed false in to true</p>
]]></description><link>https://forum.mango-os.com/post/10951</link><guid isPermaLink="true">https://forum.mango-os.com/post/10951</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 18:55:39 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 18:21:20 GMT]]></title><description><![CDATA[<p dir="auto">You need to enable swagger in the bottom of the env.properties file and then restart Mango.</p>
<p dir="auto">You should upgrade to Mango 2.7 as 2.5 is not going to be supported any more.  You mentioned something was slow on your test upgrade but didn't provide any details.  Mango 2.7 is not somehow slower than 2.5 and has several performance improvements. You must have an issue that can be solved.  It might be something simple like you need to clear your browser's cache.</p>
]]></description><link>https://forum.mango-os.com/post/10950</link><guid isPermaLink="true">https://forum.mango-os.com/post/10950</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Mon, 01 Feb 2016 18:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 17:53:08 GMT]]></title><description><![CDATA[<p dir="auto">If i navigate to /swagger  i got a forbidden page.<br />
i cannot see the endpoints :(</p>
]]></description><link>https://forum.mango-os.com/post/10949</link><guid isPermaLink="true">https://forum.mango-os.com/post/10949</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 17:53:08 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 17:07:58 GMT]]></title><description><![CDATA[<p dir="auto">You can check out the endpoints available in your version by setting swagger.enabled=true in your env.properties, restarting and navigating to <a href="http://mangourl" rel="nofollow ugc">http://mangourl</a>:port/swagger</p>
<p dir="auto">You will need to make a login request to begin getting data, and if you update to later versions of the software you will need to record the XSRF token returned to you at login for subsequent requests.</p>
]]></description><link>https://forum.mango-os.com/post/10948</link><guid isPermaLink="true">https://forum.mango-os.com/post/10948</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 01 Feb 2016 17:07:58 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 16:52:02 GMT]]></title><description><![CDATA[<p dir="auto">i use the h2 database.<br />
conecting to the api might be a solution, dont know how to write a program for that.<br />
ill gues it will be a lot of reading on the interweb...</p>
<p dir="auto">it is to bad the csv file from the report that can be emailed to me is not a file stored in the mango installation.</p>
]]></description><link>https://forum.mango-os.com/post/10947</link><guid isPermaLink="true">https://forum.mango-os.com/post/10947</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 16:52:02 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 16:45:58 GMT]]></title><description><![CDATA[<p dir="auto">Most unfortunate! I am not very familiar with command prompt commands offhand, and all of my SSH example is geared toward Linux. It is possible to install an SSH server on Windows and run batch commands this way, but I haven't done it. Are you running on SQL? Option 2, querying the database directly is likely easier. Or you could create your own table and use the SQL data source to populate it. You could also have a program that subscribes to our API to get points and write them into the format you need.</p>
]]></description><link>https://forum.mango-os.com/post/10946</link><guid isPermaLink="true">https://forum.mango-os.com/post/10946</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 01 Feb 2016 16:45:58 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 16:24:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
just reading the mango help.<br />
the example is for a linux based system, my mango is running on windows 7.<br />
is there an example for win 7 available ?</p>
]]></description><link>https://forum.mango-os.com/post/10945</link><guid isPermaLink="true">https://forum.mango-os.com/post/10945</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 16:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 14:02:42 GMT]]></title><description><![CDATA[<p dir="auto">i do mean the Mango documentation (the contextual help "?" buttons). That is also available on our wiki: <a href="http://infiniteautomation.com/wiki/doku.php?id=datasources:ssh&amp;s%5B%5D=ssh" rel="nofollow ugc">http://infiniteautomation.com/wiki/doku.php?id=datasources:ssh&amp;s[]=ssh</a></p>
<p dir="auto">Yeah I understand that. It'd be using the SSH data source to append data points to a file. It's a little overkill when it's the same machine, but it'll work and you'd have a solution that could also keep the file published remotely.</p>
<p dir="auto">Also I had a conversation with someone, and we appreciated the value of writing a File Publisher in the future.</p>
]]></description><link>https://forum.mango-os.com/post/10941</link><guid isPermaLink="true">https://forum.mango-os.com/post/10941</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 01 Feb 2016 14:02:42 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Mon, 01 Feb 2016 13:00:01 GMT]]></title><description><![CDATA[<p dir="auto">qoute:"There are step by step instructions in the help document as well (&gt;&gt; is the concatenate operator, updating documentation....)."</p>
<p dir="auto">you mean the mango documentation ?</p>
<p dir="auto">when i read you solution with ssh, you wrote that i have to make a ssh datapoint.<br />
i want to have the value and time stamp out of mango in to a file not from a file in to mango.</p>
]]></description><link>https://forum.mango-os.com/post/10939</link><guid isPermaLink="true">https://forum.mango-os.com/post/10939</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Mon, 01 Feb 2016 13:00:01 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Sun, 31 Jan 2016 22:00:23 GMT]]></title><description><![CDATA[<p dir="auto">To attempt the SSH solution, you'll have to generate an SSH key and add it into the authorized_keys of your system, then point the ssh data source to the private key on the filesystem. Here's a tutorial on generating keys: <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2" rel="nofollow ugc">https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2</a></p>
<p dir="auto">There are step by step instructions in the help document as well (&gt;&gt; is the concatenate operator, updating documentation....).</p>
<p dir="auto">Those scripts would be new Scripting Data Sources. You would need a different SSH point for each file appender you want. You could set all those appenders from the same script. You could move all the files with the same point by giving the second script a set of files to move, i.e. once a day....</p>
<p dir="auto">moveFiles = ["/path/to/file/1". "/path/to/file/2"]<br />
for( var x in moveFiles)<br />
sshFileMover.set(moveFiles[x]);</p>
<p dir="auto">... and have your sshFileMover point have a set command like: mv "VALUE" "VALUE-$(date +%F)"</p>
]]></description><link>https://forum.mango-os.com/post/10937</link><guid isPermaLink="true">https://forum.mango-os.com/post/10937</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Sun, 31 Jan 2016 22:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Sun, 31 Jan 2016 21:36:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi Phil,</p>
<p dir="auto">thank you for your answers.</p>
<p dir="auto">this is the reasson i want to have the values in a file:</p>
<p dir="auto">I log my solarpanels in Mango, i have a different solution for publishing the graphs on the internet.<br />
2 arrays of panels have their own inverter that produces a csv file, that is also used for the internet page.<br />
The third array uses a inverter that doesnt have these file, only a kwh meter with modbus.<br />
Mango is reading teh modbus, so i got the data in mango.</p>
<p dir="auto">Now i want to publish that array with solar panels also on the webpage.</p>
<p dir="auto">The example you wrote down is realy abracadabra for me...<br />
where do i paste that script ?</p>
]]></description><link>https://forum.mango-os.com/post/10936</link><guid isPermaLink="true">https://forum.mango-os.com/post/10936</guid><dc:creator><![CDATA[sprokkie]]></dc:creator><pubDate>Sun, 31 Jan 2016 21:36:25 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Sun, 31 Jan 2016 19:30:57 GMT]]></title><description><![CDATA[<p dir="auto">Another possibility would be coding a custom application to receive published HTTP data. The HTTP publisher's format would be pretty straightforward to receive and parse in a second program.</p>
]]></description><link>https://forum.mango-os.com/post/10935</link><guid isPermaLink="true">https://forum.mango-os.com/post/10935</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Sun, 31 Jan 2016 19:30:57 GMT</pubDate></item><item><title><![CDATA[Reply to datapoint value to file on Sun, 31 Jan 2016 19:32:53 GMT]]></title><description><![CDATA[<p dir="auto">I am not sure of exactly why you would have these requirements, but here are some thoughts:</p>
<ol>
<li>
<p dir="auto">I don't believe there is a perfectly direct way. Maybe it is finally time to give the ASCII File data source the ability to set points either in Regex Replace mode or in Append mode, or something. This would probably be ideal for getting the values out, but you can't do any of the file renaming or what have you on that avenue. You could have one file that is the current and some cron tab move that file to its new dated location.</p>
</li>
<li>
<p dir="auto">You could have a second program specifically to address the needs of this application either query your pointValues table and transpose it into the file. It could poll, or you could use a datasource like TCP/IP or SSH to trigger it.</p>
</li>
<li>
<p dir="auto">You could set up an SSH datasource to do its ssh'ing to localhost, then have a script handling which points to set to your ssh point. You could also use this to move the file, probably, through a script on a once daily cron.</p>
</li>
</ol>
<p dir="auto">I believe your SSH point's command would look something like "echo 'VALUE' &gt;&gt; /path/to/valueFile"<br />
Being set from a script like... 0/1 * * * * ? cron</p>
<p dir="auto">var pvt, data = p.past(SECOND)<br />
for( var x in  data) {<br />
pvt = data[x];<br />
sshFileAppender.set( String(pvt.time) + "\t" + String(pvt.value) )<br />
}</p>
<p dir="auto">And then another script like....  0 0 * * * ?</p>
<p dir="auto">sshFileMover.set(true);</p>
<p dir="auto">... where sshFileMove is something like "mv /path/to/valueFile /path/to/valueFile-$(date +%F)"</p>
<hr />
<p dir="auto">I didn't test any of these, but I hope they are helpful!</p>
]]></description><link>https://forum.mango-os.com/post/10934</link><guid isPermaLink="true">https://forum.mango-os.com/post/10934</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Sun, 31 Jan 2016 19:32:53 GMT</pubDate></item></channel></rss>