Hi there,
I have installed Llama some days ago and figuring out what it can do for me. I have read this whole thread and 'borrowed' some of the events created by kurokirasama (thanks!
) and adapted them to my needs. What I would like is to have my phone imitating Juice Defender scripts in such way that the phone will sync every 5 (wifi) or 6 (data plan) minutes. I have created the following events (among others). Will they work?
Sync program data on data plan
Advanced -> Repeat Event: yes; Repeat Interval: 6 minutes
Conditions
1) Time Between: 07:00 - 23:00
2) OR (match any): when 'wifizone'
(1) does not have a value of 'yes' or when your phone disconnects from <Any WiFi network>
3) AND (match all): when using battery and when screen turns off
(3)
Actions
1) Toggle Mobile Data: On
2) Toggle Account Sync: Enable Sync, Request Update
3) Queue another event
Queue delay: 1 minute
No Conditions
Actions
1) Toggle Account Sync: Disable
2) Llama Variable: Set Llama variable 'syncdata' (see under (2)) to 'no'
1) Llama variable: when 'activeappdata' (2) does not have a value of 'yes'
4) Toggle Wifi: Off (if not connected)
Sync program data on Wifi
Advanced -> Repeat Event: yes; Repeat Interval: 5 minutes
Conditions
1) Time Between: 07:00 - 23:00
2) OR (match any): when 'wifizone'
(1) has a value of 'yes' or when your phone connects to <Any WiFi network>
3) AND (match all): when using battery and when screen turns off
(3)
Actions
1) Toggle Wifi: On
2) Queue another event
Queue delay: 8 seconds
Conditions
Wifi Network Connected: <Any Wifi Network>
Actions
1) Toggle Account Sync: Enable Sync, Request Update
1) Toggle Account Sync: Disable
2) Llama variable: Set Llama variable 'syncwifi' to 'no'
3) Set Llama variable 'syncwifi' to 'yes'
Wifi Network Disconnected: <Any Wifi Network>
1) Llama variable: Set Llama variable 'syncwifi' to 'no'
(1) 'Wifizone' is defined as the location of my Areas
(2) 'activeappdata' is defined as when apps x, y, OR z are active and the screen is on and 'wifizone' value is 'yes', then Toggle Mobile Data: On, and another event is queued with conditions that the apps x, y AND z are not active and the actions are that 'activeappdata' is set to 'no' and another event is queued with conditions when 'activeappdata' does not have a value of 'yes', Screen is on, Llama variable 'syncdata' does not have a value of 'yes', then the action is Toggle Mobile Data: Off.
(3) I also have created an event what to do when the phone is either on the charger or the screen is on.
Calendar event and profile
Another thing is that I want to sleep in every part time day and during my vacations. I have created a Silence Profile. I have also created a variable as follows:
Condition
Calendar event: Event name contains 'part time day|vacation' (only all day events)
Action
Llama Variable: Set Llama variable 'dayoff' to 'yes'
I then made the following events:
1) Profile night vacation
Condition
1) Time Between 23:00 - 08:15
2) Llama Variable: When 'dayoff' has a value of 'yes'
Action
Change profile: Quiet
and
2) Profile night working days
Condition
1) Time Between 23:00 - 07:00
2) Llama Variable: When 'dayoff' does not have a value of 'yes'
Action
Change profile: Quiet
and
3) Profile day vacation
Condition
1) Time Between 08:15 - 23:00
2) Llama Variable: When 'dayoff' has a value of 'yes'
Action
Change profile: Normal
and
4) Profile day working day
Condition
1) Time Between 07:00 - 23:00
2) Llama Variable: When 'dayoff' does not have a value of 'yes'
Action
Change profile: Normal
The problem is that even when the word 'vacation' (all day event) occurs in my agenda today and the created variable 'dayoff' is showing all green in my list of events (I assume thus indicating that the variable is true/yes), the events 1 and 3 do not trigger. Instead events 2 and 4 trigger. What am I doing wrong?
Detailed suggestions are very welcome. Thank you for taking the time to send a reply. Very much appreciated!