'auto lock PC when android phone disconnected from wifi' (IFTTT)

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
REDDDDY
Posts: 11
Joined: Tue May 24, 2022 12:13 pm

'auto lock PC when android phone disconnected from wifi' (IFTTT)

Post by REDDDDY »

Does it work if we do a manual test by turning off the wifi on the smartphone?
will this lock the computer?

I tried but it doesn't seem to be working.
I also want to know about capital letters usage in Push2Run. Is it possible to use CAPS letters?

Image

Image

not sure, if the root cause is on the IFTTT side or local Push2Run script
will you help me troubleshoot the root cause of the problem?
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: 'auto lock PC when android phone disconnected from wifi' (IFTTT)

Post by RobLatour »

Hi REDDDDY,

First, can you please confirm that you have dropbox installed and running on your Windows PC.

Next, I notice you have IFTTT set up to send:

Disconnected from SSID

but you have Push2Run listening for:

disconnected from my 5.0 ghz


I'm not sure what your SSID is, but you should have Push2Run listening for:

disconnected from whatever-your-SSID-is


as the SSID is not going to be "my 5.0 ghz" (as SSIDs don't contain spaces).


You might want to check your Push2Run session log to see what IFTTT is sending.

Another way to approach it is to have Push2Run listen for:

disconnected from *


Regarding the case, you can send upper or lower case if you want, but Push2Run ignores the case when deciding what to do.
REDDDDY
Posts: 11
Joined: Tue May 24, 2022 12:13 pm

Re: 'auto lock PC when android phone disconnected from wifi' (IFTTT)

Post by REDDDDY »

Yes, I do have DropBox installed and running on my windows machine. It also starts when windows startup.

After going through the session log,
It says : The first line should identify the computer(s) for the command to run on..

this is when I knew that I made a mistake by not including "Push2Run_ComputerName"<BR>

so, after adding that single line above, I also changed the "Listen for" to just use disconnected from *

and...

It is working now..

Image

so, every time I leave the house, the computer will auto lock itself after my smartphone gets disconnected my home wifi . 😀🙂

Also to note. I'm using an Asus RT-AX82u router and it does allows for SPACE when naming SSID.. but hey, it's working now.
I think it is all because of the missing "Push2Run_ComputerName"<BR> 😅

Thank you sir.
Last edited by REDDDDY on Thu May 26, 2022 8:18 pm, edited 3 times in total.
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: 'auto lock PC when android phone disconnected from wifi' (IFTTT)

Post by RobLatour »

Glad it working for you, and sorry I should have caught that too.

Enjoy the program!
Post Reply