<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lunar Moon phases dates in Survey123 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/lunar-moon-phases-dates-in-survey123/m-p/847521#M22433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zach,&lt;/P&gt;&lt;P&gt;thanks so much for your help and input, this most needed by biologist&amp;nbsp; and other researchers.&lt;/P&gt;&lt;P&gt;The pulldata function option is probably the best, however, I wan't able to find an downloadable excel spreadsheet with this data on the web.&lt;/P&gt;&lt;P&gt;I come across this calculation based on the date that I try to insert into XML Survey123 spreadsheet but without success:&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;Phase =&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;(((&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/2551442844-0.228535)&lt;BR /&gt;+0.00591997&lt;EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/5023359217+3.1705094)&lt;BR /&gt;+0.017672776&lt;/EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/378923968-1.5388144)&lt;BR /&gt;-0.0038844429&lt;EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/437435791+2.0017235)&lt;BR /&gt;-0.00041488&lt;/EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/138539900-1.236334))%1)&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;link:&amp;nbsp;&lt;A class="link-titled" href="http://community.facer.io/t/moon-phase-formula-updated/35691/9" title="http://community.facer.io/t/moon-phase-formula-updated/35691/9"&gt;Moon Phase formula - updated - Expression Help - FACER Community&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;SPAN&gt;&amp;nbsp;Thanks for the&amp;nbsp;&lt;/SPAN&gt;sample that hits a weather API based on a Geopoint location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Thanks again for you time and aid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Federico&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2020 17:44:51 GMT</pubDate>
    <dc:creator>FedericoRiet_Sapriza</dc:creator>
    <dc:date>2020-08-05T17:44:51Z</dc:date>
    <item>
      <title>Lunar Moon phases dates in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/lunar-moon-phases-dates-in-survey123/m-p/847519#M22431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;how can I include the lunar phase when I select the date in the Survey123 form?&lt;/P&gt;&lt;P&gt;Any ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;F&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 00:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/lunar-moon-phases-dates-in-survey123/m-p/847519#M22431</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-07-28T00:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lunar Moon phases dates in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/lunar-moon-phases-dates-in-survey123/m-p/847520#M22432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/371878"&gt;Federico Riet Sapriza&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option would be to use the Survey123 custom JavaScript Pulldata() functions to hit a lunar phases API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample that hits a weather API based on a Geopoint location. The sample may be able to be modified in which the survey will pass along a date and the JavaScript function will hit a lunar phases API to return the phase for that date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In researching it seems that NOAA has an API that may be able to be used to extract this information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use these links for reference:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/9318328/lunar-phase-api" title="https://stackoverflow.com/questions/9318328/lunar-phase-api"&gt;php - Lunar Phase API - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://tidesandcurrents.noaa.gov/astronomical.html" title="https://tidesandcurrents.noaa.gov/astronomical.html"&gt;Astronomical Data - NOAA Tides &amp;amp; Currents&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to potentially use the NOAA information above and create a CSV file with dates and phases for some period of time in the future and use the &lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2016/10/27/the-pulldata-function-access-external-data"&gt;pulldata() function&lt;/A&gt; in your survey to grab those values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:25:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/lunar-moon-phases-dates-in-survey123/m-p/847520#M22432</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2020-08-04T19:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lunar Moon phases dates in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/lunar-moon-phases-dates-in-survey123/m-p/847521#M22433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zach,&lt;/P&gt;&lt;P&gt;thanks so much for your help and input, this most needed by biologist&amp;nbsp; and other researchers.&lt;/P&gt;&lt;P&gt;The pulldata function option is probably the best, however, I wan't able to find an downloadable excel spreadsheet with this data on the web.&lt;/P&gt;&lt;P&gt;I come across this calculation based on the date that I try to insert into XML Survey123 spreadsheet but without success:&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;Phase =&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;(((&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/2551442844-0.228535)&lt;BR /&gt;+0.00591997&lt;EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/5023359217+3.1705094)&lt;BR /&gt;+0.017672776&lt;/EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/378923968-1.5388144)&lt;BR /&gt;-0.0038844429&lt;EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/437435791+2.0017235)&lt;BR /&gt;-0.00041488&lt;/EM&gt;sin(&lt;SPAN class=""&gt;#DNOW&lt;/SPAN&gt;#/138539900-1.236334))%1)&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;link:&amp;nbsp;&lt;A class="link-titled" href="http://community.facer.io/t/moon-phase-formula-updated/35691/9" title="http://community.facer.io/t/moon-phase-formula-updated/35691/9"&gt;Moon Phase formula - updated - Expression Help - FACER Community&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;SPAN&gt;&amp;nbsp;Thanks for the&amp;nbsp;&lt;/SPAN&gt;sample that hits a weather API based on a Geopoint location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Thanks again for you time and aid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Federico&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/lunar-moon-phases-dates-in-survey123/m-p/847521#M22433</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-08-05T17:44:51Z</dc:date>
    </item>
  </channel>
</rss>

