Hello,
how can I use System-Variables like e.g. "access_points" ? Do I have to ini them first?
I just want a simple flow:
Show all currently available APs in statusbar and save list to file.
Something like:
Script: a="APs: {access_points}"
Action: Show-Message: a
Thanks!
Sys-Vars
Moderator: Martin
Re: Sys-Vars
Hi,
Variables need to be initialized by a trigger, a condition or an action.
In this case you can either use a trigger WiFi Scan Results Available or a condition WiFi Available in the flow. The variables are available for the complete flow when using the trigger. The variables become available after the condition is executed when the condition is used.
For example a flow that is executed whenever the system has new scan results available:
-trigger WiFi Scan Results Available
-action Write To File: {triggertime,dateformat,dd.MM.yyyy HHmmss}: {accesspoints} (press enter to add a line break at the end)
-action Notification on Statusbar: {accesspoints}
alternatively:
-trigger Periodic Timer: every 5m
-condition WiFi Available:
-->false: -action Write To File: {triggertime,dateformat,dd.MM.yyyy HH:mm:ss}: {accesspoints} (press enter to add a line break at the end)
both flows will print something like the following to the file:
-action Write To File: {triggertime,dateformat,yyyy-MM-dd_HHmmss},{accesspoints,listformat,comma} (press enter to add a line break at the end)
which will print something like this:
Martin
Variables need to be initialized by a trigger, a condition or an action.
In this case you can either use a trigger WiFi Scan Results Available or a condition WiFi Available in the flow. The variables are available for the complete flow when using the trigger. The variables become available after the condition is executed when the condition is used.
For example a flow that is executed whenever the system has new scan results available:
-trigger WiFi Scan Results Available
-action Write To File: {triggertime,dateformat,dd.MM.yyyy HHmmss}: {accesspoints} (press enter to add a line break at the end)
-action Notification on Statusbar: {accesspoints}
alternatively:
-trigger Periodic Timer: every 5m
-condition WiFi Available:
-->false: -action Write To File: {triggertime,dateformat,dd.MM.yyyy HH:mm:ss}: {accesspoints} (press enter to add a line break at the end)
both flows will print something like the following to the file:
If you want to process the list in a spreadsheet app it's better to format the list to a comma separated list by using the listformat option:19.10.2013 10:50:00: [ap1, ap2, ap3]
19.10.2013 10:50:10: [ap1, ap2, ap3]
-action Write To File: {triggertime,dateformat,yyyy-MM-dd_HHmmss},{accesspoints,listformat,comma} (press enter to add a line break at the end)
which will print something like this:
Regards,2013-10-19_105000,ap1,ap2,ap3
2013-10-19_105000,ap1,ap2,ap3
Martin