VoxCommando
Help and Support (Using VoxCommando) => Other Plugins => Topic started by: keithj69 on May 19, 2014, 04:17:28 PM
-
My goal is to use my ggcal to use as a daily alarm clock based on my calendar. I have used the tablet time example succesfully already but i am trying to figure out the ggcal stuff.
I have a calendar set just for home auto. I want it to fire off monday through friday based on the calendar entry (morning news). Now where some logic comes in....if another entry that says pto is present, that day will not fire off morning news and let me sleep.
I have tried searching, but i may not be using the correct phrases. any direction would be appreciated.
-
Assuming PTO means "paid time off" and is present as a calendar event, then I think you probably want your event-triggered command to do something using
GgCal.GetToday (provide feed that contains PTO)
Results.MatchConcat (to get all the event matches from that feed into {LastResult}
and then a logic block:
if A contains B: {LastResult} , SomeDistinctStringFromyourPtoEvent
then : let me Snooze
else: wake me up
-
Two additional things:
1. I have just discovered there's a bug with ggcal.GetToday, so I recommend you use ggcal.GetDay instead: http://voxcommando.com/mediawiki/index.php?title=Plugin_GgCal#GetDay
0 = today.
2. If: let me snooze/Else: wake me up should suffice if the only 2 events in your calendar are "pto" and "morning news".
However, if you plan on having more than those two events in the calendar, you can use 2 If blocks instead:
If: {LastResult} contains pto > VC.StopMacro
If: {1} contains morning news > Wake Up!
-
I have tried searching, but i may not be using the correct phrases. any direction would be appreciated.
The custom Google Search field at the top of the wiki home page searches both the wiki and the forum, so searching for "logic" or whatever from that page may be better than trying to search in the forum directly. http://voxcommando.com/mediawiki/index.php?title=Main_Page
-
thanks for the responses. I think i am going to shelve this idea for a bit. I am going through the alarm clock posts to see what others are doing. I think i bit off more than i can chew on this idea and will get back to it when i have more experience :bonk. thanks
-
I can't give up that easily. I went through the alarm clock thread and James mentioned using udpsender, ( http://voxcommando.com/forum/index.php?topic=653.msg4655#msg4655 ).
I have a many more questions and it involves ggcal, but if this is the wrong spot and want me to move to the support sub-forum let me know. Have to go back to work and swap out power supplies on servers, so i might not get back tonight.
-
I recommend you stick with the ggCal solution. Take more time if you need it to get familiar with the program. Let us know if there is anything specific that you need help with.
-
I can't give up that easily. I went through the alarm clock thread and James mentioned using udpsender, ( http://voxcommando.com/forum/index.php?topic=653.msg4655#msg4655 ).
Also, I say this a lot on the forum but it bears repeating. You should be cautious about taking advice from really old threads. VC has developed *a lot* in the past four years.
wiki entry on GgCal: http://voxcommando.com/mediawiki/index.php?title=Plugin_GgCal_Guide
wiki entry on logic blocks: http://voxcommando.com/mediawiki/index.php?title=Logic_Block
If you'd like us to post the xml for our suggested ggGal solution because the pseudo-code we gave wasn't clear enough, let us know. Some folks feel that spoils their fun. :)