Formats for notification on screen ?

Post your questions and help other users.

Moderator: Martin

Post Reply
Bender64
Posts: 20
Joined: 25 Feb 2016 15:47

Formats for notification on screen ?

Post by Bender64 » 05 Jun 2016 10:07

Hello, can you help me where can i find all formats what can i use in notifications on screen or write text to file ?
For example :

{getDate(),dateformat,HH:mm:ss} >>> 12:04:23
{ format ??? } >>> connected wifi name ?

and others ...

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Formats for notification on screen ?

Post by Bushmills » 05 Jun 2016 11:13

what you have between curly brackets in your first example is a function. Other than functions you can put variable names between curly brackets.
In script actions and expression conditions, the curly brackets aren't needed around function, but where text would otherwise be used literally (as in notifications), you brace functions with curly brackets, to let the interpreter know that execution is wanted for those.
The list of available functions can be looked at in different places: Description of scripting language, or add a script action, and tap on the "?" symbol at the end of "script action" line, or tap the "Function..." button below the text editor window.

Bender64
Posts: 20
Joined: 25 Feb 2016 15:47

Re: Formats for notification on screen ?

Post by Bender64 » 06 Jun 2016 18:27

Thank you for the explanation but can not find how to setup popup notification which can tell me name of connected wifi

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Formats for notification on screen ?

Post by Bushmills » 06 Jun 2016 18:36

I'd use condition "active network type", test for WLAN, and take SSID from variable network_extra_info.

Bender64
Posts: 20
Joined: 25 Feb 2016 15:47

Re: Formats for notification on screen ?

Post by Bender64 » 06 Jun 2016 18:43

Thank you for help ;)

Post Reply