Announcement

Collapse
No announcement yet.

Problems with hs.SystemUptime (not giving a "last updated")

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

    Problems with hs.SystemUptime (not giving a "last updated")

    OK, heres how I have the script setup right now (it gets executed directly from HS):

    &hs.SetDeviceString "z1","Uptime: "& hs.SystemUptime

    Which works great. Only problem is it doesn't update the "device last updated" area so it just says Unknown. How do I get that to update?

    Thanks


    ---
    Todd

    #2
    OK, I did some searching around and got it to work, sorta:

    &hs.SetDeviceString "z1","Uptime: "& hs.SystemUptime : hs.SetDeviceLastChange "z1",TRUE

    will update the time, but to 12/29/1989. Ummm... that ain't going to work. So there has to be a way to tell it to use the current time.... Just wanted to keep you updated, I'll continue messing around with this...


    ---
    Todd

    Comment


      #3
      OK, here's the final, working script:

      &hs.SetDeviceString "z1","Uptime: "& hs.SystemUptime,TRUE

      Notice the TRUE at the end. This is a new optional thrid variable, if it says TRUE it will update the time, if it says FALSE or is left blank, it won't.


      ---
      Todd

      Comment

      Working...
      X