<?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: Send email notification by calculating the time difference in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/send-email-notification-by-calculating-the-time/m-p/106000#M471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: sans-serif; color: #3d3d3d; font-size: 11.5pt;"&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;Hello &lt;A href="https://community.esri.com/migrated-users/60975"&gt;nasser hinai&lt;/A&gt; –&lt;/P&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;I think what you want to do is use an Incident Detector with an opening condition which determines an asset has "entered" and area of interest (registered as a geofence) and set the closing condition to evaluate true when the asset's location has "exited" the geofence.&lt;/P&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;The event record output from the Incident Detector will be an&amp;nbsp;&lt;EM&gt;incident&lt;/EM&gt; which has a very different schema from the event record you routed to the processor. While you'll lose a bunch of attributes from the original record, you will retain whatever field you tagged TRACK_ID and also GEOMETRY. The&amp;nbsp;&lt;EM&gt;incident&lt;/EM&gt; event record will also have a duration which you can pass through a filter. If the asset were to dwell within an area of interest for some time you could use a filter to check that:&amp;nbsp; (a) the incident's status is 'Ended'&amp;nbsp; (b) the incident's duration is greater than some value. Then whatever event records the filter allows to pass you send to an output configured to send an e-mail notification.&lt;/P&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;Hope this information is helpful –&lt;BR /&gt;RJ&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2020 21:33:39 GMT</pubDate>
    <dc:creator>RJSunderman</dc:creator>
    <dc:date>2020-08-18T21:33:39Z</dc:date>
    <item>
      <title>Send email notification by calculating the time difference</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/send-email-notification-by-calculating-the-time/m-p/105999#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to calculate the time inside geofence starting from enter the geofence until exit?&lt;/P&gt;&lt;P&gt;Then send an e-mail if this take 2 minutes or more inside the geofence ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : The Car " 1 " enter the geofence at 10:08:00 and stay inside the geofence until exit the geofence at 10:11:00 so in this case email contain the time spent inside the geofence should be send.&amp;nbsp;&lt;BR /&gt;And if this car exit the geofence at 10:09:00 the email should not be send.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 06:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/send-email-notification-by-calculating-the-time/m-p/105999#M470</guid>
      <dc:creator>nasserhinai</dc:creator>
      <dc:date>2020-08-18T06:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send email notification by calculating the time difference</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/send-email-notification-by-calculating-the-time/m-p/106000#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: sans-serif; color: #3d3d3d; font-size: 11.5pt;"&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;Hello &lt;A href="https://community.esri.com/migrated-users/60975"&gt;nasser hinai&lt;/A&gt; –&lt;/P&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;I think what you want to do is use an Incident Detector with an opening condition which determines an asset has "entered" and area of interest (registered as a geofence) and set the closing condition to evaluate true when the asset's location has "exited" the geofence.&lt;/P&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;The event record output from the Incident Detector will be an&amp;nbsp;&lt;EM&gt;incident&lt;/EM&gt; which has a very different schema from the event record you routed to the processor. While you'll lose a bunch of attributes from the original record, you will retain whatever field you tagged TRACK_ID and also GEOMETRY. The&amp;nbsp;&lt;EM&gt;incident&lt;/EM&gt; event record will also have a duration which you can pass through a filter. If the asset were to dwell within an area of interest for some time you could use a filter to check that:&amp;nbsp; (a) the incident's status is 'Ended'&amp;nbsp; (b) the incident's duration is greater than some value. Then whatever event records the filter allows to pass you send to an output configured to send an e-mail notification.&lt;/P&gt;&lt;P style="margin: 8.0pt 0in 8.0pt 0in;"&gt;Hope this information is helpful –&lt;BR /&gt;RJ&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 21:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/send-email-notification-by-calculating-the-time/m-p/106000#M471</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2020-08-18T21:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Send email notification by calculating the time difference</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/send-email-notification-by-calculating-the-time/m-p/106001#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RJ Sunderman,&lt;/P&gt;&lt;P&gt;Thanks for the suliotion . I tried it and it is work but as you mention the output from&amp;nbsp;the&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;&lt;EM&gt;Incident Detector&lt;/EM&gt; will &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;has a very different schema which is not what I want.&lt;BR /&gt;to make my idea clear: I have IVMS data&amp;nbsp;like ( driver name, plate number, long.lat and department ) this data should be writing on e-mail when the car enter restricted area&amp;nbsp; (geofence) - and this is easy to do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;Now what I want is to calculate the time that car spend inside the geofence since the car entring until it exit the geofence (duration) and write this info in e-mail as well with other IVMS data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;Thank you again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15.3333px;"&gt;Nasser&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 08:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/send-email-notification-by-calculating-the-time/m-p/106001#M472</guid>
      <dc:creator>nasserhinai</dc:creator>
      <dc:date>2020-08-24T08:22:23Z</dc:date>
    </item>
  </channel>
</rss>

