Announcement

Collapse
No announcement yet.

Virtual clock

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Virtual clock

    Hi

    Im tring to create a virtual device that show current time and date.
    But i cant figure out what varable i need, or where to put it.. Any ideas?

    #2
    You can use $time to get the system time. I use it in some displays around the house. I update it once a minute at the top of the minute.
    https://help.homeseer.com/help/HS3/s...ment_variables
    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

    Comment


      #3
      I have a device for date, device for time HH:MM (updated every minute) and separate device only showing seconds (updated every 5 sec) which I use in HSTouch to show seconds in smaller font, just to monitor HSTouch connetcion becouse it's not bery reliable on Android (iPad is more stable)
      23:15:05

      That's the code I'm using
      Code:
      &nhs.SetDeviceStringByName("Time", now.ToString("HH:mm"), True) & hs.SetDeviceStringByName("Date", now.ToString("ddd. MMM  dd"), True)
      Code:
      &nhs.SetDeviceStringByName("Time5Sec", now.ToString(":ss"), True)

      Comment


        #4
        If you are using an HS Touch screen to display the time, simply put "[$TIME]" in a simple HS Touch text box.

        Comment


          #5
          I skipped trying to have the time with seconds and just update my virtual device with HS time each minute. That is what displays on all my android displays and they all show same time. Previously using the time variable shows time from each display and they drift and get out of sync. Negative on WAF.


          Sent from my iPhone using Tapatalk

          Comment


            #6
            Originally posted by aa6vh View Post
            If you are using an HS Touch screen to display the time, simply put "[$TIME]" in a simple HS Touch text box.
            $TIME pulls from the local clock of the tablet. Some versions of Android do not auto set the clock and it is a pain to keep it right. Also, as alexbk66 said getting the time from HS verifies the connection is still good.

            Comment


              #7
              Originally posted by joegr View Post

              $TIME pulls from the local clock of the tablet. Some versions of Android do not auto set the clock and it is a pain to keep it right. Also, as alexbk66 said getting the time from HS verifies the connection is still good.
              You have a good, valid point. However, on the flip side, the performance is better, and with less network traffic.

              Comment


                #8
                Originally posted by aa6vh View Post

                You have a good, valid point. However, on the flip side, the performance is better, and with less network traffic.
                Performance/traffic is not impacted if you only update the HS device once a minute. Only use hours and minutes in a VD.


                Sent from my iPad using Tapatalk

                Comment


                  #9
                  Originally posted by aa6vh View Post
                  You have a good, valid point. However, on the flip side, the performance is better, and with less network traffic.
                  That's why I update "seconds" every 5 seconds and have a sepaarte device for it - so I use it only when necessary, i.e. in HSTouch in Android which has really unreliable connection.
                  And how much does it affect performance and network traffic? And it still much better than having HSTouch lost connection without any indication?

                  Comment


                    #10
                    Originally posted by alexbk66 View Post
                    That's why I update "seconds" every 5 seconds and have a sepaarte device for it - so I use it only when necessary, i.e. in HSTouch in Android which has really unreliable connection.
                    And how much does it affect performance and network traffic? And it still much better than having HSTouch lost connection without any indication?
                    I guess one size does not fit all. I do not have a problem with connectivity, so that is not an issue for me. And I personally prefer to minimize network traffic.

                    Comment


                      #11
                      Originally posted by rprade View Post
                      You can use $time to get the system time. I use it in some displays around the house. I update it once a minute at the top of the minute.
                      https://help.homeseer.com/help/HS3/s...ment_variables
                      Randy, indicated that "you use it in some displays around the house" are you using HSTouch or something else e.g. screen saver, I'm assuming your using tablets?

                      I'm assuming your using an event or are you using a script within an event? Mike
                      Computer: CUK Intel NUC7i7BNH
                      Op System: Windows10 Pro - Work Station
                      HS Version: HS4 Pro Edition 4.2.19.0

                      Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                      Comment


                        #12
                        They are 4-line LCD displays connected to a NodeMCU (Arduino) board. They are all updated once a minute from a single event.
                        HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                        Comment


                          #13
                          Randy, thanxs for the comeback. Is time the only thing that is being displayed? Out of ignorance I'm assuming that these Boards are housed in something other than raw board and are wireless? Mike
                          Computer: CUK Intel NUC7i7BNH
                          Op System: Windows10 Pro - Work Station
                          HS Version: HS4 Pro Edition 4.2.19.0

                          Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                          Comment


                            #14
                            Originally posted by MNB View Post
                            Randy, thanxs for the comeback. Is time the only thing that is being displayed? Out of ignorance I'm assuming that these Boards are housed in something other than raw board and are wireless? Mike
                            Yes. I have added two more and changed the information slightly on some displays. Look here:

                            https://forums.homeseer.com/forum/an...mp?postcount=3
                            HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                            Comment


                              #15
                              I'll use the words that others used within the other thread "Cool!" other than you can what made you decide to use these displays?

                              I was thinking in the releam of sending some sort of video overlay that could be broadcasted upon demand onto ones smart TV or tablet such as weather, HS status or Camera Images using Alexa to initiate an event.
                              Computer: CUK Intel NUC7i7BNH
                              Op System: Windows10 Pro - Work Station
                              HS Version: HS4 Pro Edition 4.2.19.0

                              Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                              Comment

                              Working...
                              X