Announcement

Collapse
No announcement yet.

clock

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

  • Roger D
    replied
    Greetings iceman steveo,

    Do you mean like this?

    Click image for larger version

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

    Roger D

    Leave a comment:


  • Pete
    replied
    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.

    Leave a comment:


  • iceman steveo
    started a topic clock

    clock

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