Where is the Documentation for HTML Poller with Global Data?

224
6
03-15-2024 12:44 PM
JeffSilberberg
Occasional Contributor III

I am trying to build a new FEED that will Poll a target for data.  I would like to use the URL Parameters capability to add &date=2024-03-15  where the date should be the current date - one.  Can I do that?  Where is the documentation for this and other features like Global Parameters?

JeffSilberberg_0-1710531821891.png

 

 

 

 

0 Kudos
6 Replies
GregTieman
Esri Contributor

Hi @JeffSilberberg. You can find the documentation for the HTTP Poller feed type at: https://doc.arcgis.com/en/iot/ingest/website-poll-feed.htm. For information on those two parameters you reference as well as data/time formatting options see the Parameters table included in that topic. 

0 Kudos
JeffSilberberg
Occasional Contributor III

 

Greg, 

    Thank you for the quick reply. 

    I read that a dozen times before I posted --  Under Parameters - URL parameters - It really does not tell me what global variables might be available as a value in the key-value pair.   I need $yesterday or $today-1 to complete the URL parameter &date=yyyy-MM-dd (edited).   Additionally, noting tells me how to determine which value of the key value pair Global variables (An optional parameter that can be used to convert the feed global variables to a custom date time format.) is applied to. 

Finally, while $accessToken is referred to a number of times on this page there is no explanation as to whether it's an oAuth or API access Token.  Or how to utilize it.  

JeffSilberberg_0-1710534881612.png

JeffSilberberg_1-1710534920352.png

 

 

0 Kudos
PeterNasuti
Esri Contributor

@JeffSilberberg Please see under usage notes for additional details about what parameters are available, and what parameters they can be applied to:

"The POST bodyURL parameters, and Custom headers parameters can use feed global variables. By default, the feed global variables are converted into epoch time (milliseconds since January 1, 1970 UTC). Optionally, you can convert the feed global variables to epoch seconds (seconds since January 1, 1970) and a desired string date time format. The following outlines the feed analytic variables and the time they represent.

  • $feed.FeedStartTime—The time the feed was started
  • $feed.FeedScheduledStartTime—The time the next recurrence of the feed is scheduled
  • $feed.FeedLastScheduledStartTime—The time the last recurrence of the feed was scheduled"

There is additional documentation on this page linked from Global Variables:

"For more information on setting a date format (epoch milliseconds, epoch seconds, and string format), see Date and time parameters."

https://doc.arcgis.com/en/iot/ingest/define-date-and-time-properties.htm

I hooked up a quick example with screenshots below of what this configuration would look like to reference the FeedLastScheduledStartTime global variable:

Configuration:

FeedConfig1.png

Result:

FeedResult1.png

0 Kudos
JeffSilberberg
Occasional Contributor III

 

@PeterNasuti  -- The url for these links, do not resolve -- docdev.arcgis.com  did I miss something? 

 

JeffSilberberg_0-1710790093051.png

 

 

0 Kudos
PeterNasuti
Esri Contributor

Thanks @JeffSilberberg I updated the links

0 Kudos
JeffSilberberg
Occasional Contributor III

 

Okay I set the Global variable an got a default 1970-01-01 data instead of yesterday -- 

{"mode":"xml","date":"$feed.FeedLastScheduledStartTime","resort":"XXXXXXXXX"}

So the Poll failed again today. 

 

 

 

 

0 Kudos