[Tasker Tips & Tricks] Sicariux:
Greetings everyone,

https://youtu.be/T9aKmLTujik

What you see above is a "Control Panel" for my own Galaxy S7 Edge. I host this on my own website.

This means it can be seen and accessed from anywhere in the world, on any browser and/or device.

For privacy and security, I will implement a login system in the near future.

It has a couple of neat features, but since they are written in Dutch I will translate them to English:

Information:

Check battery level/percentage and check if your phone is being charged or not

Warns the user from the control panel if the battery is low.

Warns the user from the control panel to pull out the plug out of charging when it is fully charged

Check if your phone is in a light or dark place. I have optimized the light sensor as best as I could, The results are pretty accurate

Clipboard of your current copied content on your phone

Shows the phone model and the date and time of the last update sent from your phone

Check if Bluetooth is enabled or not

Check if Wifi is enabled or not

Show the current WiFi name, Wifi Speed, Wifi Channel & Wifi Signal Strength

Show the current Data Carrier / Mobile Signal strength (Weak, Normal, Strong)

Shows the current Call Volume percentage

Shows the current Media Volume percentage

Check if the screen of the phone is turned on or off

Check if GPS is enabled or not ( There is also a Live Google Maps on the right side, showing where the phone is right now )

Checks if the phone in call / calling / or getting called. ( in other words, it shows the user is busy with a phone conversation )

Checks if the user is browsing on the internet on the phone or not. ( It will check if a browser is open, needs more adjustments for more accurate readings )

I am surprised at the speed of the operations.

It takes a total of 3 to 4 seconds after clicking on "take a picture" button to take a picture from the front-camera and Upload it to my google drive.

It also removes the picture from my phone after it has been uploaded. WIth combination of SMS control this can be a great anti-theft option.

The "Record Audio" function works great too. after clicking on it on the control panel, it starts recording audio, waits 10 seconds ( records for 10 seconds ), stops recording audio and then uploads it to a special folder in my Google Drive.

The "Send SMS" function is very fast. after clicking on it, it will take about 1.5 seconds to send the SMS from your phone.

For now, the number to send the SMS to is hardcoded, but I will make it a variable so that it will be possible to type in the number on your web control panel and send the SMS to the number from your browser.

The "LOCK your phone" function immediately lock your phone remotely, even when your screen is turned off. You can unlock it with the code that has been set up in the Tasker Event.

Clicking on the Wifi, Bluetooth & GPS icon will toggle them( on / off )

Clicking on the Phone (screen) Icon, Will toggle the phone screen ( turns it on and off )

Clicking on the Clipboard icon will copy all the content to your own clipboard.

Not only the text but the icons also change dynamically.

Grey icons represent a false variable (turned off / dark / not in call & etc ) and the blue icons represent the true variables.

For example, in the screenshot above, Bluetooth is turned off and wifi is turned on.

When the battery gets at 15% or less, the icon will turn red and green when it's fully charged (100%) and the user will get an alert box warning with a notification sound straight from the browser about the low battery / full charge . ( Sound and notification can be turned off if you wish).

I have wrote a script with AJAX (Asynchronous JavasScript and XML) to do all of this in Real-time and without page-reloads. AJAX refreshes the page information every second (or whatever the user wants) without reloading the page.

The controls in this control panel are in many cases and in my experience a lot faster than Android Device Manager or other apps like Cerberus and Airdroid.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

- On Tasker, I have used Taskers own variables but also created my own variables to be created/changed on certain triggers.

For example, when the lx level ( light sensor ) gets low, it will set a variable to "false" as boolean, meaning there is not enough light == it is dark.

- Next I use this variable in my HTTP POST Request URL to a very simple PHP script on my website I wrote..

The HTTP POST Request URL will post to my PHP Script.

My PHP script grabs the URL, strips certain parts of it, turns it into PHP variables and then sends it to my MySQL database ( all on my own hosting).

- I again use the wonderful Tasker to do all of this this every 2 seconds.

You can get (almost) real-time information about your phone if it's set to be updated every 1 second.

This will not be very heavy on the database so it's possible.

- I then made another webpage containing another simple PHP script that grabs all the variables ( those we saved in previous steps) from my Database and echo's (shows) it on the screen.

This is the very same page you see on the screenshot, This is the Control Panel.

In the last step, all we have to do is visit the webpage on my website.

It will show the control panel as seen in the screenshot. You will also be able to control your phone from here.

I am making a simple login function where users can login.

this means a single database can hold more than 1 user if you wish to.

This will also protect others to see/control your phone from the web as they will need login credentials.

My script will then grab the corresponding variables of your phone when you login, using your ID and checking it on my database.

I know this may sound complicated for a lot of you who think that this is too much work, but I am planning to finish this and make it a some kind of a Open-Source thing available to every android and (rooted) tasker user.

All you need is:

- My Tasker project files ( all you need to do is import it to your own Android )

- Your own webhosting with MySQL database and PHP.

There are TONS of FREE online webhosting that will offer exact this. I'd love to post all the links here, but i'm not sure if it will be seen as advertising, so let me know.

- My PHP script(s), all you need to is simply upload it to your own website.

- My MySQL database configuration file - After importing this single file, the whole database will be created automatically on your website. ( using MySQL on your hosting )

After that, and when my Login function is complete, you could create an account for your self and/or others where they can login from anywhere in the world, on any browser or device and check their phone status and control their phone in Real-Time.