Announcement

Collapse
No announcement yet.

Changes coming to BLGData - Build 3.0.0.0

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    I could look into adding a new scripting call (GetActiveCalendarEvents) that would return all of the events where the current date/time is within the start and end times for the event
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #17
      Great, thanks Blade, I think it will do it.

      Originally posted by Blade View Post
      I could look into adding a new scripting call (GetActiveCalendarEvents) that would return all of the events where the current date/time is within the start and end times for the event

      Comment


        #18
        Just an update:

        1. I believe I have gotten the plugin to work for multiple users now.
        2. Added Contacts and Tasks back into the plugin
        3. Added a new scripting function (GetActiveCalendarEvents)

        I am trying to get it to work on linux but not having any luck yet
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment


          #19
          I have released BLGData 3.0.0.0
          Let me know if there are any issues
          Cheers,
          Bob
          Web site | Help Desk | Feature Requests | Message Board

          Comment


            #20
            Thanks Blade, I will test it soon. I will keep you posted.

            Aldo

            Comment


              #21
              Hi Blade,
              It worked without issues. It looks great.

              Thanks,
              Aldo

              Comment


                #22
                Originally posted by aldo View Post
                Hi Blade,
                It worked without issues. It looks great.

                Thanks,
                Aldo

                Same here . Thanks!!

                Just a question:

                Since i didnt use the ''task'' option before. Is there a way we can program/automate something in hs3 with the ''task'' ? not sure to understand.

                Comment


                  #23
                  Hi Blade,
                  I would like to turn off the virtual device that I created if there is no active event, does your function return any status code so I can turn it off or on?
                  Code:
                          allEvents = hs.PluginFunction("BLGData", "", "GetActiveCalendarEvents", new Object(){myemail,tCalendar})
                          msg="<table>"
                  	For Each ev As Object In allEvents
                             msg = msg & "<tr><td>" & ev.StartDate & " " & ev.StartTime & " - " & ev.Name & "</td></tr>"
                  	Next
                          msg=msg & "</table>"
                          if msg="" then
                  		msg="No Events Scheduled"
                  		'hs.writelog("Info", "Event" & ev.Name)   
                  		hs.SetDeviceValueByRef(tDevice, 0, False) ' Set to off 
                  		else
                  		hs.SetDeviceValueByRef(tDevice, 100, True) ' Set to on    
                  		hs.SetDeviceString(tDevice, msg.Trim, true)
                  		end if

                  Comment


                    #24
                    Instead of this:

                    Code:
                    if msg="" then
                    Try this and see if it works

                    Code:
                    if allEvents.Length = 0 then
                    Cheers,
                    Bob
                    Web site | Help Desk | Feature Requests | Message Board

                    Comment


                      #25
                      Thank you, it worked like a charm.

                      Aldo

                      Originally posted by Blade View Post
                      Instead of this:

                      Code:
                      if msg="" then
                      Try this and see if it works

                      Code:
                      if allEvents.Length = 0 then

                      Comment


                        #26
                        You are welcome
                        Cheers,
                        Bob
                        Web site | Help Desk | Feature Requests | Message Board

                        Comment


                          #27
                          Status: feature request

                          Dear Blade,

                          I was wondering where i can find the status of my feature request, i posted a while ago.

                          The request was to make use of the location field from the Google calendar, so that i can trigger on a phrase in the location field.

                          Comment


                            #28
                            Originally posted by michaeldecharon View Post
                            Dear Blade,

                            I was wondering where i can find the status of my feature request, i posted a while ago.

                            The request was to make use of the location field from the Google calendar, so that i can trigger on a phrase in the location field.
                            I must have lost that one - I do not see it

                            So you want the location field to work like the trigger phrase for the name works?
                            Cheers,
                            Bob
                            Web site | Help Desk | Feature Requests | Message Board

                            Comment


                              #29
                              Originally posted by Blade View Post
                              I must have lost that one - I do not see it

                              So you want the location field to work like the trigger phrase for the name works?

                              Comment


                                #30
                                Try 3.0.6 in the updater and let me know
                                Cheers,
                                Bob
                                Web site | Help Desk | Feature Requests | Message Board

                                Comment

                                Working...
                                X