01-25-2018 03:59 PM
1,003 ... 2021222324 ...
tools
  1. raino's Avatar
    Another issue im having is that my home area shows 2 cells. Both are pretty weak. Ill get 1 cell downstairs and 2 up. Llama keeps switching between profiles as a result.
    Is there some way around this?
    Delete the home area, make Llama re-learn it. Set a long learning time window, and walk within the entire home area in that time frame.
    LOTL2 likes this.
    01-03-2014 07:02 PM
  2. jazzmozz's Avatar
    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'
    3) Queue another event
    Queue delay: 1 second
    Conditions
    1) Llama variable: when 'activeappdata' (2) does not have a value of 'yes'
    2) Screen on
    Actions
    Toggle Mobile Data: Off
    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
    2) Queue another event
    Queue delay: 1 second
    No Conditions
    Actions
    1) Toggle Account Sync: Disable
    2) Llama variable: Set Llama variable 'syncwifi' to 'no'
    3) Set Llama variable 'syncwifi' to 'yes'
    4) Queue another event
    Queue delay: 8 seconds
    Conditions
    Wifi Network Disconnected: <Any Wifi Network>
    Actions
    1) Llama variable: Set Llama variable 'syncwifi' to 'no'
    2) Toggle Wifi: Off

    (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!
    01-05-2014 01:32 PM
  3. bveyndhoven's Avatar
    I've had a similar problem with time spans that go over midnight. I resolved it by splitting them. For example:

    Day off = yes
    OR
    day = Monday and time 2300-0000
    day = Tuesday and time 0000-0818

    Posted via Android Central App using Samsung Galaxy S3 Mini
    01-06-2014 02:55 PM
  4. jazzmozz's Avatar
    Thanks for your suggestion, however that's not really the problem. The problem is that today my calendar contains an event called 'vacation'.

    I have set the following 'variable' event:
    Condition:
    Calendar Event: agenda has a calendar event named vacation ( must be all day)
    Action:
    Set Llama Variable 'dayoff' to 'yes'.
    The variable is true because it turns up green in my list of events.

    I then made a 'profile' event:
    Conditions:
    1) When Llama Variable 'dayoff' has a value of 'yes'
    2) Time between 08:15-23:00
    Action:
    Change Profile to Normal

    Because the 'variable' event holds true (it's green), you would say that the same goes for condition 1 of the 'profile' event, but that is not the case. This condition shows up red in my list of events (the second condition is green because it now is 22:17 hrs). How come? Am I missing something? Consequently the 'profile' event does not trigger. I am puzzled!
    01-06-2014 03:20 PM
  5. dfduarte's Avatar
    Did you check if the variable really has the value of yes? In the events tab press the options key on your android and choose Llama variables.
    The condition matches, thats why its green, you need to check if the action was triggered in the variable event.
    01-07-2014 04:56 AM
  6. jazzmozz's Avatar
    Did you check if the variable really has the value of yes? In the events tab press the options key on your android and choose Llama variables.
    The condition matches, thats why its green, you need to check if the action was triggered in the variable event.
    Hmm, that is strange. The variable does not show up in the list of variables. It shows up in my event tab and it's all green (and as I said in the event I created it is red). But when I choose Llama variables in the options key, it isn't listed. Any idea how it may be solved? I also notice that some old variables show up in this variables list. May it have to do with this? Questions....questions....

    Thanks for your suggestions!
    01-07-2014 09:57 AM
  7. BJozi's Avatar
    I think the variable stay in the list and just change state. Wen I loaded in an older/different events profile I had backup I noticed some variables were still there even though there were no rules to set them. You could try clearing them?

    Can some one tell me also in relation to variable. I've noticed in a few different posts people use "when 'variablexxxx' does not have a value of 'yes'. Why not change the variable to no and say when 'variable' has a value of 'no'?
    01-07-2014 11:46 AM
  8. dfduarte's Avatar
    Can some one tell me also in relation to variable. I've noticed in a few different posts people use "when 'variablexxxx' does not have a value of 'yes'. Why not change the variable to no and say when 'variable' has a value of 'no'?
    A variable can have many values and you may create an event for that variable that triggers with all but one value. It all depends on the values you give that variable and how you change it.
    Think of a variable called battery. I can give this variable the value low, charging and full. And on one event i can tell Llama to do something when the battery is not low, like turn on automatic brightness.

    Hmm, that is strange. The variable does not show up in the list of variables. It shows up in my event tab and it's all green (and as I said in the event I created it is red). But when I choose Llama variables in the options key, it isn't listed. Any idea how it may be solved? I also notice that some old variables show up in this variables list. May it have to do with this? Questions....questions....
    Llama events usually trigger once when the condition starts, i never used calendar events but it must be something the way it checks the start of the event in the calendar, or the way it is setup to do.
    Trigger the event actions yourself and see if everything runs as expected. If it does check the condition settings, event start, name, in calendars...
    01-08-2014 05:13 AM
  9. Bruttus1's Avatar
    error
    01-08-2014 02:23 PM
  10. Bruttus1's Avatar
    Hello, apologizing for my bad English . I have a SGSII , 4.1.2 Jelly Bean. I need advice with a llama because I am a complete layman. I need to set :
    1.The areas "Home" named -enabled Wi-Fi networks , turn off mobile data and profile settings for the home with the help of reach of home WiFi network
    2.The areas "Out of Home" mobile data is turned on , turned off WiFi and outdoor profile, including through the range of your home network.
    3.Ride where my car handsfree with BT .
    and / Get in the car , connect to the handsfree kit and change your profile to silent and let the active mobile data.
    b / out of the car , disconnect from HFS, change the profile to the outside , letting active mobile data.
    1 and 2 of my work using telephone poles . Unfortunately, I have a place at home within 2 masts and their range is too large and does not satisfy me .
    Trying to reach domestic use WiFi but do not know how to do it . When WiFi is enabled on the phone and I'm at home , so leaving it works perfectly.
    Unfortunately, when I come home and it should turn on WiFi , so anything and of course nothing other events too .
    Similarly, with " Get in the car " and when it is on BT , to unite with HFS and completes other akce.Když BT is turned on , nothing .
    When I get out of the car so it's ok .
    Foolishly I thought when I leave WiFi and BT monitor that turn themselves without my having to turn by hand.
    Does anyone know how to do it ? I will be grateful for any valuable advice
    For users who have a need to identify areas by domestic or any other named network in Llama.*
    In Settings / Experimental Stuff check Check for WiFi networks.
    In addition, you can specify WiFi Polling Interval to the interval in which the Llama forcing the phone to turn on WiFi for a moment and when it finds a defined network, so it connects.
    WiFi network must be defined in terms of WiFi Networks Connected, where you select the desired network and the actions you select WiFi and WiFi On check.
    On this condition, you can specify additional action is necessary.
    Similarly, certainly the second event to turn off WiFi networks.
    The same process I used for switching on and off BT handsfree kit in the car.
    Switching on and off BT works perfectly but I have a problem with WiFi. Llama threw me an error message referring to a problem with the SGS2, which can not practically resolved, see:
    http://code.google.com/p/android/issues/detail?id=22036&q=Wifi&sort=id&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&start=300
    01-08-2014 02:27 PM
  11. anon(4903109)'s Avatar
    I'm using llama now and I'm getting used to it. It helps that I'm familiar with various programming languages... variables, IF, AND, OR are all too familiar. This program is a must have to any Android imo!

    Note to self: GOTTA LEARN MORE ANDROID INTENTS!! :-)
    01-08-2014 02:56 PM
  12. BJozi's Avatar
    I've been trying to copy some events from kurokirasama and even translate some of his but I keep giving up because I'm not 100% sure whats going on or whats happening. I've resorted to this after trying a few events myself but I (think it through to much probably) keep hitting a problem I can't figure out how to get round it.

    I want both data and wifi to enable/disable as and when on or the other is available. But I can't figure out how to create an event that will automatically disable wifi and enable data for syncing and then switch back when there is a wifi connection. I've tried it with different variables but not quite cracked it yet, although from dfduarte's post I now see I can maybe use variables like is variable is not equal to a value do something, I was using them as either on/off as such. Between jazzmozz and kurokirasama but I keep deleting and leaving it for a day or so but I think I'm missing something? I've no idea what wifi polling is but I'm sure if I understood how to use it it would help me. I also didn't know about defining a wifi network, probably something else I can use?

    How did you guys go about creating your events anyway?
    01-08-2014 04:20 PM
  13. anon(4903109)'s Avatar
    I've been trying to copy some events from kurokirasama and even translate some of his but I keep giving up because I'm not 100% sure whats going on or whats happening. I've resorted to this after trying a few events myself but I (think it through to much probably) keep hitting a problem I can't figure out how to get round it.

    I want both data and wifi to enable/disable as and when on or the other is available. But I can't figure out how to create an event that will automatically disable wifi and enable data for syncing and then switch back when there is a wifi connection. I've tried it with different variables but not quite cracked it yet, although from dfduarte's post I now see I can maybe use variables like is variable is not equal to a value do something, I was using them as either on/off as such. Between jazzmozz and kurokirasama but I keep deleting and leaving it for a day or so but I think I'm missing something? I've no idea what wifi polling is but I'm sure if I understood how to use it it would help me. I also didn't know about defining a wifi network, probably something else I can use?

    How did you guys go about creating your events anyway?
    shouldn't wifi just auto connect to an available network anyway? You can't disable Wifi and then expect llama to know if there's an available wifi connection. The only thing that (I believe) you can do is program the areas in which Wifi connections are available and create a trigger based on those locations instead.

    Unless your phone has Wifi on intermittently or always, it won't know that there is a wifi connection available
    01-08-2014 04:31 PM
  14. dfduarte's Avatar
    That is what WiFi Pooling is for, just like Bruttus1 told a couple of messages back. It checks the available wifi networks from time to time.
    You can use WiFi Pooling and create events based on when WiFi connects to certain wifi networks, but thats not optimal behavior. Llama description is a location aware app, its best used with cell based location.
    I have my home and work locations set, and when i'm in those areas i disable mobile data and enable wifi. When i get near my home/work wifi router it connects because wifi was already activated based on cell tower location. When i'm not in those areas wifi is disabled and mobile data enabled.

    I tried wifi polling for some time but i didn't see any benefits.
    01-09-2014 05:08 AM
  15. raino's Avatar
    I tried wifi polling for some time but i didn't see any benefits.
    It could work when your Home area is excessively large. In my case, for example, it's at least .25 miles in radius, if not more. My WiFi, obviously doesn't get out as far as there, so I wouldn't want my WiFi turning on that far away. I'm going to try WiFi polling and see how well it works.
    01-09-2014 01:04 PM
  16. Jonathan Best's Avatar
    Hi all,

    I have an issue i'm trying to figure out and am hoping you guys may have some new ideas how to accomplish it. I'm looking for a way to make an event fire but then not fire again for say 6 hours or more.....However the condition trigger is set to a location and i'm not there at regular times so the time of day option will not work.

    I am using a locale plugin with llama in order to send an sms in certain situations. For example when I enter a certain area i'd like it to sms my partner to say i'd arrived safe. It is currently a bit hit and miss due to poor phone signal

    Ideally I would like the event to be:

    Conditions

    Enter area "Football ground"
    Signal Strength "Strength above -95dBm" (to prevent attempts with no signal)

    Action

    Locale Plugin sends sms

    Now this is great except it will send the sms everytime the phones signal fluctuates. I need the signal strength condition as without it the sms often fails. How can I adapt this event so that it will fire once but then not fire again for many hours??
    01-13-2014 09:54 AM
  17. dfduarte's Avatar
    I think this would work.

    Conditions
    Enter area "Football ground"
    Signal Strength "Strength above -95dBm" (to prevent attempts with no signal)
    variable delay120 = FALSE
    Action
    Locale Plugin sends sms
    variable set delay120m TRUE
    queue another event
    Queue delay 120 minutes
    Action
    variable set delay120m FALSE

    Edit: let me correct myself
    You'd need to manually set the variable to FALSE or the event would never trigger. But thats just a one time thing.
    You could change the condition to
    variable delay120 is not TRUE
    This way a blank or FALSE variable name would trigger the event. Would not trigger after the action changes the variable to TRUE, and could be fired again after the delayed event.
    Jonathan Best likes this.
    01-14-2014 06:06 AM
  18. jazzmozz's Avatar
    I seem to be having problems with my Area location ever since I switched from my 3G contract to a 4G (LTE) contract. Before switching Llama picked the Area accurately, but ever since I'm on a 4G contract it is hit and miss. Sometimes it identifies the area but most of the times not. And if it is identified correctly I notice a lot of entering and leaving the area in the events list. Anybody knows what is going on here?
    01-22-2014 04:15 PM
  19. BJozi's Avatar
    My best guess is that your change to 4G means there are more cell towers, I would try re-learning your area and see how it behaves.
    01-22-2014 04:45 PM
  20. WTanksleyJr's Avatar
    I found Llama yesterday and already have 10 events defined -- Llama does SO many things I've wanted to get done. There are two things I'd like to do but can't figure out.

    First, I'd like to be able to control my T-Mobile Wifi Calling. Most places I don't use it, but my house has JUST BARELY enough signal to keep WiFi calling from activating, but JUST BARELY too little to allow coherent conversation. (Pathetic.) I'm wondering if anyone's figured out anything about turning it on, off, or even just popping up the intent that would let me turn it on and off (it's buried deep in the settings). Another option MIGHT be to turn mobile cell connectivity off, but I think Airplane mode is the only way to do that...

    Second, is there any way to set a Condition on the ring volume or the sound profile? I'd like to replace the app "Shush!", which detects when you've turned your phone's ring volume all the way down and instantly pops up a dialog widget that asks you when you want the volume to be restored. It's very convenient (I never have to worry about remembering to turn my phone back on), except that the widget's user interface is completely custom and utterly worthless. I have another app that has a fantastic user interface but doesn't trigger on the volume button. If Llama could set a condition on the volume going to zero, I could launch that app and finally get rid of Shush!.
    01-22-2014 04:56 PM
  21. jazzmozz's Avatar
    My best guess is that your change to 4G means there are more cell towers, I would try re-learning your area and see how it behaves.
    Thanks for your reply and suggestion, but I tried that already. Forgot to mention it in my post. My bad.
    01-22-2014 05:00 PM
  22. raino's Avatar
    Second, is there any way to set a Condition on the ring volume or the sound profile? I'd like to replace the app "Shush!", which detects when you've turned your phone's ring volume all the way down and instantly pops up a dialog widget that asks you when you want the volume to be restored. It's very convenient (I never have to worry about remembering to turn my phone back on), except that the widget's user interface is completely custom and utterly worthless. I have another app that has a fantastic user interface but doesn't trigger on the volume button. If Llama could set a condition on the volume going to zero, I could launch that app and finally get rid of Shush!.
    Play around with the settings under Settings>Sound Profile Settings, specifically, the first and the third settings.
    01-25-2014 10:14 PM
  23. bveyndhoven's Avatar
    Hi there,

    Another question: I figured out how to use Llama tones (or at least the concept). I've currently configured one to use in Handcent SMS.

    Problem is: when I'm at work, I would still like to have a notification sound when I receive an SMS message, but I want it to be a little more discrete. So the work profile holds a lower notification volume and the Llama tone is configured on a more discrete ringtone in my work profile (the normal one in the other profiles). In Handcent, I've assigned the Llama tone as notification sound.

    But now the ringtone isn't played at all (while the notification volume still is at 2). Anybody's got ideas?

    By the way: I use a Samsung Galaxy S3 Mini.
    01-28-2014 08:53 AM
  24. C Robson's Avatar
    Hi there.
    I have almost the same setup thats in the first post in this thread. It works from time to time but im getting an error that says "failed to que another event. There is already an event named data on"
    This is very irritating and i dont know what to do..so any ideas how to fix this`?

    Heres the setup :

    Event Name: Screen Off

    Advanced:
    1. Delay Event
    2. Delay Minutes : 1 minutes
    3. Cancel Delay if False
    4. Repeating Event
    5. Repeat Every 10 Minutes

    Conditions:
    1. Screen Off

    Action:
    1. Queue Another Event (enter these details for the Queue Event):
    -->Event Name: Data On
    --> Queue Delay: 9 Minutes
    --> Actions: Toggle Mobile Data On
    2. Toggle Mobile Data Off and toggle wifi off


    Event Name: Screen On
    Conditions:
    1. Screen On

    Actions:
    2. Toggle Mobile Data On and toggle wifi on

    My phone is an oppo find 5 with android 4.2.2 (color os 1.0.2i)
    01-28-2014 01:40 PM
  25. raino's Avatar
    im getting an error that says "failed to que another event. There is already an event named data on"
    This usually means that you have another event (or queued, sub-event) by the same name. You'll need to change the name for one of them.
    01-28-2014 03:18 PM
1,003 ... 2021222324 ...
LINK TO POST COPIED TO CLIPBOARD