Recognize if you have mobile data

Lostnext

New member
Hi, I downloaded the application recently and I would like to know if it is possible to make a macro that the application recognizes that there is no internet on the chip and automatically switches the airplane mode on and off until the internet picks up
 

I'mnoob

Member
Hi, I downloaded the application recently and I would like to know if it is possible to make a macro that the application recognizes that there is no internet on the chip and automatically switches the airplane mode on and off until the internet picks up
You can run connectivity check macro.
It'll automatically load www.google.com if it loads successfuly then yes internet working but if no then it's not.
 
Last edited:

Qarboz

Well-known member
Hi, I downloaded the application recently and I would like to know if it is possible to make a macro that the application recognizes that there is no internet on the chip and automatically switches the airplane mode on and off until the internet picks up
But when you are in airplane mode you can no longer control anything. That is, the result of the check will always give lack of connectivity...
 

I'mnoob

Member
But when you are in airplane mode you can no longer control anything. That is, the result of the check will always give lack of connectivity...
Yeah, but I think he meant connectivity check every hour or particular set time.
Like mobile switching off aeroplane mode itself and check connectivity. If it's then notify. If no then just turn back aeroplane mode on for another hour.
 

Lostnext

New member
Sim, mas acho que ele quis dizer verificar a conectividade a cada hora ou horário específico.
Como o dispositivo móvel, desligue o modo avião e verifique a conectividade. Se for, então notifique. Se não, apenas volte a ligar o modo avião por mais uma hora.
Yes, that's what I mean, when you don't have internet, the application turns airplane mode on and off, checks if you have internet, does the procedure again until internet connects. If so, how do I do it?
 
Last edited:

I'mnoob

Member
Yes, that's what I mean, when you don't have internet, the application turns airplane mode on and off, checks if you have internet, does the procedure again until internet connects. If so, how do I do it?
Sorry, but I'm a new user and currently understanding how it works.

I get what you want to make but I'm not sure how can I implement it.

The way I think is check connectivity if it's true then notify you and if it's false then turn back aeroplane mode on.

Also, there could be other way but I have my own idea which I can't implement but I'm sure other people would help you here.
 

I'mnoob

Member
Yes, that's what I mean, when you don't have internet, the application turns airplane mode on and off, checks if you have internet, does the procedure again until internet connects. If so, how do I do it?
Hi, I had a post regarding this and I got a solution how would it work..
Triggers depend on you
Action: Choose connectivity check and save it with a variable anything like a word "i". Then add If clause action and add two conditions:- First trigger fired and 2nd macrodoide variable and choose true.
Then add some action in it for when your net works and add action else and add action for when your net doesn't works.


If you need more clear steps then post your reply
 

Lostnext

New member
first thank you very much for your help, if you can post the steps on the prints it would help a lot
Hi, I had a post regarding this and I got a solution how would it work..
Triggers depend on you
Action: Choose connectivity check and save it with a variable anything like a word "i". Then add If clause action and add two conditions:- First trigger fired and 2nd macrodoide variable and choose true.
Then add some action in it for when your net works and add action else and add action for when your net doesn't works.


If you need more clear steps then post your reply
first thank you very much for your help, if you can post the steps on the prints it would help a lot
 

I'mnoob

Member
first thank you very much for your help, if you can post the steps on the prints it would help a lot

first thank you very much for your help, if you can post the steps on the prints it would help a lot
Hi, I will try my best to make you understand this macro.

Let's start :-

For triggers:- I hope you know how to make trigger if not then
Add Trigger and choose regular interval set time to your choice. (This will hit again and again for the desired time you have set).

In Actions:-
I'm imagining your aeroplane mode would be already on.

So, 1.) Add aeroplane mode off. (it requires root for my device unfortunately).

2.) Add mobile data on.
3.) Wait for 10 seconds (This is because your device would take time to search for signals).
4.) Search action check for connectivity click on it. A box will appear click on + icon and type whatever you want for example:- Connectivity check.
5.) Add action If clause it will ask for conditions. Click on + Icon and search for trigger fired and click on + Icon again and search for macrodoide variable click on it. Something will appear (the name you choosed in step 3. Connectivity check in my case.) select it and choose false option.
Now you need to add actions in between if clause action. To do this

Click on end if and choose add action above this will let you add action inside of it.

I'm not sure what you want to do if your network doesn't work but let's consider this for example.

6.) Click on end if and add action above
Search for speak text and type whatever you want to for example:- Net isn't working or anything like this.

Or you can instead add action of automatically turn the aeroplane mode on instead of speaking. (this would be better as above one will only irritate you).

Now leave if clause action cause it's almost ready.

Click on if clause and add else then add these below steps in it.

7.) Add action speak text and again type what you want like net is working. Or instead you can add vibrate or sound actions as the speak text would feel weird and would sound embarrassing when you around someone and your mobile starts saying your net is working. Lol



Again, I'm not a expert and maybe there could be a error but I'm ready to help.
 
Last edited:

I'mnoob

Member
first thank you very much for your help, if you can post the steps on the prints it would help a lot

first thank you very much for your help, if you can post the steps on the prints it would help a lot
test this macro
 

Attachments

  • Connectivity_check.macro
    3.6 KB · Views: 9

I'mnoob

Member
to some extent it worked, more and what action I set to automatically repeat until connectivity=true without having to start the macro again
You can just decrease the time interval to 5minutes or more less to make it work again and again until it gives true value.

Incase you don't want macro to restart by trigger again and again then you can use repeat actions for this.
 
Top