Page 1 of 1

Add a new webtag

Posted: Mon 13 Jan 2014 2:34 pm
by milos.jirik
Hi Steve,

is it possible to add to the next edition of Cumulus new web tag <# RCapptemp> to display the current apparent temperature with an decimal point instead of comma?
Thank you

Milos

Re: Add a new webtag

Posted: Mon 13 Jan 2014 2:40 pm
by steve
Can I ask what you want it for? It's just that there are usually ways that you can do it for yourself, if using javascript or PHP, for example.

Re: Add a new webtag

Posted: Mon 13 Jan 2014 3:08 pm
by milos.jirik
Hi Steve,

in analogy to tags <#RCdew>, <#RCapptempTH> and <#RCapptempTL> I intend to use this tag for further expansion of web pages and other calculations in PHP. It is very difficult to re-insert this parameter to various websites and always bypassing this tag by script.
Thank you again.

Milos

Re: Add a new webtag

Posted: Mon 13 Jan 2014 6:30 pm
by William Grimsley
milos.jirik wrote:Hi Steve,

is it possible to add to the next edition of Cumulus new web tag <# RCapptemp> to display the current apparent temperature with an decimal point instead of comma?
Thank you

Milos
I thought apparent temperature was displayed as a decimal... :?:

Re: Add a new webtag

Posted: Mon 13 Jan 2014 7:09 pm
by steve
Some parts of the world use a comma as their decimal separator, so Cumulus automatically puts commas in values that have decimal parts. But for some purposes (e.g. for javascript and PHP etc) the commas have to be converted to decimal points.

Re: Add a new webtag

Posted: Mon 13 Jan 2014 7:11 pm
by William Grimsley
steve wrote:Some parts of the world use a comma as their decimal separator, so Cumulus automatically puts commas in values that have decimal parts. But for some purposes (e.g. for javascript and PHP etc) the commas have to be converted to decimal points.
Oh right. Is that Windows language settings?

Re: Add a new webtag

Posted: Mon 13 Jan 2014 7:23 pm
by PaulMy
Oh right. Is that Windows language settings?
To avoid endless unnecessary posting please read the Wiki or help before posting as it says above.

Paul

Re: Add a new webtag

Posted: Mon 13 Jan 2014 7:29 pm
by William Grimsley
PaulMy wrote:
Oh right. Is that Windows language settings?
To avoid endless unnecessary posting please read the Wiki or help before posting as it says above.

Paul
Ok. Where did anyone say about the Wiki before this post?

Re: Add a new webtag

Posted: Mon 13 Jan 2014 7:33 pm
by steve
milos.jirik wrote:I intend to use this tag for further expansion of web pages and other calculations in PHP.
So can you not replace the comma in your PHP? As "BT" has done in his Sager forecast scripts - using str_replace(), for example.

Re: Add a new webtag

Posted: Mon 13 Jan 2014 7:35 pm
by duke
Wiki
I think the suggestion was to make use of it.........William.

Re: Add a new webtag

Posted: Mon 13 Jan 2014 7:40 pm
by William Grimsley
duke wrote:
Wiki
I think the suggestion was to make use of it.........William.
Ok. Well, this issue isn't to do with me.

Re: Add a new webtag

Posted: Mon 13 Jan 2014 8:21 pm
by PaulMy
William Grimsley wrote:
duke wrote:
Wiki
I think the suggestion was to make use of it.........William.
Ok. Well, this issue isn't to do with me.
YES William the issue is directly to do and about YOU.

And sorry to get this off track for the OP.
Paul

Re: Add a new webtag

Posted: Tue 14 Jan 2014 12:51 pm
by milos.jirik
Hi Steve,

solutions like "BT" - using str_replace(), is not the right way. Thank you for all your effort and help, I will solve the problem differently.

Milos