<?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[Sunrise&#x2F;Sunset]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm trying to get sunrise and sunset times for my local area into a data point. I know that there are plenty of websites that serve this data in various forms and there are probably various different ways to approach this.</p>
<p dir="auto">I am just wondering if anyone has done anything like this before and what the recommended approach would be before I attempt it. I tried the forum search, but I didn't find any applicable results.</p>
<p dir="auto">Any suggestions?</p>
<p dir="auto">Thanks,</p>
]]></description><link>https://forum.mango-os.com/topic/3837/sunrise-sunset</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 06:28:13 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3837.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2018 15:49:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sunrise&#x2F;Sunset on Thu, 11 Oct 2018 18:40:17 GMT]]></title><description><![CDATA[<p dir="auto">I figured it out. There was a typo in my URL. Thanks for this.</p>
]]></description><link>https://forum.mango-os.com/post/20213</link><guid isPermaLink="true">https://forum.mango-os.com/post/20213</guid><dc:creator><![CDATA[fishfacs]]></dc:creator><pubDate>Thu, 11 Oct 2018 18:40:17 GMT</pubDate></item><item><title><![CDATA[Reply to Sunrise&#x2F;Sunset on Thu, 11 Oct 2018 18:38:16 GMT]]></title><description><![CDATA[<p dir="auto">A JSON/XML API might be easier<br />
e.g. Government (TSA) supplied API for sunset/sunrise that returns XML<br />
<a href="https://www.dhs.gov/mytsa-api-documentation" rel="nofollow ugc">https://www.dhs.gov/mytsa-api-documentation</a></p>
]]></description><link>https://forum.mango-os.com/post/20212</link><guid isPermaLink="true">https://forum.mango-os.com/post/20212</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 11 Oct 2018 18:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to Sunrise&#x2F;Sunset on Thu, 11 Oct 2018 18:03:04 GMT]]></title><description><![CDATA[<p dir="auto">Did you get a whole stack trace?</p>
<p dir="auto">I would guess something is malformed in how you set up the URL in the data source? Idk, the JSON I provided works and has example regex.</p>
]]></description><link>https://forum.mango-os.com/post/20211</link><guid isPermaLink="true">https://forum.mango-os.com/post/20211</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 11 Oct 2018 18:03:04 GMT</pubDate></item><item><title><![CDATA[Reply to Sunrise&#x2F;Sunset on Thu, 11 Oct 2018 17:45:47 GMT]]></title><description><![CDATA[<p dir="auto">I put the data point in exactly as above. Not as an import; just manually. I get the following error when I click the green Test Value checkbutton.</p>
<p dir="auto">"java.lang.IllegalArgumentException: Illegal character in opaque part at index 6: https://www.timeanddate.com/sun/usa/denver"</p>
<p dir="auto">My knowledge of regular expressions is not great. Any ideas on what I missed?</p>
]]></description><link>https://forum.mango-os.com/post/20210</link><guid isPermaLink="true">https://forum.mango-os.com/post/20210</guid><dc:creator><![CDATA[fishfacs]]></dc:creator><pubDate>Thu, 11 Oct 2018 17:45:47 GMT</pubDate></item><item><title><![CDATA[Reply to Sunrise&#x2F;Sunset on Thu, 11 Oct 2018 16:55:25 GMT]]></title><description><![CDATA[<p dir="auto">Here's an HTTP Retriever with sunrise and sunset points for the link in my last post:</p>
<pre><code>{
   "dataSources":[
      {
         "xid":"DS_082d3c5d-adea-44b1-9076-332adfce9dfb",
         "name":"fishfacs!",
         "enabled":false,
         "type":"HTTP_RETRIEVER",
         "alarmLevels":{
            "DATA_RETRIEVAL_FAILURE":"URGENT",
            "POLL_ABORTED":"URGENT",
            "SET_POINT_FAILURE":"URGENT",
            "PARSE_EXCEPTION":"URGENT"
         },
         "purgeType":"YEARS",
         "updatePeriodType":"HOURS",
         "quantize":false,
         "retries":0,
         "setPointUrl":"",
         "timeoutSeconds":30,
         "updatePeriods":4,
         "url":"https:\/\/www.timeanddate.com\/sun\/usa\/denver",
         "editPermission":"",
         "purgeOverride":false,
         "purgePeriod":1
      }
   ],
   "dataPoints":[
      {
         "xid":"DP_2bc4f110-c5b2-4d8d-bf9c-c1c62e24cf78",
         "name":"Sunrise",
         "enabled":true,
         "loggingType":"ON_CHANGE",
         "intervalLoggingPeriodType":"MINUTES",
         "intervalLoggingType":"INSTANT",
         "purgeType":"YEARS",
         "pointLocator":{
            "dataType":"ALPHANUMERIC",
            "ignoreIfMissing":false,
            "setPointName":"",
            "settable":false,
            "timeFormat":"",
            "timeGroup":1,
            "timeRegex":"",
            "valueFormat":"",
            "valueGroup":1,
            "valueRegex":".*Sunrise Today:.*?(\\d?\\d:\\d\\d [ap]m).*"
         },
         "eventDetectors":[
         ],
         "plotType":"STEP",
         "rollup":"NONE",
         "unit":"",
         "templateXid":"Alphanumeric_Default",
         "simplifyType":"NONE",
         "chartColour":"",
         "chartRenderer":{
            "type":"TABLE",
            "limit":10
         },
         "dataSourceXid":"DS_082d3c5d-adea-44b1-9076-332adfce9dfb",
         "defaultCacheSize":1,
         "deviceName":"fishfacs!",
         "discardExtremeValues":false,
         "discardHighLimit":1.7976931348623157E308,
         "discardLowLimit":-1.7976931348623157E308,
         "intervalLoggingPeriod":15,
         "intervalLoggingSampleWindowSize":0,
         "overrideIntervalLoggingSamples":false,
         "preventSetExtremeValues":false,
         "purgeOverride":false,
         "purgePeriod":1,
         "readPermission":"",
         "setExtremeHighLimit":1.7976931348623157E308,
         "setExtremeLowLimit":-1.7976931348623157E308,
         "setPermission":"",
         "tags":{
         },
         "textRenderer":{
            "type":"PLAIN",
            "useUnitAsSuffix":true,
            "unit":"",
            "renderedUnit":"",
            "suffix":""
         },
         "tolerance":0.0
      },
      {
         "xid":"DP_edaa622a-8e7f-44b8-aaae-79d14206f0a0",
         "name":"Sunset",
         "enabled":true,
         "loggingType":"ON_CHANGE",
         "intervalLoggingPeriodType":"MINUTES",
         "intervalLoggingType":"INSTANT",
         "purgeType":"YEARS",
         "pointLocator":{
            "dataType":"ALPHANUMERIC",
            "ignoreIfMissing":false,
            "setPointName":"",
            "settable":false,
            "timeFormat":"",
            "timeGroup":1,
            "timeRegex":"",
            "valueFormat":"",
            "valueGroup":1,
            "valueRegex":".*Sunset Today:.*?(\\d?\\d:\\d\\d [ap]m).*"
         },
         "eventDetectors":[
         ],
         "plotType":"STEP",
         "rollup":"NONE",
         "unit":"",
         "templateXid":"Alphanumeric_Default",
         "simplifyType":"NONE",
         "chartColour":"",
         "chartRenderer":{
            "type":"TABLE",
            "limit":10
         },
         "dataSourceXid":"DS_082d3c5d-adea-44b1-9076-332adfce9dfb",
         "defaultCacheSize":1,
         "deviceName":"fishfacs!",
         "discardExtremeValues":false,
         "discardHighLimit":1.7976931348623157E308,
         "discardLowLimit":-1.7976931348623157E308,
         "intervalLoggingPeriod":15,
         "intervalLoggingSampleWindowSize":0,
         "overrideIntervalLoggingSamples":false,
         "preventSetExtremeValues":false,
         "purgeOverride":false,
         "purgePeriod":1,
         "readPermission":"",
         "setExtremeHighLimit":1.7976931348623157E308,
         "setExtremeLowLimit":-1.7976931348623157E308,
         "setPermission":"",
         "tags":{
         },
         "textRenderer":{
            "type":"PLAIN",
            "useUnitAsSuffix":true,
            "unit":"",
            "renderedUnit":"",
            "suffix":""
         },
         "tolerance":0.0
      }
   ]
}
</code></pre>
]]></description><link>https://forum.mango-os.com/post/20209</link><guid isPermaLink="true">https://forum.mango-os.com/post/20209</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 11 Oct 2018 16:55:25 GMT</pubDate></item><item><title><![CDATA[Reply to Sunrise&#x2F;Sunset on Thu, 11 Oct 2018 16:05:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi fishfacs,</p>
<p dir="auto">By far the easiest way would be to use the Http Retriever data source. After that it's a matter of picking a source for the information that is easy to regex the value out of.</p>
<p dir="auto">For instance, <a href="https://www.timeanddate.com/sun/usa/denver" rel="nofollow ugc">https://www.timeanddate.com/sun/usa/denver</a> seems like it would be an easy page, because it has pretty simple text for the value and it isn't being fetched by a script (i.e. wget gets that information, too, not just a browser):</p>
<pre><code>&lt;span class=four&gt;Sunrise Today: &lt;/span&gt;&lt;span class=three&gt;7:06 am&lt;/span&gt;
&lt;span class=four&gt;Sunset Today: &lt;/span&gt;&lt;span class=three&gt;6:26 pm&lt;/span&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/20202</link><guid isPermaLink="true">https://forum.mango-os.com/post/20202</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 11 Oct 2018 16:05:11 GMT</pubDate></item></channel></rss>