<?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>idea Clock widget in ArcGIS Dashboards Ideas</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idi-p/1133298</link>
    <description>&lt;P&gt;I'd like to see a new and relatively simple widget in ArcGIS Dashboard. It's a analog (or digital) clock. One of my users is going to show the dashboard on a big screen in their office, and wants to see the time.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 11:28:50 GMT</pubDate>
    <dc:creator>TorbjørnDalløkken2</dc:creator>
    <dc:date>2022-01-13T11:28:50Z</dc:date>
    <item>
      <title>Clock widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idi-p/1133298</link>
      <description>&lt;P&gt;I'd like to see a new and relatively simple widget in ArcGIS Dashboard. It's a analog (or digital) clock. One of my users is going to show the dashboard on a big screen in their office, and wants to see the time.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 11:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idi-p/1133298</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2022-01-13T11:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clock widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1133347#M1635</link>
      <description>&lt;P&gt;This is a little hacky, but you could create an Indicator widget and put this in for the &lt;STRONG&gt;Advanced Formatting &lt;/STRONG&gt;expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return {
    topText: 'Current Time',
    topTextMaxSize: 'medium',
    middleText: Text(Now(), 'HH:mm')
  }&lt;/LI-CODE&gt;&lt;P&gt;Then set the refresh interval to 0.1 minutes, and your indicator will look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1642081919647.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31407iBED0938E0EC4DDEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1642081919647.png" alt="jcarlson_0-1642081919647.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Analog would be trickier, but I still wonder if you couldn't mangle a &lt;STRONG&gt;Gauge&lt;/STRONG&gt; or two to do it for you with a Data Expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_2-1642082401017.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31409iE673660DFCC737EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_2-1642082401017.png" alt="jcarlson_2-1642082401017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1133347#M1635</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-13T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clock widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1135160#M1639</link>
      <description>&lt;P&gt;You could also embed a clock from elsewhere: &lt;A href="https://24timezones.com/clock-widget" target="_blank"&gt;https://24timezones.com/clock-widget&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 21:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1135160#M1639</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-19T21:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clock widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1135183#M1640</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1642628498483.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31833i8D325C8EA3EFB4EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1642628498483.png" alt="jcarlson_0-1642628498483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can combine a data expression with some SVG elements to create a clock of your own, too.&lt;/P&gt;&lt;P&gt;Data expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var n = Now()
var thehour = Hour(Now())
var theminute = Minute(Now())

if (thehour &amp;gt; 12){
    thehour -= 12
}

var out_dict = {
    fields: [
        {name: 'thehour', type: 'esriFieldTypeInteger'},
        {name: 'theminute', type: 'esriFieldTypeInteger'},
        {name: 'hourdegrees', type: 'esriFieldTypeDouble'},
        {name: 'minutedegrees', type: 'esriFieldTypeDouble'},
        {name: 'ampm', type: 'esriFieldTypeString'}],
    geometryType: '',
    features: [
        {attributes: {
            thehour: thehour,
            theminute: theminute,
            hourdegrees: thehour * 30 + (5 / theminute),
            minutedegrees: theminute * 6,
            ampm: Iif(Hour(Now()) &amp;gt; 12, 'PM', 'AM')
        }}]
}

return FeatureSet(Text(out_dict))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;p style="text-align: center"&amp;gt;
  &amp;lt;svg height="300" width="300"&amp;gt;
    &amp;lt;circle
      cx="150"
      cy="150"
      fill="grey"
      r="130"
      stroke="black"
      stroke-width="3"
    &amp;gt;&amp;lt;/circle&amp;gt;
    &amp;lt;path
      d="M150 150 L 150 40 Z"
      stroke="white"
      stroke-width="3"
      text-align:center=""
      transform="rotate({minutedegrees},150,150)"
    &amp;gt;&amp;lt;/path&amp;gt;
    &amp;lt;path
      d="M150 150 L 150 60 Z"
      stroke="white"
      stroke-width="5"
      transform="rotate({hourdegrees},150,150)"
    &amp;gt;&amp;lt;/path&amp;gt;
    &amp;lt;text
      x="150"
  &amp;lt;/svg&amp;gt;
&amp;lt;/p&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jan 2022 21:43:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1135183#M1640</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-19T21:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clock widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1150613#M1664</link>
      <description>&lt;P&gt;It is amazing! Could you do countdown with this too? Is it possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1150613#M1664</guid>
      <dc:creator>OznurGeze</dc:creator>
      <dc:date>2022-03-04T12:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Clock widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1150642#M1665</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/551083"&gt;@OznurGeze&lt;/a&gt;&amp;nbsp; Totally! Assuming you had the "end date" either determined by your data, or just hard-coded into the expression, you could easily adjust this to show a duration, a remaining time, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 14:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/clock-widget/idc-p/1150642#M1665</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-03-04T14:13:55Z</dc:date>
    </item>
  </channel>
</rss>

