WiFi widget

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

WiFi widget

Post by mechrekt » 10 Dec 2014 11:18

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.

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

Re: WiFi widget

Post by Martin » 11 Dec 2014 17:21

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

Post Reply