Announcement

Collapse
No announcement yet.

Days Till Reminder Script Discussion

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

    #46
    Originally posted by Rotech View Post
    OK, let me tell you what I have done, I entered info in the .ini file following the instr. Placed script to script folder and then placed ini file to config. folder. Now what???

    Do I have to make any devices? Will it add any icons?
    Yes you have to create the devices for the amount of entries you have in the ini file.
    Do I have to make an event? and if so what type of event?
    Create an event that will trigger just after midnight to run the script. This will update the devices.
    will the script speak out the count down or is this only visual?
    No. You will have to create your own script / events to use the data.

    Once you have the devices updating properly if your stuck with how to announce the info, come back to us.
    sigpic
    A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
    HomeSeer 3 V 3.0.0.318 with ALEXA (AKA Amazon Echo)
    BL Radar V2.0.217; BLRF V2.0.85.0; HS Touch V3.0.0.1034 X10 V3.0.0.42; PHLocation V3.0.0.38; Zwave V3.0.1.110; X10 V3.0.0.42
    BLBackup V2.0.39;ImperiHome3.0.0.20 All on Windows XP Pro

    Comment


      #47
      the house code and unit # must be the one in the INI file, or it can be chasnged?
      Hector
      ____________________________________
      Win.2003 OS, HS3
      BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
      BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
      MyTrigger,ACRF2,W800,Zwave
      AP800,Honeywell Stat

      Comment


        #48
        Originally posted by Rotech View Post
        the house code and unit # must be the one in the INI file, or it can be chasnged?
        The devices you allocate must be the same as in the ini file, however, you can change the house/unit code in the ini file to whaterver you wish, just make sure that they are not already in use, and do not run the script until that is all set up.
        sigpic
        A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
        HomeSeer 3 V 3.0.0.318 with ALEXA (AKA Amazon Echo)
        BL Radar V2.0.217; BLRF V2.0.85.0; HS Touch V3.0.0.1034 X10 V3.0.0.42; PHLocation V3.0.0.38; Zwave V3.0.1.110; X10 V3.0.0.42
        BLBackup V2.0.39;ImperiHome3.0.0.20 All on Windows XP Pro

        Comment


          #49
          I started off by disabling mother and father day, memorial, all except, day light savings. placed christmas as the first reminder with HC Y and ID 89. Its now saying: 5 days until 77th. what am I doing wrong? Do i have to asign daylite saving to 89 first then christmas 90? I tried that now I have daylite saving begging, then daylite savings ending, Do I have to put a date on this???? This is confussing..........
          Last edited by Rotech; May 26, 2008, 11:14 AM.
          Hector
          ____________________________________
          Win.2003 OS, HS3
          BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
          BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
          MyTrigger,ACRF2,W800,Zwave
          AP800,Honeywell Stat

          Comment


            #50
            Anybody want to comment?
            Hector
            ____________________________________
            Win.2003 OS, HS3
            BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
            BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
            MyTrigger,ACRF2,W800,Zwave
            AP800,Honeywell Stat

            Comment


              #51
              Check the ini file and see if you placed a "year" in the event day.
              12/25 and not 12/25/2008

              If a year is placed after the mm/dd it calulates the difference as it is doing in your case.

              Comment


                #52
                so there are two ways of entering info? also how would you make an event so it can tell you the amount of time remaining?
                Hector
                ____________________________________
                Win.2003 OS, HS3
                BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                MyTrigger,ACRF2,W800,Zwave
                AP800,Honeywell Stat

                Comment


                  #53
                  Hector,

                  to speak the reminders you just need to have HS speak the device string for the device where the reminder is stored, in my case R1, R2 etc up to 8

                  You would use the year when using reminders for birthdays so that it can calculate the age (if you want). e.g. "60 days until Neils 38th Birthday." etc otherwise putting just the month/day would give you "60 Days until Neils Birthday"

                  Neil
                  Running HS PRO V2.5.0.49 & HS Pro V2.5.0.51

                  Comment


                    #54
                    Thanks niel, can you please show me how to insert the device string in the event please... do you have any set up in events? and what do you use them for?
                    Hector
                    ____________________________________
                    Win.2003 OS, HS3
                    BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                    BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                    MyTrigger,ACRF2,W800,Zwave
                    AP800,Honeywell Stat

                    Comment


                      #55
                      I just have HS read the reminders as part of my "good Morning" and "Welcome Home" scripts. You just use the hs.speak command.

                      e.g.
                      Code:
                       
                      dim reminder1 as string = hs.devicestring("r1")
                      hs.speak ("There are" & reminder1)
                      that is how i use it anyway although i'm sure there are many other uses
                      Running HS PRO V2.5.0.49 & HS Pro V2.5.0.51

                      Comment


                        #56
                        Also, make sure you have the date in the correct format.

                        EG: mm/dd or dd/mm depending on your setup.
                        sigpic
                        A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
                        HomeSeer 3 V 3.0.0.318 with ALEXA (AKA Amazon Echo)
                        BL Radar V2.0.217; BLRF V2.0.85.0; HS Touch V3.0.0.1034 X10 V3.0.0.42; PHLocation V3.0.0.38; Zwave V3.0.1.110; X10 V3.0.0.42
                        BLBackup V2.0.39;ImperiHome3.0.0.20 All on Windows XP Pro

                        Comment


                          #57
                          How do you make an event that when it reaches a certain count down number, will trigger a event?
                          Hector
                          ____________________________________
                          Win.2003 OS, HS3
                          BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                          BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                          MyTrigger,ACRF2,W800,Zwave
                          AP800,Honeywell Stat

                          Comment


                            #58
                            Originally posted by Rotech View Post
                            How do you make an event that when it reaches a certain count down number, will trigger a event?
                            Use a script, it's simpler I think. The following is set up for the reminders to have house codes X40 upwards.
                            Code:
                            sub main()
                             
                            for i = 40 to 59
                            if (left(hs.devicestring ("x" & Cstr(i)),3))="Tod" then
                            hs.speak hs.devicestring("x" & Cstr(i))
                            i=i+1
                            end if
                            if (left(hs.devicestring ("x" & Cstr(i)),3))="Tom" then
                            hs.speak hs.devicestring("x" & Cstr(i))
                            i=i+1
                            end if
                             
                            if i>44 then 
                            exit sub
                            end if
                            if (left(hs.devicestring ("x" & Cstr(i+1)),3))>100 then
                            exit sub
                            end if
                             
                            if i=43 then
                            hs.speak "and, There are " & hs.devicestring("x" & Cstr(i))
                            exit sub
                            end if
                             
                             
                            if (left(hs.devicestring ("x" & Cstr(i)),2))<40 then
                            hs.speak "There are " & hs.devicestring("x" & Cstr(i))
                            end if
                            next
                             
                            end sub
                            This script is speaking the reminders, but only if they are dure to occur withing the next 40 days. Instead of HS.Speak you can substitute any HS. command line.
                            sigpic
                            A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
                            HomeSeer 3 V 3.0.0.318 with ALEXA (AKA Amazon Echo)
                            BL Radar V2.0.217; BLRF V2.0.85.0; HS Touch V3.0.0.1034 X10 V3.0.0.42; PHLocation V3.0.0.38; Zwave V3.0.1.110; X10 V3.0.0.42
                            BLBackup V2.0.39;ImperiHome3.0.0.20 All on Windows XP Pro

                            Comment


                              #59
                              Gogs I did not quite catch what you said, so I change the codes in the second line, then replace the "X" for my current letter codes? where do I specify The actual trigger????
                              Hector
                              ____________________________________
                              Win.2003 OS, HS3
                              BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                              BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                              MyTrigger,ACRF2,W800,Zwave
                              AP800,Honeywell Stat

                              Comment


                                #60
                                Originally posted by Rotech View Post
                                Gogs I did not quite catch what you said, so I change the codes in the second line, then replace the "X" for my current letter codes? where do I specify The actual trigger????
                                Yes you were correct to replace my "X" with your housecode, but to do it without understanding what you were doing can be a bit risky, however, it is not a bad way to learn how things work or don't as the case might be. Hope you also changed the Unit Code to suite your setup.

                                As to where to specify the actual trigger, an event in HomeSeer, might be a good place to start.

                                And before you ask, how you trigger the event is completely up to you. It can be a time event, motion detected, or whatever suites you. Just have the event run the script.

                                There are other ways of doing it, but, lets keep it simple just now until you have the grasp of it.

                                Hope your plan is coming together.
                                Last edited by Gogs; May 29, 2008, 07:27 PM.
                                sigpic
                                A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
                                HomeSeer 3 V 3.0.0.318 with ALEXA (AKA Amazon Echo)
                                BL Radar V2.0.217; BLRF V2.0.85.0; HS Touch V3.0.0.1034 X10 V3.0.0.42; PHLocation V3.0.0.38; Zwave V3.0.1.110; X10 V3.0.0.42
                                BLBackup V2.0.39;ImperiHome3.0.0.20 All on Windows XP Pro

                                Comment

                                Working...
                                X