01-25-2018 03:59 PM
1,003 ... 2728293031 ...
tools
  1. buggy_droid's Avatar
    Ahhhh So I can just hop into Llama, set it to silent and hit the padlock to ensure it stays silent. Thank you for that.

    Are there any nifty ways to use Llama to set a temporary sound profile that is on a timer? I used to use the Silent Time app's Quick Quiet option which is nice but I am looking to consolidate my apps.
    In all of my regular sound profile events (work, home, out, sleep), I have an additional condition: when Llama variable "profile lock" has a value of 0. Don't confuse this with the lock you manually place on the current profile. This is just a variable named "profile lock". Then, I have an event that put my phone in silent profile and set "profile lock" variable to 1 at the beginning of calendar events "meeting". Another event in Llama reset "profile lock" variable to 0 at the end of scheduled "meeting" events. Changing "profile lock" value to 0 will trigger one of my regular sound profile events and put the phone to an appropriate profile for the time and place.

    Instead of using calendar events, you can use whatever the conditions you want to toggle "profile lock" between 0 and 1. You keep your temp profile as long as "profile lock" is 1, quickly go back to a regular profile when "profile lock" is 0.
    10-02-2014 09:15 PM
  2. buggy_droid's Avatar
    I am trying to use llama to control whether or not my alarm goes off depending on my location but I'm not sure how to go about it.

    I basically have alarms for tasks I have to do at set times when I'm at work but I don't want it going off if I'm not in work. My old phone had a location setting in the built in alarm clock which was great but my new one doesn't have it.

    Thanks for reading
    Llama can make noise & repeat it with whatever the conditions, time, location, etc.
    You can use that in place of your alarm?
    10-02-2014 09:35 PM
  3. buggy_droid's Avatar
    Hi there,
    started using Llama since one week which gives me better results than Profile Scheduler before, but some questions:

    Recent problem with bluetooth connections to car from Android 4.2 on (> Huawei P6 / car Opel Zafira tourer with BT)
    Before was able to connect directly , now I need to do some tricks. This BT problem is discussed on many fora but until now seen no real solutions.
    When bluetooth is on my car will recognize a bluetooth signal but not make a connection. If I then switch off BT en then switch on BT it makes a connection. Can this be done automatically with Llame ?
    When leaving 'home' or 'work' bluetooth is switched on on my Phone (after screen on) but I want to have a BT off/ BT on sequence to connect with my car.
    Can anyone help me on this ?
    grtz,
    Dirk
    I don't use Llama to control Bluetooth, so I don't know if this really work.
    According to the guide, Llama's Bluetooth action has two options;
    1. Llama turns Bluetooth on briefly then turn it back off if not connected to another device.
    2. Llama turns off Bluetooth if not connected to another device.

    It may sound stupid, but you can repeat the two actions above 24/7 at a desired frequency, or activate them when and where you are likely to be in your car. It should turn Bluetooth off then on if not connected, and keep it on as long as it's connected.
    dirkc likes this.
    10-02-2014 09:52 PM
  4. shinra00's Avatar
    Thank you very much for the info and tips buggy_droid! will try to create my Event and report back how it goes. thank you for your time!
    10-03-2014 07:51 AM
  5. happy_bunny's Avatar
    Thanks for that, I have done it that way but I was hoping to get it to take control of the existing alarm functionality in order to be able to swipe dismiss or snooze without having to unlock the phone.

    I was looking at the android intent commands to see if I could get it to toggle the alarm on and off based on the location but it kept coming up with a failed message so I must have done something wrong

    Thanks anyway ☺
    10-03-2014 08:11 AM
  6. buggy_droid's Avatar
    Thanks for that, I have done it that way but I was hoping to get it to take control of the existing alarm functionality in order to be able to swipe dismiss or snooze without having to unlock the phone.

    I was looking at the android intent commands to see if I could get it to toggle the alarm on and off based on the location but it kept coming up with a failed message so I must have done something wrong

    Thanks anyway ☺
    Four options off the top of my head.
    1. Use Greenify to hibernate/unhibernate your alarm app. Although I am doubtful that apps with scheduled tasks are hibernated, for a good reason.
    2. If hibernating doesn't work, find an app that can freeze/defrost the alarm app by a shortcut or by a locale plugin, which Llama uses.
    3. Find an alarm app that you can use on lock screen AND Llama can enable/disable by a shortcut or by a locale plugin.
    4. If you can access the notification drawer from the lock screen, use Llama as an alarm and have it run another event at the same time that stop the noise with your confirmation in advanced settings. The event will create a notification you touch to stop the noise.

    Wait. Come to think of it, I thought Llama gives you a notification to stop when you run an event that makes noise. If that's the case the only thing you need is a lockscreen app that gives you access to the notification drawer.
    10-04-2014 11:22 AM
  7. shinra00's Avatar
    Hey everyone how are you?
    Can someone please help me? I´me getting so many errors inside Llama that i think i´m wasting more battery than saving.

    I tried to make 1 event to save battery, which is turning wifi on when in work or home area and if not connected to any wifi, it will turn it off after 1 min, repeating this event every 5min. What i have is:

    advanced: Repeat event: 5 min

    Conditions:
    or (match any): Enter Area: home, office
    airplane more: disable
    wifi disconnected: any.

    Actions:
    toggle wifi: On
    Queue another event:
    queue delay: 1min
    conditions: wifi network disconnected: any wifi network
    Actions: toggle wifi: Off

    And the errors (yes multiple errors) that i'm having is:
    (Llama-error:Triggers list contain an event "wifi On" that doesn't actually exist ) <- this line appears 10 times repeatedly in the same popup when inside Llama.

    Thank you in advance for your time
    10-05-2014 12:32 PM
  8. Neurophile's Avatar
    I love Llama, and will post a list of my events soon, but right now I just have a burning question: how to handle dead zones?

    I work several jobs, and two of them have large dead zones in their workplaces. I've got different settings for each job, but when I hit a dead zone, Llama thinks I'm no longer at that job. The dead spot registers as a cell tower on Llama, so I can add it to a workplace, but then when I go to another dead zone at the other job (or any other dead zone, for that matter) it thinks I've gone back to the first job.

    How would you all handle this?
    10-08-2014 06:15 AM
  9. buggy_droid's Avatar
    Hey everyone how are you?
    Can someone please help me? I´me getting so many errors inside Llama that i think i´m wasting more battery than saving.

    I tried to make 1 event to save battery, which is turning wifi on when in work or home area and if not connected to any wifi, it will turn it off after 1 min, repeating this event every 5min. What i have is:

    advanced: Repeat event: 5 min

    Conditions:
    or (match any): Enter Area: home, office
    airplane more: disable
    wifi disconnected: any.

    Actions:
    toggle wifi: On
    Queue another event:
    queue delay: 1min
    conditions: wifi network disconnected: any wifi network
    Actions: toggle wifi: Off

    And the errors (yes multiple errors) that i'm having is:
    (Llama-error:Triggers list contain an event "wifi On" that doesn't actually exist ) <- this line appears 10 times repeatedly in the same popup when inside Llama.

    Thank you in advance for your time
    I've never seen that error. The way it sounds like is that you used to have an event called "wifi on" which you already deleted, but you still have an event that calls a shortcut to the deleted "wifi on" event. I suggest you write to the developer and ask what the error message means.
    shinra00 likes this.
    10-09-2014 04:34 AM
  10. buggy_droid's Avatar
    I love Llama, and will post a list of my events soon, but right now I just have a burning question: how to handle dead zones?

    I work several jobs, and two of them have large dead zones in their workplaces. I've got different settings for each job, but when I hit a dead zone, Llama thinks I'm no longer at that job. The dead spot registers as a cell tower on Llama, so I can add it to a workplace, but then when I go to another dead zone at the other job (or any other dead zone, for that matter) it thinks I've gone back to the first job.

    How would you all handle this?
    What happens if you "ignore cell" your dead spot instead of "add to area"?
    10-09-2014 04:39 AM
  11. kurokirasama's Avatar
    I have a bunch of things but here are some that may of interest. The other ones I use are probably not for others....
    1) I have a app notification trigger in llama that when I have am in my car (variable set to know I am in my car from other events) my text messages are read to me when I recieve them so that I do not need to use my phone. I am also further customizing that code (work in progress) so that it will ask me if I'd like to respond and wait for me to speak to it and send the text. It is written in python. It is so simple to do these type of things with SL4A. I took 6 lines of code.
    2) I find that FB eats my battery alive. So I always keep it frozen and unfreeze it when I use it. Now I have two events:
    a) llama does a foreground application trigger so that when I unfreeze and launch FB, It sets a queued trigger than when my screen goes off, it refreezes it automatically (with a 10 minute delay)
    b) I created another event that does the unfreezing of FB for me via a shell scripts through SL4A and launches it. It unfreezes FB and then sets a variable so my trigger above also knows it was unfrozen. I created a shortcut on my desktop to use to open FB through this event.
    3) I installed rsync on my phone and nightly I sync my phone with my network NAS while I sleep (@home wifi, @in night mode, @while charging). No more risk of lost data/pictures/or this work. I love this. I have had SD cards go bad. Llama calls SL4A and runs a shell script I created. Obviously there are a few pre-cursors one needs to do to actually get this to work. you obviously need a network nas and install rsync and do a ssh key exchange between android and the linux based NAS.

    These are just some of hte things. There are SO many things SL4A brings to the table. If someone wants more info about any of these, I can post some basics or contents of my shell scripts/python scripts.
    Hi,

    Could you share your script and give some insights on how to make to read who is calling?

    BR,
    10-09-2014 07:51 AM
  12. Corey Kronengold's Avatar
    Wondering how best to troubleshoot a simple event trigger that doesn't seem to be working.

    I want my wifi on at home, all the time. So I have a straight up rule "Enter Home, WiFi on."
    But when I get out of the car (disconnected from bluetooth device), and come home, the wifi doesn't turn on. When I test the trigger, though, it turns on immediately.

    So, how can I figure out what the problem is?
    10-09-2014 01:08 PM
  13. Corey Kronengold's Avatar
    I'm also unclear as to what the difference is between Running and App and Running a Shortcut.

    When I get in the car and connect via bluetooth, I want to load a music playlist in Google Music and launch Google Maps. However, Maps is only listed in the Run App list, and Music Playlists are only in the shortcuts.

    At the moment, when I get in the car and connect via bluetooth, it launches Google Music and Maps in running in the background. I'd like it to work the other way, but don't see how.

    Thanks much!
    10-09-2014 01:21 PM
  14. kurokirasama's Avatar
    Wondering how best to troubleshoot a simple event trigger that doesn't seem to be working.

    I want my wifi on at home, all the time. So I have a straight up rule "Enter Home, WiFi on."
    But when I get out of the car (disconnected from bluetooth device), and come home, the wifi doesn't turn on. When I test the trigger, though, it turns on immediately.

    So, how can I figure out what the problem is?
    Post your events to see what's going on.
    10-09-2014 01:48 PM
  15. kurokirasama's Avatar
    I'm also unclear as to what the difference is between Running and App and Running a Shortcut.

    When I get in the car and connect via bluetooth, I want to load a music playlist in Google Music and launch Google Maps. However, Maps is only listed in the Run App list, and Music Playlists are only in the shortcuts.

    At the moment, when I get in the car and connect via bluetooth, it launches Google Music and Maps in running in the background. I'd like it to work the other way, but don't see how.

    Thanks much!
    Running an app will do exactly that, and therefore it can run any so. On the other hand, a shortcut is only available for some app and they execute some specific action.
    10-09-2014 01:51 PM
  16. Corey Kronengold's Avatar
    As you can see at the bottom (its been a while), the wifi didn't turn on, even though I was out of the car and in the house. Also, I've been home this entire time, so I'm not sure why Llama keeps thinking I've left. Guessing I'm not getting the same masts throughout my house. But I add all of them -- maybe thats the problem?

    Llama - Who's Using It and Any Good Examples?-llamascreen.jpg

    Post your events to see what's going on.
    10-09-2014 02:36 PM
  17. Corey Kronengold's Avatar
    Running an app will do exactly that, and therefore it can run any so. On the other hand, a shortcut is only available for some app and they execute some specific action.
    So what would the rule look like to launch Google Maps when I get in the car?
    10-09-2014 02:39 PM
  18. kurokirasama's Avatar
    So what would the rule look like to launch Google Maps when I get in the car?
    If I understand correctly what you want to do, when you get in the car, you should turn on gps, turn your screen on, increment the times it stays on and lunch maps (as an app not as a shortcut). You can start your music app by just executing the play action. Make sure to create the event that returns everything to normal when your leave the car.
    10-09-2014 05:06 PM
  19. kurokirasama's Avatar
    As you can see at the bottom (its been a while), the wifi didn't turn on, even though I was out of the car and in the house. Also, I've been home this entire time, so I'm not sure why Llama keeps thinking I've left. Guessing I'm not getting the same masts throughout my house. But I add all of them -- maybe thats the problem?

    Click image for larger version. 

