Sys-Vars

Post your questions and help other users.

Moderator: Martin

Post Reply
AMagicUser
Posts: 2
Joined: 18 Oct 2013 20:00

Sys-Vars

Post by AMagicUser » 18 Oct 2013 20:20

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!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Sys-Vars

Post by Martin » 19 Oct 2013 08:53

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:
19.10.2013 10:50:00: [ap1, ap2, ap3]
19.10.2013 10:50:10: [ap1, ap2, ap3]
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:
-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:
2013-10-19_105000,ap1,ap2,ap3
2013-10-19_105000,ap1,ap2,ap3
Regards,
Martin

AMagicUser
Posts: 2
Joined: 18 Oct 2013 20:00

Re: Sys-Vars

Post by AMagicUser » 20 Oct 2013 09:52

Thanks!
:)

Post Reply