Announcement

Collapse
No announcement yet.

clock

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

    clock

    Would I be able to put a clock / Time device on homeseer HS4 ? and how would I do that ?

    #2
    You could run a script that updates a device status with a clock / timer. It'll be the system time on the HS4 box. I use similiar here for my Homeseer touchscreens.


    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)

    Code:
    Public Sub ShowTime(parms As Object) Dim iMin As Integer = CInt(hs.DeviceValueByName("CDTimer")) Dim iHour As Integer = iMin \ 60 iMin = iMin Mod 60 Dim buff As String = CStr(iMin) If iMin < 10 Then buff = "0" + buff ' Ensure minutes is two digits hs.SetDeviceStringByName("CDTimer", CStr(iHour) + ":" + buff, False) End Sub
    Google / search on the Homeseer forum and you will see many examples.

    Personally here run an NTP with PPS server on my PFSense firewall which uses a serial GPS and PPS from the GPS board.

    All of the devices on my home network get their time from the PFSense Firewall box.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 20.04 / VB W7e Jetway JBC420U591
    Fanless IntelĀ® Celeron N3160 SoC 8Gb
    HS4 Pro - V4.1.18.1 - Ubuntu 20.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb
    HSTouch on Intel tabletop tablets

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant

    Comment


      #3
      Greetings iceman steveo,

      Do you mean like this?

      Click image for larger version

Name:	Screenshot from 2021-06-05 16-21-51.png
Views:	40
Size:	50.9 KB
ID:	1478069

      Roger D

      Comment

      Working...
      X