Name:	llamascreen.jpg 
Views:	43 
Size:	293.2 KB 
ID:	140339
    I need to see the details of your events. In the meantime, you should know that cell polling is done every five minutes (by default), so when you get at home, Llama might take five minutes to notice.
    10-09-2014 05:16 PM
  20. Corey Kronengold's Avatar
    I need to see the details of your events. In the meantime, you should know that cell polling is done every five minutes (by default), so when you get at home, Llama might take five minutes to notice.
    Ok, will give the wifi more time and see what happens.

    Llama - Who's Using It and Any Good Examples?-rules.jpg

    Should I add as many cell masts as possible? What would help Llama realize that I'm still at home? I have not left my house all afternoon (work from home).

    Llama - Who's Using It and Any Good Examples?-llamascreen.jpg

    Llama - Who's Using It and Any Good Examples?-cells.jpg
    Attached Thumbnails Llama - Who's Using It and Any Good Examples?-events.jpg  
    10-09-2014 05:46 PM
  21. buggy_droid's Avatar
    I'd guess that you hit a mast that you didn't register as "home" when Llama says you "Left home". You can easily confirm that by tapping the "recent" tab and finding which area you were in at 02:20:04 PM ("unknown", most likely).
    Also, your "WIFi on at home" event is working. See the second one from the top in your event history. I think your wifi is turned on ok when you come home, but gets turned off every time you hit an unknown mast while at home, therefore Llama thinks you left home.
    I see you use 4G (LTE?). You should know that in LTE system cell ID's are recycled through the network, so the cell ID's you get in any place is not unique to that particular location. This can be (one of ) the reason Llama thinks you are not home when you actually are. If possible, turn 4G off when Llama learns area, and keep it off whenever you want Llama to correctly identify your location.

    As you can see at the bottom (its been a while), the wifi didn't turn on, even though I was out of the car and in the house. Also, I've been home this entire time, so I'm not sure why Llama keeps thinking I've left. Guessing I'm not getting the same masts throughout my house. But I add all of them -- maybe thats the problem?

    Click image for larger version. 

