Hello there folks!
First post here, believe me I've search through all the internets and this forum searching for a solution to this and I can't find it, so maybe I'm approaching this problem in a wrong way, let's see if the gurus around here can give me a hand.
I am looking for a way to play music from an url from 8 to 22 every day. I am trying this on an Android machine that is not a phone. It has Android Version 7.1.2 and Kernel Version 3.14.29.
What I'm doing at the moment is launching Chrome with the url in the DATA field in a task, and launching that task with a profile at 8h, then using the Media Control pausing it at 22h, and the next day at 8 launching again Chrome with the url in the DATA field. I tried to play again using the Media Control but I think after a few minutes Chrome closes the connection and it's not possible to play again, you have to reload.
This way of doing things brings a problem: Chrome always will open in a new tab, so after a week I'll have 7 tabs open in Chrome. Checking the "Always start a new copy" field does nothing in this regard. Also my device is not rooted so I can't kill Chrome, however I am not sure if I was able to kill it, if it would still open the last session with all the previous tabs, not solving the problem anyway. I am willing to root the device but it seems not being a commercial phone it's not a trivial task, some apps don't work and if it won't solve anything it'd be a waste of time.
Things that I've tried but haven't been able to achieve: close tabs, open Chrome from Tasker in Incognito Mode. Using Autoinput for this things seem to not work, or I think I may not have the right code for what Autoinput should look for. I've tried to use VLC to open the url because maybe I would solve the multitab problem and maybe I could just play and pause forever without being forced to relaunch. But VLC for Android doesn't seem to care if you tell it to open an url from Tasker.
So questions, do you guys think there would be a better approach for this? Chrome is not meant for playing music but it seemed like the easiest way to get the job done, giving that VLC is too simple in Android to manage urls. Maybe there's an app that would just do this and I'm going crazy for no reason.
A part B of the problem that would be great if I had some input is that I should monitor the network and the music so when it stops between 8 and 22 I do something. For instance, if it stops and the connection is down I'd play something from a folder, and whenever the connection is back I'd switch to the url again. My first approach to this is to check the Network and make a if_else routine doing changes. This routine runs infinitely through a GoTo at the end of it. If I'm not mistaken that's the only way in Tasker to check for instant changes in the Network (this device is connected through cable, not WiFi) since Tasker only checks changes every 2 minutes. If there is another way of doing this it'd be great to know, the machine seems to suffer a bit when I run this task.
Besides checking the Network I've also tried the Is Music Playing plugin but still with no success. Maybe it won't work with Chrome? I still have to invest some time on this, but there's not a lot of documentation available I believe.
Well, sorry for the long post! I'd be great to have some advice, I'm going a bit crazy doing something that it's probably basic. I am a newbie with this.
Thanks a lot!
Try using a "system -> send intent" action to launch the url instead.
A1: Send Intent [
Action: android.intent.action.VIEW
Cat: None
Mime Type:
Data: https://google.com
Extra: com.android.browser.application_id:music
Extra:
Package:
Class:
Target: Activity
On the "Extra:" line, notice the "music". That is giving a label to the window and most modern browsers (tested on Firefox) will then reuse that window.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
And to follow-up on the second part of your question, where you want to know if the streaming stops....
There is a thread on the tasker google group discussing a variety of monitor network usage options. I think that is the easiest way to determine if streaming has stopped.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Thanks a lot ktmom! I've done exactly what you said and I searching about it I see it's been recommended for similar purposes on other forums. But it doesn't work for me, I'm just able to open chrome but it seems to ignore the url. Any ideas? This machine won't allow me to install Firefox, although I can install Firefox Focus, in case that could help.
I'm going to check out now the network thread, thanks a lot!
Try whatever other browser you can. Is webview installed? I'm not sure if it matters though.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
I think I experimented before with some incognito mode stuff and that was interfering with the routine. Now seems to work like a charm! Thanks a lot!
About the Network management, here's what I've done, maybe I'm a bit basic but I understand this better than what the guys are talking about in the other thread. If you find it doesn't have something that could potentially crash Android or damage somehow the working of the machine in general, or it's improvable, I'm all ears. I know I'm not the best on this stuff:
Test Net
Type Connection Type Store Result in %NETSTATUS // Check the connection
If %NETSTATUS eq ethernet & %FLAG eq 1 // If there were a connection and there's still a connection, do nothing
Wait 1ms
End If
If %NETSTATUS eq ethernet & %FLAG eq 0 // If the machine were offline and the ethernet cable is reconnected
Music Play Dir
Dir Music Subdirs Off Audio Only On Random On // Stop offline music. For some reason this works well for stopping the offline music, whereas the Media Stop only works the first time
Send Intent
Action android.intent.action.VIEW // This is the sweet code you gave me
Variable Set
Name %FLAG to 1
End If
If %NETSTATUS eq none & %FLAG eq 1 // If there were a connection but there's not anymore
Media Control Cmd Pause Simulate Media Button On App Chrome // Pause streaming so it doesn't overlap the offline music
Dir Music Subdirs Off Audio Only On Random On // Play offline music
Music Play Dir
Variable Set
Name %FLAG to 0
End If
If %NETSTATUS eq none & %FLAG eq 0 // If there were not a connection and there's still no connection, do nothing
Variable Set
Name %FLAG To 0
Goto
Type Action Number Number 1
--
One thing I see about this is that it's an infinite loop and may cause some suffering to the machine.
Now I'll see how to add WiFi to the routine and I'd like to check how to do something when the music stop in general.
Thanks a lot for your time!
Related
Name: AudiobookMark
I was frustrated by the lack of built-in support for mp3-based audiobooks so I wrote this app. It lets you load as many audiobooks as you have memory for. It remembers where you are in each file of each book (and of course, which file you are listening to for each book).
It has standard transport keys plus the ability to enter HH:MM:SS to skip directly to.
Download Link: social.zune.net/redirect?type=phoneApp&id=b1cab14b-e91d-e011-9264-00237de2db9e
Is this a free app?
Its a 0.99 app, with a free trial that basically let's you use it without limitation, but pops up a message box occasionally...
Can you add support for a sleep timer? So you need to shake the phone every 15 mins or it will pause the audio book.
That sounds like a useful addition. Let me think through how best to implement it, and I'll try to add it in with "run under locked screen" update I'm working on...
elmstrom said:
Can you add support for a sleep timer? So you need to shake the phone every 15 mins or it will pause the audio book.
Click to expand...
Click to collapse
I would also really like this.
Hey dbroome, this sounds like it has the potential to be an awesome app. I'm so used to the Mortplayer audiobook app on Android and really enjoy using it (great alternative to music btw).
So by mention of "remembers where you are" you mean bookmarks are automatically placed for us? I ask because a cool feature of the mortplayer app was the bookmark feature where you can tag certain spots on demand and go back to wherever you tagged. I hope you go far with this app, it really does sound promising.
The UI looks good too!
I had not heard of Mortplayer, I'll have to check it out, though I don't have an Android device to be able to get a good look at it.
You are correct in that the app places the bookmark for you. It basically remembers where you were in each file.
How do you use the "tag different places in a file" type feature in your audiobook listening? I generally am just listening to novels, and don't have any real need to jump to various spots in the same file.
The reason I ask is that I'd like to implement features users would use, but don't want to overly complicate it with feature bloat.
As an update, I have implemented and am testing three new features. Once I make sure it is working as expected, I'll submit the update to the marketplace:
1) Configurable port on the loader (8001 might not be convenient for everyone. Should have thought of this before)
2) Run under locked screen. Now you can lock the screen to save battery power
3) Configureable sleep timer (with optional shake to reset).
I hope to submit it in the next day or so...
Thanks / Volume / File Corruption
First I love the app. I have been writing down my numbers until this app came along. Thank you dbroome.
Second, I noticed the volume is weaker than the default music player; has any one else notice this?
Third, I received a file corruption error message saying it couldn't determine the file lengths and displays all .MP3s as being 00:00:00 in running time. The files didn't play, but after a reboot they started too but still display the zero length; anyone have any thoughts?
Thanks!
Also needs skip forward/skip back button that just goes 30 sec back/fprward. The current skip to a location is not usable when driving.
Bonus points for a ui redesign with bigger buttons.
Additional bonus points for a fast play (i.e. play back at 150% speed with no pitch shift).
For me to purchase, I need:
Play under lock screen
Uploader program to work (changing ports might help)
In order to determine the length of the mp3, the player has to actually open the file and then close it. The Zune software interferes with the player opening the file after upload, and as such you have to unplug the phone from the computer after uploading before closing the "I'm done" pop up box. I'm guessing that the 0-length issue might have been due to that. Try deleting that book and re-loading it to the phone, making sure to unplug the phone before continuing (or, alternatively, using the SDK's WPConnect.exe which doesn't interfere with the media being opened).
It might be useful to add a "determine durations" type button on the load screen that would let you try to determine them again at a later time instead of re-loading them. What do you think?
30 second skip could definitely be useful. I'll see if I can find a good way to incorporate it in the next update.
I really want fast play as well. Unfortunately the MediaElement player I have to use to be able to set positions doesn't support it. I'll definitely be watching the updates as they come out for supporting that.
I'm dreadful at UI stuff, but I have a friend who I can probably rope into giving it some love.
Play under lock and the configureable port are in the next update, which I will finish testing and submit tonight...
Cool. Bought it as an encourgement.
For UI ideas look at audiobook player 2. It is much easier to use while driving.
Suggestions
Your [skip to a time] section shouldn't be on the main page, but off a toolbar option.
Your play/pause button should swap between play/pause depending on state rather than changing the background colour.
Use images rather than text in the buttons [|<] [<<] etc
v1.1 has been approved and should show up in the marketplace shortly. This adds a sleep timer (with optional shake to reset), play under lock, and configureable port on the loader and phone.
Next update will hopefully be a ui re-do, possibly adding the "skip xx seconds" idea.
Downloaded the update for the app, re-uploaded the audio book, followed instructions on the pop up (after upload completed) and the software recognized the full lengths. Very nice! Thanks dbroome!! The mp3s seem to have uploaded a little quicker too or is it this just me?
FYI, using a colon within the name of a book crashes the app (at least it does for me).
Good find. I'll correct that.
Waiting on a friend with some design skills. If he doesn't come back to me soon, I'll go looking for free images to include on the buttons and do a general usability re-skin of the ui...
Is this the correct website: http://davidbroome.com/AudiobookMark
I am just getting Bad Request (Invalid Hostname) when I try to goto it. Also the volume seems low on my Samsung Focus. Good work though, I am going to buy it.
Thanks!
The website had a temporary issue and should be resolved.
I'm looking into the lower volume and should have at least an answer soon if not a fix...
it's a very nice little app and I'm using it now for a few weeks.
But I've found when you have to many audiobooks or when the aaudio-files are very big (about 6 MB's) the program can't determine the length of the audio-files any longer...
Maybe we can get an update for that?
The only time I have been able to load an audio file the program could not determine the length of was when I forgot to unplug the phone from the Zune software when prompted. I have tested files up to 50 mb. Of course, it could be file dependent. Did the file play even after the length failed to update?
Fortunately I am almost done with the next update that includes code to re-check for the length of files if it fails the first time. I need to finish the "Load from DropBox" functionality that I am implementing and then I can submit it. Hopefully this week!
Yes - I can start the player and I can play the file even when it says the length is 00:00:00.
This morning I've transferred some 300 MB audiobook-files to my HD7. After that I disconnected the device and it started "determining length of..." and it immediately started playing the first file (10.7 MBs) but even after 20 minutes it just couldn't find the length of the first audio-file so I stopped the program.
The Past:
I've been working on this app since last 3 months and I'm pretty happy with the progress I made:fingers-crossed:. I was waiting for this day to post the app publicly in the forum which taught me so much:laugh:. Well, some might say this app is completely useless, but other might find it useful. I've considered all kind of users and accordingly added features to make it as productive as possible. This is still an alpha release and you may find several bugs, and I would really appreciate if you guys can report it whenever it crashes:angel:. I'm open to all kind of ideas and feel free to suggest me additional features.
About Floating Commander:
Well, I'm sure you're all are in love with Google Now, but then, so I'm I. But it sucks sometimes, how Google Now can't do many things that I want it to do, may be like setting the brightness of my screen to lets say 50%, changing sound settings and so on.. So, I've tried to accommodate all that in this app. Yes, this is a voice command utility that will do many things which Google Now can't (may be in future, but not now). Moreover, I've seen people who don't like the app simply because it eats up a little bit of data from your data pack and affects the battery aswell. Now, this one also needs data, but just to transform your voice to text, and rest all the features are processed natively and accordingly invoked. Its superfast (atleast on my phone, Galaxy Note 2) and it gets the work done. This app starts a floating widget which can be put on any edge of the screen, or freely (if u choose so in settings), and upon clicking, will invoke a voice recognition utility (Google's own recognizer) to detect your command (English Only for now) and thanks to its SpeechOptimizerEngine, it processes the command very fast and accurately and executes it. You can basically select/de-select each and every feature this app has from its settings and accordingly it''ll take more or less time (which is again negligible). Now, I'm sure there are people who think this is just another bull**** app and they don't need it when they have Google Now. Trust me guys, I have something for you guys aswell. I've put two new options which will be very helpful to most of you, I'm sure. Enable inbuilt "Google Now" mode in settings to launch "Google Now" from any screen using the floating widget, this will completely disable the native feature of the app. Also, another option is "One Touch" mode which can map to any activity, like changing sound profile, opening flash light, running memory cleaner or opening any installed app at the touch of a floating widget from any screen. The battery consumption is almost zero if it is not used, and if used, takes only for the internet data for converting voice to text. There's an additional feature to send the floating widget back to notification area by long clicking (when playing games) and bringing it back by clicking notification area. Its completely add free at the moment and I would definitely try to keep it that way. Overall, this app might or might not be suitable for your, but I would really appreciate if you guys devote some time analyzing and reviewing it here.
Ok, the final and the best thing, I've also tried integrating an offline mode, yes you heard it right.:laugh: But that's only for U.S. folks, since it works on only U.S. English accent. So, please don't review the app badly if it doesn't work offline for others.
Commands to try:
You can launch/open an app by saying:-
- launch <app name | any settings>
- open <app name | any settings>
- start <app name | any settings>
- run <app name | any settings>
Examples:-
- open bluetooth settings
- run cleaner
- launch whatsapp
- open browser
- open messaging
- run flashlight
You can toggle things by saying :-
- turn on <settings name>
- turn off <settings name>
- start <settings name>
- enable <settings name>
- toggle <settings name> on/off
- turn <settings name> on/off
Example:-
- turn on wifi
- start bluetooth
- switch on internet
- enable hotspot
- toggle autobrightness on
- turn rotation on
You can use set commands like:-
- set <settings name> to <value>
- change <settings name> to <value>
Example:-
- set brightness to 60%
- change ringer mode to silent
- change music volume to 80%
- set ringer volume to 100%
- change ringer mode to vibrate
- set all volume to 100%
- set alarm for 8:30 a.m.
- set alarm for 9:00 a.m. every weekday
- set alarm for 10:00 am. on monday tuesday thursday
Miscellanious Commands:-
Examples:-
- clean memory
- dial 12938
- call <contact name>/ <contact number>
- send message to <contact name>/ <contact number> <message>
- send message to joshua I'll be late tonight
- browse to www.google.com
- show my location
- drive from <location from> to <location to>
- drive to <location to> from <location from>
- show way from <location from>
- navigate to <location>
- navigate from <location> to <location>
These are a few bunch of examples, keep trying combinations and I'm sure most of them will work. Let me know if you have a worthy new command in mind. May be I've just wasted time in this, but I'm really looking forward to encouragement here for further development. And I repeat, I'm not doing it for financial gain.
Screens:-
Credits:
This app uses StandOut library by pingpongboss for creating the floating widget. Many thanks to him.:laugh:
This app also uses an open source application Searchlight without which, I couldn't have added an amazingly looking flash light inbuilt in the app. :laugh:
Apart from these, the application has been coded from scratch and supports only 4.1+
Known Issues: :cyclops:
- I've witnessed a few weird things on Nexus devices (it opens and closes the last opened background activity when voice recognizer is called)
- The floating widget doesn't appear on center when launched for first time (something wrong with my calculations)
- One Touch mode has a few drawbacks (all solved in my latest code which I'll upload in a few days)
- The donation section is mapped to whatsapp (since I was testing something on that and whatsapp has an easy package name:silly
- I haven't changed the min sdk version yet, any device from 1.6 and above can install it, but trust me, that's not gonna work for sure. I'll change it in the next update for sure.
- Theme changer and Widget Types are not working yet, thats easy but uploading an app on playstore takes like 6 hrs.
Overall, I'm hoping I've created something useful and I don't expect any financial profit from it, so please review accordingly. Also, I'm also planning to make it open source in future, but let me think about that again. And yes, this app is just of 270 Kb.
Thanks a lot for wasting your time on reading this. This app doesn't have any help section yet, will add one soon.
Download:
Application is deployed on Playstore in alpha release mode. So, please join the following Google Plus community first:-
boggartWare Google Community
Once you're added, you can find the link under "Floating Commander" category. Alternatively, you can click here and select "BECOME A TESTER". Only who joins this community can be a part of beta testing (that's google's policy). Once you've done that, you'll get a link on that same page to download the app from Playstore. Make sure you access all the links and join the community using the same Google id with which you access Playstore on your own phone.
Thanks guys.
<reserved>
<reserved>
Reserved
<reserved>
First off, impressive work.
What's the benefit of something like this vs something like utter?
Never used utter
aagha said:
First off, impressive work.
What's the benefit of something like this vs something like utter?
Click to expand...
Click to collapse
Hey, I've never used Utter, but this one is for those who thinks that Google Now isn't enough to do the needful. I know, getting things done through voice is a little bit odd. But sometimes, when you're alone, sleepy, don't want to scroll through menus to get things done, this one really comes in handy. Apart from that, I've also put two additional modes, "Google Now" mode and "One Touch" mode which are really really useful for anybody. Try and let me know what do you think.
Just updated to Floating Commander 1.8
Just updated the apk in Playstore to version 1.8
Now you can toggle settings by just saying "toggle <settings name>.
Hope you guys like it.
Check out the public release of the app
Get it here - play.google.com/store/apps/details?id=com.boggartware.fcommander
Other apps
.jpg[/img][/url]
How about playing music? I tried saying run music, play song but it only took me to music player.
I played a song and said, stop music. It took me to the music player,music kept playing.
Any suggestions?
Edited original post as now getting. a collection of tasker tasks i have going on and easier to keep them in the first post but Will help below if anybody wants to copy them, also if anyone else wants to post there's that will be good.
1st) have tasker to toggle settings like wifi brightness etc when i get to work. Reverts settings back when i get home. Produces notifications on watch.
2nd) sends a message to my wife when i say launch task 1 that tells her im on my way home.
3) launches a autowear location menu on the watch. In the menu i can select wether i want high accuracy or low and wether i want location services on or off atall.
4) when i charge my phone between 2230hrs and 0625hrs the watch is switched to screen off, Bluetooth off and phone set to vibrate. When its unplugged or after 0625 the watch is switched to always on and phone is muted.
5) mobile data on and off options via autowear.
6) detects when i have lost connection to the watch and immediately turns on GPS to record the location. Then notifies me on my phone with a map view. I fix generators for a living so i need to take my watch of sometimes or when i have a shower in the gym etc. If for whatever reason i forget it which is unlikely i will know where i last had it.
7) every morning when i take my phone and watch off charge it selects a different watchface every morning at random from a predefined list. (needs watchmaker to be installed)
8) using autowear so that when i start My Tracks on the watch it automatically starts my gps task for me.
9) little on screen widget that i can control my Xbox/sky/tv changing channels, volume, play and pause, go to Fifa 15, record that, turn everything off. Accomplished using autowear, autoremote, autoinput, and a redundant tablet.
I have only just began with tasker so my methods won't be the most efficient but they work. If anyone has better ways as i mainly using auto input then please get in touch.
Could you describe which apps you used to pull this off? Thank you
Yeah sure, was a app called Tasker that i used on my phone to create it all and then a tasker plugin called tasker wear i think.
I have since been tinkering with it.
The updated version now has the following options;
1) text the wife I'm on my way home.
2) turns Wi-Fi of, auto brightness on, sync off
3) opposite of 2.
4) closes and returns back to watch face.
With option 2 and 3 i get a notification of what has beebeen switched on/ off.
With option 1 it also activates option 3 ready for when i get home.
Also if i forget to do the above especially switch evereverything on it detects when I'm nearly home and does it for me.
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
TheKaser said:
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
Click to expand...
Click to collapse
I'll have a look at that thanks, currently going to create a task that switches between gps and battery saving location as you can't turn location of anymore. So will have it switch to gps when needed and back to battery saving when not.
Also going to see if i can switch to cinema mode when charging and lost connection to the phone together and to revert back to previous or new watch face when undocked and regains connection to phone.
Hi Phil, would love to hear how you get on with that.
Hi rusty,
Just finished putting something together.
I have tasker detect when it's on charge and if between 2230 and 0625, and if so it switches the watch screen to off, and Bluetooth of.
using a profile manger, that detects that the watch it's no longer connected so switches notifications on the phone back on.
The opposite is when it's unplugged it switches Bluetooth back on, turns the watch screen to always on and the profile manager then detects the watch so turns the phone to mute but watch still vibrates.
I can now sleep at night with no lights keeping me awake and the only thing i have to do is plug my phone in.
Just to note it was pretty simple to set up with tasker and autoinput.
TheKaser said:
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
Click to expand...
Click to collapse
Hi kaser, as you recommended autowear do you have any experience with it as i can't get my head round it and there isn't much on YouTube or Google to help out.
phil gpx said:
Hi kaser, as you recommended autowear do you have any experience with it as i can't get my head round it and there isn't much on YouTube or Google to help out.
Click to expand...
Click to collapse
Hi, sorry for the late reply, I was on holidays.
I do have some experience. You need to download AutoApps from Google Play and suscribe to the alpha testing. Then you can download AutoWear. For this you also need to joing the Google+ community where the developer is always nice and reactive when posting bugs, questions or guidelines. Posting at the community is the best thing you can do since AutoWear is still in Alpha and it improves every day and it is not too straight forward to understand, especially how it communicates with AutoVoice and how commands and parameters are passed to Tasker.
By the way, I have a similar profile telling my girlfriend when I get to work, when I leave work and when I have parked at home coming from work, which automatically trigger depending on my location and connection to my car's bluetooth or work's WiFi. You don't really need your watch for that
Cheers for replying.
I have already downloaded it and played around but can't get my head around the processes of the app.
I followed the guide for the voice screen but cant get new screens up or start tasks etc.
I'm usually pretty good at working things out but cant with autowear.
what is it you are trying to do? Do you have the latest version of tasker?
Yeah i have the updated tasker but just can't work out how to get from the voice screen too say a "4 menu screen" that has tasks i have set up. Not sure what i want to accomplish with tasker next but i know if i can understand autowear it would help.
Have you done anything with autowear.
I have done the above tasks in the first post with autoinput and taskerwear but that is just a series of notifications that you can select to start tasks.
my main use for autowear is to send whatsapp messages from scratch (whatsapp currently only allows to reply to messages).
To achieve this I open an AutoWear Voice Screen by shaking the watch, and say "write to XXXX and say YYYY". This triggers an AutoVoice profile configured to react to "write to (?<contact>.+) and say (?<message>.+) (using Regex)
Inside the task, I do an WhatsTasker plugin contact search of the variable %contact generated by the regex command. Once found, I text the %message to this contact using whatstasker.
The best thing to do is to read the variable descriptions in the task. For example, you create your profile of AutoVoice Recognized. Inside it, before clicking configuration, you can see all the local variables available and their description. These are usable within the task. Same thing goes for any autowear task, they are usable after calling the task.
For example, in my task, after finding the contact, I have an AutoWear confirmation screen with the picture of my contact, his name, and the message I dictated. And following that I have an if %awmessage (the output of this confirmation screen) is different to cancel, then send the message.
Hope this helps a bit!
Thanks buddy, i will try and emulate this tonight once the kids are in bed. Whatsapp was one of the things i have been thinking of doing, just wish there was a way of bringing up a previous conversation without waiting for a new message.
well maybe you can capture the messages as they come, along with the sender's name, and save them in a temp file. Then create an autowear screen that shows the content of this file when requested... but I guess it would be very difficult to make it work perfectly (especially with groups).
I have managed to create and implement a mobile data on and off switch into my interactive notification popup for system settings using tasker, taskerwear and autoinput.
I now have the ability to switch wifi, mobile data, gps on and off as well as high and low accuracy location services and change profiles from one notifaction popping up.
left watch behind
Currently trying to set up a tasker profile that when i get disconnected from my watch will activate gps, stores the location, notifies you where it is and shows you on the map.
Hopefully will never need it but you never know. I.e you leave it in the gym, at work etc
Is there already something that does something similar as struggling at the moment but will crack on if there isn't.
Any one let me know about how to get nearby cell tower ID in a single variable.
Otherwise, how to convert the context in profile as a task.
Ty
Sent from my Micromax A58 using XDA Free mobile app
I'm sorrlearning tasker but i think if you create a new profile that activates when you connect to that cell tower. Then create a task and set variable %whateveryouwantto to %CellID.
You should only have to do that profile once and the variable will be set and you can use it in your profiles and tasks.
On another note i got my lost watch profile working like a charm.
Great Job
TheKaser said:
my main use for autowear is to send whatsapp messages from scratch (whatsapp currently only allows to reply to messages).
To achieve this I open an AutoWear Voice Screen by shaking the watch, and say "write to XXXX and say YYYY". This triggers an AutoVoice profile configured to react to "write to (?<contact>.+) and say (?<message>.+) (using Regex)
Inside the task, I do an WhatsTasker plugin contact search of the variable %contact generated by the regex command. Once found, I text the %message to this contact using whatstasker.
The best thing to do is to read the variable descriptions in the task. For example, you create your profile of AutoVoice Recognized. Inside it, before clicking configuration, you can see all the local variables available and their description. These are usable within the task. Same thing goes for any autowear task, they are usable after calling the task.
For example, in my task, after finding the contact, I have an AutoWear confirmation screen with the picture of my contact, his name, and the message I dictated. And following that I have an if %awmessage (the output of this confirmation screen) is different to cancel, then send the message.
Hope this helps a bit!
Click to expand...
Click to collapse
It sounds great :good:
May you please share your work with screenshots or something else so I can make it work for me?
Thanks in advance and best regards
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.
Sicariux said:
Greetings everyone,
i63.tinypic.com/20jsimh.png
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 )
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.
Click to expand...
Click to collapse
It looks like a great project.
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 )
Click to expand...
Click to collapse
What about checking the network traffic to know whether the user is browsing or not?
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.
Click to expand...
Click to collapse
Even Open Source? That rocks.
XDA's Tasker subforum isn't that popular. You might wanna post your project on reddit too, where the Tasker community is way bigger and more popular:
https://www.reddit.com/r/tasker/. Let us know if you'll post it there too.
I'm looking forward for this project. Personally, I don't think I would use this as I don't think I really need it (although it doesn't hurt to have an anti-theft), but I'd like to see how it is done, if you're gonna make it Open Source.
Good luck!
Hi and thanks for your reply!
What about checking the network traffic to know whether the user is browsing or not?
Click to expand...
Click to collapse
Do you mean any random network traffic? in that case, a simple incoming whatsapp message could trigger the browser variable and set it to "true".
I will try reddit ... I have tried posting it in the official Tasker forums, but the my post is still awaiting moderator approval after a long time.
Since i've posted this thread, I've created new functions already like video recording (microphone audio included) the phone screen for 10 seconds and upload it to google drive.
I haven't seen this option on any other anti-theft yet. In a case of emergency, you could literally watch the thief do things on your phone and also hear him talking.
Since it's going be to open-source, it's highly customizable. You could change the icons, add new functions, remove functions , change the styling to your own wishes and improve the "web app" overall.
For those interested, Since the first post, I've added more options and starts looking good
https://youtu.be/T9aKmLTujik
For rooted users, you could make an add-on app that the user puts in the /system partition and, in case of factory reset, installs Tasker and restores it's data.
That way, the user has a chance of finding their phone even if the thief performs a factory/hard reset.
EDIT: Are your files available? I can't seem to find them.
Vagelis1608 said:
For rooted users, you could make an add-on app that the user puts in the /system partition and, in case of factory reset, installs Tasker and restores it's data.
That way, the user has a chance of finding their phone even if the thief performs a factory/hard reset.
EDIT: Are your files available? I can't seem to find them.
Click to expand...
Click to collapse
With the new Android versions, this is not a reliable thing anymore. This is the same reason Cerberus App stopped offering a special APK that could be installed in the /system by flashing it.
Also, it would be very difficult to have an add-on app install Tasker, AutoRemote, FolderSync and other plugins it needs automatically and configure them too.
I haven't made my files available yet. I am still perfecting it and awaiting community tips and input to expand the app more before releasing the source-files.
Morning all, somewhat novice to tasker but I enjoy playing around with it and learning more about the operation. I have a bit if an issue I have been trying to sort out for some weeks but haven't been able to get it done. perhaps someone can assist.
I am running on a Nexus 6, recently rooted and ROM'ed.
On my device I am running my standard carrier number and a GV number (Through the app). While ago, I made a task to read SMS its programmed something like this:
T- AutoNotification Intercept
event behavior: True
Notification type: only created notifications
persistency type: both
Notification apps: Messages, voice ....
T-edit: Say
Text: %anapp %antitle %antext
Respect audio focus: off
The task used to pause any podcast/music playing before reading the message. A recent update has caused the function to not work anymore.
Did some reading and tried to use the media control buttons to pause podcast/music, read message, resume podcast/music by setting CMD to pause, toggle pause, and stop, before and after the task.. That worked reasonably well but had issues when I was not playing anything and the task triggered.
Tried to use "If %pmusic is set then media control pause, else Say: text: %anapp %antitle %antext"
Obviously it did not work because I am still confused.
I know tasker can set variables but I am not fully sure how they work together to get things done.
Thanks in advance for anyone who can contribute,