Hi
The general idea I have, as I said before, is to have an account sync performed every 30 min, either on wifi (when I'm connected to a wifi network) or mobile data (if not connected to any wifi network) and to turn off mobile data when I'm not using my phone (as I don't have a very big data plan).
So, do you think I can have these 3 events at the same time:
- SYNC: (to run the sync every 30 mins)
-> repeating event (every 30 min)
Conditions
-> between 6 am and 1 am
Actions
-> enable account sync, request update
-> queue event after 5 min, disable account sync
SCREEN OFF (to disable wifi + mobile data when screen turns off... will the sync still occur?)
Conditions
-> when screen turns off
Actions
-> disable wifi (if not connected)
-> disable mobile data
SCREEN ON (to enable mobile data when user is present, wifi should turn on if I am in my wifi areas I guess)
Conditions
-> when user is present
Actions
-> enable mobile data
What do you guys think?
Hi,
as i pointed out in previous post, if you will turn your data/wifi of withvthe screen, then you have be careful about how you define your events.
In your case, you have several mistakes.
1. In your sync event you don't turn data/wifi on, so when your screen turns off, your other event will turn them off, therefore sync won't work.
2. In your screen off event, if you put wifi of if not connected, as long as you are connected to a wifi network (like in your home) wifi won't turn off. Now if you wanted that way, that will fix the above issue for Wifi, but then this event is pointless since the idea is turn wifi off when is not in use.
3. In your third event, the user is present doesn't work, at least for me the event are executed even when the screen is off, if you have the same issue I recommend tonus er screen is on condition instead.
4. Finally, you need different event to turn the screen on for Data and wifi. Turn data on won't turn wifi on and backwards. I recommend to use location conditions so when you are outside wifi areas you use data instead.
Best regards,
PD: a few post above I give my events for this, they fix this issues as well as others.
Enviado desde mi GT-N7000 usando Tapatalk 2
I don't have a data plan for my phone, but live in an area that's densely filled with both cell towers and Wi-Fi. I set up Llama to turn on the Wi-Fi for a minute at 15 minute intervals, so basically my phone can sync to the internet every 15 minutes instead of me having to manually turn Wi-Fi on and off each time. This event only fires when the screen is turned off, and only when I'm in places that have Wi-Fi such as at home or in school.
This is how I set up my Llama event.
--
--
Create a new event and name it accordingly, make sure it's enabled.
CONDITIONS:
Enter area - if you want the Wi-Fi to fire only in certain areas
Screen on/off - off
I also put Battery level above 10 so that the phone will save on battery by not running the event when my battery level's low.
You can add other conditions.
UNDER THE ADVANCED options:
- Tick "Delay event"
- Delay minutes - 1 minute (The time between your screen turning off/entering an area and the repeating Wi-Fi firing)
- Delay seconds - 0 seconds
Cancel delay if false - I ticked this so the rotating Wi-Fi will not run when my screen turns on again.
Require confirmation - No
Repeat event - yes
Repeat interval - 15 minutes (change this to how often you want the Wi-Fi to turn on and off)
Under ACTIONS,
Toggle Wi-Fi - On
Queue another event --> this will take you to a new screen.
QUEUED EVENT
The queued event is to turn the Wi-Fi off after 1 minute (or any duration you like), so I named it "Wi-Fi off"
Queue delay - 1 minute 0 seconds (change this depending on how long you want the Wi-Fi to be turned on each time it repeats)
CONDITIONS - none
ACTIONS:
Toggle Wi-Fi - Wi-Fi off
This should give you an event summary of:
When [List of conditions, when screen turns off etc] - delay for 1 minute and then enable WiFi and queue an event named [Wi-Fi off or whatever you named your queued event] after 1 minutes and 0 seconds every 15 minutes.
It's been really useful and is just like having a data connection when I'm in places with continuous Wi-Fi. My email and Whatsapp messages get pushed without problems every 15 minutes! You can use this to toggle your mobile data to save on costs too.
Llama's great
I see there are lots of different ways to do what I wanted...I'm trying to find the best possible way to do it.kurokirasama's way seems a bit complex to me with all the variables.I tried to simplify these events but then I had issues with the screen off (once screen off, data would always be on... I think kurokirasama has a variable for that).So I tried another way, as in the first post of this thread, but tweaked:SYNC MOBILE DATA*repeat every 30 minConditions- screen off- wifi network disconnected (any wifi network)Actions- toggle mobile data off-- queue another event (*delay 10 seconds):-> toggle mobile data on-> enable sync, request update-> queue another event (*delay 3 minutes):----> disable account sync----> toggle mobile data offAnd I have the same event but with WIFI instead of MOBILE DATA and as conditions: wifi network connected (any wifi network).Then I have another event with SCREEN ON, to enable mobile data.But I'm having some issues with these events.Sometimes I have the screen on and suddenly mobile data/wifi connection is lost...Don't know what I should do... I'll keep trying!
Yeah, I think I had to much queued events, I simplified the event as follow:
SYNC MOBILE DATA
*delay 1 min, cancel delayed if false
*repeat every 30 min
Conditions
- screen off
- wifi network disconnected (any wifi network)
Actions
- toggle mobile data on
- enable account sync, request update
-- queue another event (*delay 3 minutes):
-> disable sync
-> toggle mobile data off
AND
SYNC WIFI
*repeat every 30 min
Conditions
- screen off
- wifi network connected (any wifi network)
Actions
- toggle wifi on
- enable account sync, request update
-- queue another event (*delay 3 minutes):
-> disable sync
-> toggle wifi off
Then I have another event:
SCREEN ON
Conditions
- when user is present
Actions
- enable mobile data
I have the SYNC MOBILE DATA delayed 1 minute so the SYNC WIFI will start first (I mostly always in wifi areas).
That way, if I'm not mistaken, the SYNC MOBILE DATA will only fire if the SYNC WIFI is not connected (because SYNC WIFI will fire first)???
And a few posts back, kurokirasama said that "when user is present" condition didn't work for him.
Personnally, for me, I think it works well!
What are done music apps that are supported by llama? I just noticed mine isn't :/
My brother-in-law says he has gotten his llama to work this way for his wife (my sister) but I can't figure it out. Thanks
Andrea
I think your mistake is the condition: call state in a call, it should be, not in a call I guess?
What locale plugin are you using and what for?
Enviado desde mi GT-N7000 usando Tapatalk 2