Home AMX User Forum NetLinx Studio

Daylight Saving flag

You can set Daylight Saving in the Netlinx Java interface but you can NOT access it in Netlinx Studio.
Any plans to include the Daylight Saving logic flag in Netlinx Studio?

Comments

  • SensivaSensiva Posts: 211
    GSLogic wrote: »
    You can set Daylight Saving in the Netlinx Java interface but you can access it in Netlinx Studio.
    Any plans to include the Daylight Saving logic flag in Netlinx Studio?

    You want to access a flag the shows you if DLS is on or off??

    anyway... there is an include file sunrise and sunset that do some cool stuff using ASTRO_CLOCK as mentioned in the tech note 267 , but I couldn't get it run for some reason

    for me, I calculate DLS start and end dates by myself in code, I can provide it for you if you would like.
  • GSLogicGSLogic Posts: 562
    Sensiva wrote: »
    You want to access a flag the shows you if DLS is on or off??

    anyway... there is an include file sunrise and sunset that do some cool stuff using ASTRO_CLOCK as mentioned in the tech note 267 , but I couldn't get it run for some reason

    for me, I calculate DLS start and end dates by myself in code, I can provide it for you if you would like.
    Thanks for the offer but I already use an include for all the time management. I want to remove the DS function from all my modules all toghther, since it's already controlled and calculated by the master. As of now I have to include the same DS function in each module, as a client could only want to use one module out of all the different lighting mods, music mods, thermostat mods, shade mods, etc.
  • SensivaSensiva Posts: 211
    I hope I got your point right...

    CLKMGR_SET_DAYLIGHTSAVINGS_OFFSET (CONSTANT CLKMGR_TIMEOFFSET_STRUCT T)
  • GSLogicGSLogic Posts: 562
    Sensiva wrote: »
    CLKMGR_SET_DAYLIGHTSAVINGS_OFFSET (CONSTANT CLKMGR_TIMEOFFSET_STRUCT T)

    Closer :)
    I need the internal DS flag to have a variable associated with it so when it changes you see the value.
    Think of it like the month, you can view it just by typing DATE_TO_MONTH.
    I need a DAYLIGHT_SAVING command.
  • SensivaSensiva Posts: 211
    GSLogic wrote: »
    Closer :)

    Fine... here are the last couple things I may know

    CLKMGR_IS_DAYLIGHTSAVINGS_ON
    Returns FALSE/0 or TRUE/1.
    The default setting is FALSE/0.

    CLKMGR_GET_DAYLIGHTSAVINGS_OFFSET (CONSTANT CLKMGR_TIMEOFFSET_STRUCT T)

    I am out of clues.
  • GSLogicGSLogic Posts: 562
    Sensiva wrote: »
    Fine... here are the last couple things I may know

    CLKMGR_IS_DAYLIGHTSAVINGS_ON
    Returns FALSE/0 or TRUE/1.
    The default setting is FALSE/0.

    CLKMGR_GET_DAYLIGHTSAVINGS_OFFSET (CONSTANT CLKMGR_TIMEOFFSET_STRUCT T)

    I am out of clues.
    Sensiva

    This command returns the value of your DS setting - NOT if DS is being observed. I need to know if DS is being observed.
    My fault, I think I never really explained myself clearly, but I do appreciate the ideas!

    I see they added a couple new commands for the clock management.
    Using CLKMGR_GET_START_DAYLIGHTSAVINGS_RULE and CLKMGR_GET_END_DAYLIGHTSAVINGS_RULE
    I can calculate the status of DS. You did find the answer - THANKS!

    It still would be nice to have a single command to know if DS is observed or not.
Sign In or Register to comment.