Hi,
Ensure to add a trigger to the flow first since this will provide the variable triggertime to the flow. The variable selection dialog should contain some example formats (when editing the action: Menu->Select Variable).
You can get the formatted time and date as follows:
/mnt/sdcard/screencap_{triggertime,dateformat,yyyyMMdd_HHmmss}.png
Please also check this page: Date Format Pattern
Regards,
Martin
DIY-Actions: Execute Command, Execute Root Command
Moderator: Martin
-
- Posts: 33
- Joined: 08 Mar 2013 12:45
Re: DIY-Actions: Execute Command, Execute Root Command
I need help. I can't find a way to execute pressing the " Back button (hardware key)" ?
Re: DIY-Actions: Execute Command, Execute Root Command
In the third post is a link to all key codes and their numeric equivalents. The numbers should work on all devices.
Martin: could you update that link to the first post so people find that more easily?
Martin: could you update that link to the first post so people find that more easily?
Re: DIY-Actions: Execute Command, Execute Root Command
Sure, added the link to the first post.
Re: DIY-Actions: Execute Command, Execute Root Command
The mv command as part of your shell script doesn't have Automagic variables within its scope. Two ways to solve that are:
1. Pass variables as command arguments to your script, read them in your script as positional parameters ("command line arguments"), or
2. use equivalent variables or command output, provided or generated by shell. For example, by
"mv file $(date +%s).ext"
1. Pass variables as command arguments to your script, read them in your script as positional parameters ("command line arguments"), or
2. use equivalent variables or command output, provided or generated by shell. For example, by
"mv file $(date +%s).ext"