Name:	llamascreen.jpg 
Views:	43 
Size:	293.2 KB 
ID:	140339
    10-09-2014 05:46 PM
  22. buggy_droid's Avatar
    So what would the rule look like to launch Google Maps when I get in the car?
    So, what you want is Maps showing on the screen, right?
    Just make sure the event (or the action) that open Maps is the last one to fire by giving it a 5 - 10 seconds delay.

    EDIT
    In your "when in car" event, remove the action running Maps. Add an action "queue another event". In the queued event, set 5 to 10 second wait time before opening Maps.
    10-09-2014 05:57 PM
  23. kurokirasama's Avatar
    I'd guess that you hit a mast that you didn't register as "home" when Llama says you "Left home". You can easily confirm that by tapping the "recent" tab and finding which area you were in at 02:20:04 PM ("unknown", most likely).
    Also, your "WIFi on at home" event is working. See the second one from the top in your event history. I think your wifi is turned on ok when you come home, but gets turned off every time you hit an unknown mast while at home, therefore Llama thinks you left home.
    I see you use 4G (LTE?). You should know that in LTE system cell ID's are recycled through the network, so the cell ID's you get in any place is not unique to that particular location. This can be (one of ) the reason Llama thinks you are not home when you actually are. If possible, turn 4G off when Llama learns area, and keep it off whenever you want Llama to correctly identify your location.
    After seen your last recent events screenshot, I agree with buggy_droid.

    Enviado desde mi C1904 mediante Tapatalk
    10-09-2014 08:37 PM
  24. kurokirasama's Avatar
    (rooted devices only!) Training my Llama to learn shell, python, and intents....

    Requirements: llama, SL4A app, and Python language for SL4A

    I thought i'd share some other interesting things (geeky) I do with llama that involve llama and sl4a. This will be over many people's heads but some may find it door opening. The ability to send variables to llama directly opens the door to extending llama far beyond its current state.

    In talking to the developer he gave me a llama intent that can be executed to set a llama variable outside of the llama program (from the root command line for example). This is entirely unsupported and undocumented btw. This means that I can now execute use OS commands to check phone conditions and report that condition back to llama for action. One example that I use is this:

    When I connect to my work wifi, I want to ensure that my openVPN is always ON when im connected. So I wrote a llama event to do just that:
    Code:
    When ( phone is connected to "work wifi" AND llama variable LOC = work AND screen turns on )  
        Run a shortcut OPENVPN.
    This worked great but I found that it was annoyingly reconnecting everytime my screen turns on. If removed the screen on, then it would only connect when I initially connected to my work wifi and if it became disconnected throughout the day (happens a lot) then that sucked.

    So I changed my action to:
    Code:
    Condition When ( phone is connected to "work wifi" AND llama variable LOC = work AND screen turns on )  
        Run a locale plugin: SL4A: chk-vpn.py
        QUEUE and event named "VPN Fire"         
             VPNFire:  (delay 7 seconds) Conditions When llama variable 'VPNConnected" has a value of 'False' 
                       Run a shortcut OPENVPN.
                       Set llama variable VPNConnected to 'True'
    In the SL4A app, I have the script chk-vpn.py (a python script) check my home network is visable and set a llama variable depending on its status:

    script: chk-vpn.py
    Code:
    import socket
    import subprocess
    #function to do a port check on a particular address.  very lightweight.
    def chk_server(address,port):
        s = socket.socket()
        s.settimeout(4)
        try:
            s.connect((address,port))
            return True
        except socket.error, e:
            return False
    #modify to any open port on your router and your routers internal address
    check = chk_server("192.168.1.1", 80)
    script = "/sdcard/sl4a/scripts/llamavar.sh"
    var = "VPNConnected"
    val = str(check)
    subprocess.call(["/system/bin/sh" , script, var , val ])
    shell script: "/sdcard/sl4a/scripts/llamavar.sh" (referenced by above program)
    Code:
    #!/system/bin/sh
    /system/xbin/su -c "am broadcast -a com.kebab.Llama.SetLlamaVariable --es VariableName $1 --es VariableValue $2 com.kebab.Llama/com.kebab.Llama.ExportedReceiver"
    Now my 2 scripts will check if VPN is in fact connected and let llama know.
    Hi,

    did you get how to send llama variables values to the scripts?
    10-09-2014 08:57 PM
  25. tarantulapg's Avatar
    I have one question for you guys.
    How to set LLama profile that when Im home my phone conects to WiFi network but if i go out of range wifi to mobile data turn on?
    10-13-2014 03:52 AM
1,003 ... 2728293031 ...
LINK TO POST COPIED TO CLIPBOARD