Announcement

Collapse
No announcement yet.

LastX10 String & ASP

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

    LastX10 String & ASP

    As I build my ASP status page (converting from VBS) decided to insert my mail box delivery setup into it. Basically what I see right now on my device list is:

    Under status: Mail was Delivered

    Under Last Change: Today at 1:20:44 PM

    I want to be able to define one variable to print on the status page and the status part is easy but the last change part using LastX10 (to a string) I am having problems with. Any suggestions out there?
    - 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

    #2
    You need to use last_change = hs.DeviceLastChange(code) to get the lastchanged column value.

    -Rupp

    Here's to all the unknown soldiers to whom we owe the freedom of today and everyday. Thanks.
    -Rupp
    sigpic

    Comment


      #3
      Thanks Rupp. Tried and tried and keep getting 12:00 until I realized that I was using wrong code. Is that called HS dyslexia?
      - 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

      Working...
      X