Announcement

Collapse
No announcement yet.

Stretch Function

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

    Stretch Function

    1) Can someone advise how the JowiHue Animation Stretch function actually works and how the values entered for each step are determined by the user?
    2) I think I understand that if I select SunRise or Inputted user selected time that the app figures out from an event start to the Endtimes, but how does that work for SunSet work or is that the same again from the start of the event to SunSet? thanxs in advance.
    Attached Files
    Computer: CUK Intel NUC7i7BNH
    Op System: Windows10 Pro - Work Station
    HS Version: HS4 Pro Edition 4.2.17.2

    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.

    #2
    This part is complex but basically simple. On a stretched animation, the plugin counts all wait values of the animation, including the loops.
    In your animation you have 4 steps with waits (1+3+5+1=11 waitsteps)
    Then it takes the time that has been selected as end time. It counts the number of seconds that it has to run and then calculates the value of 1 waitsteps en starts the animation based on that.
    So if your animation runs for 1 hour (3600 seconds) the first step will last (3600/11) 327 seconds and so on.

    End time set as sunrise or sunset are taken from the HS values set for it. Start time is alway determined on the event trigger time.

    Let me know if this answers you?

    Wim
    -- Wim

    Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

    1210 devices/features ---- 392 events ----- 40 scripts

    Comment


      #3
      Wim,
      Thanxs for taking the time to explain, after reviewing the suggested help file and reviewing the multitude of posts.. I know I can be thick at times, but a little help goes a long way.


      So I have 4 Steps with waits of (1+3+5+1 - 10 waitsteps) unless math's are different here ;-p
      In your example if the animation runs a total of 1 hour (3600 seconds) I believe what you're saying is that 1=360 seconds, 3=1080 seconds, 5=1800 seconds, and 1=360 which should total 3600 seconds when we sum the individual items up.

      If I look at this simplistically it seems that the values are ratios of the total time especially if I run an animation from Sunset to Sunrise which for the sake of keeping it straight forward the total time would be 4320 seconds (12 hours x 360 seconds (1 hour)) so..

      1=432 sec, 3=1296 sec, 5=2160 sec, 1=432 sec = 4320 total seconds whew! I know long winded.

      Silly question should the total waitsteps equal in the case of Sunset to Sunrise 12 for 12 hours or am I overthinking it?
      Computer: CUK Intel NUC7i7BNH
      Op System: Windows10 Pro - Work Station
      HS Version: HS4 Pro Edition 4.2.17.2

      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


        #4
        That is why I am using the loops if needed to make the steps smaller, or be more creative with more scenes included

        A small correction to scare you.... an hour does not have 360 secondes, but 3600 so your calculation would even be times 10 in seconds :0

        I don't think I understand your last question, sunset to sunrise will differ every day, at least for me... depends on the season? 12 hours is probably only on 21st of March and the 21st of September... we are on the same position north (longitude or lattitude, I never know )

        Wim
        -- Wim

        Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

        1210 devices/features ---- 392 events ----- 40 scripts

        Comment


          #5
          Wim, it's that Math's thing! thanxs for correction.

          I told you I was over thinking this subject...
          Computer: CUK Intel NUC7i7BNH
          Op System: Windows10 Pro - Work Station
          HS Version: HS4 Pro Edition 4.2.17.2

          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