Page 1 of 1

WiFi widget

Posted: 10 Dec 2014 11:18
by mechrekt
Hi,
I'm trying to do a simple widget to show the name of the wifi ssid where i'm connected to.

With the WiFi connected (all ssid) trigger I do the next action:

setWidgetElementProperty("WiFi WG copy","Text_2","text",ssid);


But the widget shows null.

Re: WiFi widget

Posted: 11 Dec 2014 17:21
by Martin
Hi,

Please try to use a known string to see if the widget is updated or not, I recommend to use a text that also contains the current time. Something like this:
setWidgetElementProperty("WiFi WG copy","Text_2","text","test {triggertime,dateformat,HHmmss}");

If this works, then the ssid variable was probably not available or null when the flow was executed. What triigger are you using? Did you execute the flow manually?

Regards,
Martin