> So I have FolderSync installed along with Tasker Pro. In Tasker I'm using the FolderSync plugin to sync media folders between my phone and an FTP server. Once complete I run a simple media scan app. To do this I've been using the Wait command and guessing how long it takes to sync the folder before running the media scan but this varies drastically from sync to sync. (could be 2 seconds, could be 5 minutes) Is there a way to have Tasker wait and know when the sync is complete before it continue to the next action?
The way I did this was just after the folder sync action I would enable a profile with a context of state / app / folder sync : services option checked. Then in the enter task of that profile just use a action / task / stop and in the exit task do whatever you need to do after folder sync ends at the end of the task disable the folder sync profile.
> Here's what I did so far.. I created a Task named "Sync" with one entry in it:
> 1. FolderSync
> Configuration Folder1;;;SYNC
>
> I then created a second Task named "Scan" with the following:
> 1. Launch App
> App ScanMediaPlz
>
> Then I created a profile Add>Application>FolderSync and checked "Services" and then attached a task to it:
> 1. Stop
> Task Scan
>
> Now, shouldn't Running the Sync task satisfy the conditions of the profile? (FolderSync service runs and then stops) which should then trigger the Scan Task. This doesn't seem to be working. :(
>
Sounds like you have things mixed up. Here is haow it should look.
Task: Sync
1. FolderSync
Configuration Folder1;;;SYNC
2. Enable profile : Folder sync running
Profile: Folder sync running
Context: app / folder sync /services
Enter Task:
1. Stop
Exit task:
1. Launch App : App ScanMediaPlz
2. Disable profile: Folder sync running
To add a exit task - long press the enter task.
> Almost there... Where can I find "Enable Profile" and "Disable Profile"? I can't seem to find it in any of the Action Categories.
>
Action / tasker / profile status.
> Ok so this kind of works. The problem is the FolderSync service never shuts down after syncing and so the exit task never runs.
This does not happen on either of my devices. not sure what the issue could be. The run log would be the next step. menu / more / runlog
> I actually just realized FolderSync had a Scan Media option in it. LOL.. So sorry for wasting your time.
no worries .... :)
> Sorry I thought you were talking about Tasker's Media Scan option. This did the trick Thanks!
>
glad you got it sorted out....
> I've always just reacted to foldersync notification in tasker.
That is most likely the easiest way however you need access to the text within the notification to properly react to it. I am on Android version 4.1.2 and could not find a way to get this information. Auto notification did not work and notification listener is for a more current android version.
That somehow doesn't work for me. Neither a failed nor a successful notification triggers any of my events. I did turn off group notification and both apps are on the newest update.