[SOLVED]Add text to end of Variable

Posted on
Thu Jan 02, 2014 3:29 pm
noefresh offline
Posts: 119
Joined: Sep 10, 2013

[SOLVED]Add text to end of Variable

I'm polling a NetAtmo for indoor/outdoor temperatures. I'd like to add F° after the number so it's clearer in the remote UI. I tried doing this with the Modify Variable Action but it didn't seem to work. Any suggestions?

Thanks,
Noah

Posted on
Thu Jan 02, 2014 6:53 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Add text to end of Variable

Why not just add it to the control page element that displays the temp?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Jan 02, 2014 7:02 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Add text to end of Variable

I just use a simple script that fires on any change to a variable.

Code: Select all
set the value of variable "somevariable" to value of variable "somevariable" & " F" & (ASCII character 188)


Carl

Posted on
Thu Jan 02, 2014 8:58 pm
noefresh offline
Posts: 119
Joined: Sep 10, 2013

Re: Add text to end of Variable

Thanks Jay- I typically like to look at the raw variables in the iPhone App but I guess it's a good excuse to build some control pages. My main issue is we are accessing them on a variety of different devices- Mac, iPad, iPhone etc. Do you think responsive control pages are coming anytime soon?

Posted on
Thu Jan 02, 2014 9:44 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Add text to end of Variable

Depends on your definition of "anytime soon"... :wink:

Fully responsive custom pages would be extremely difficult if not impossible to do well without making it too difficult for normal users, though we have some ideas about how to make it a bit easier to transition.

However, it's not really that hard to design pages that look decent on multiple devices. And of course you can have as many as you like. I find that once you do the initial pages they don't often change enough to make editing a couple that big of an inconvenience. YMMV of course.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jan 03, 2014 8:38 am
noefresh offline
Posts: 119
Joined: Sep 10, 2013

Re: Add text to end of Variable

If I wanted to support mainly iPhone retina with some iPad Air and Mac desktop usage is there a size you'd recommend?

Posted on
Fri Jan 03, 2014 10:03 am
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Add text to end of Variable

It really depends on what types of controls and information you're showing on the page. I'd just pick each of the various retina screen sizes, throw a couple of things on them and just test them out on the various devices and see which one feels like it's going to do the trick for you.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jan 03, 2014 2:45 pm
noefresh offline
Posts: 119
Joined: Sep 10, 2013

Re: Add text to end of Variable

Great- will give it a try.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron