Page 3 of 3

Re: Humidity Unit Tag?

Posted: Fri 22 Mar 2013 7:39 am
by steve
This is a guess, but perhaps changing

Code: Select all

set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain);
to

Code: Select all

set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain +"/hr");
would achieve what you want.

But as I said, this is a complete guess, because I know absolutely nothing about how any of this works. I hesitated before suggesting it, because hacking around in things that you don't understand is dangerous, as you have demonstrated on numerous occasions already. This change could have any number of unwanted side effects, some of which may not appear until some time later, and it may not be obvious what the cause is.

My advice would be to leave it alone unless you understand how the code works and what the effects are of any changes. But I thought I'd seen you say on another thread that you had written most of the code for your web site yourself? Are you not using Ken's code now?

Re: Humidity Unit Tag?

Posted: Fri 22 Mar 2013 8:04 am
by William Grimsley
steve wrote:This is a guess, but perhaps changing

Code: Select all

set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain);
to

Code: Select all

set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain +"/hr");
would achieve what you want.

But as I said, this is a complete guess, because I know absolutely nothing about how any of this works. I hesitated before suggesting it, because hacking around in things that you don't understand is dangerous, as you have demonstrated on numerous occasions already. This change could have any number of unwanted side effects, some of which may not appear until some time later, and it may not be obvious what the cause is.

My advice would be to leave it alone unless you understand how the code works and what the effects are of any changes. But I thought I'd seen you say on another thread that you had written most of the code for your web site yourself? Are you not using Ken's code now?
Hi Steve,

Yes, I'll think I will leave it as it is, for now.

What do you mean by "using Ken's code now?"

Thanks for your help,

William

Re: Humidity Unit Tag?

Posted: Fri 22 Mar 2013 8:08 am
by gemini06720
steve wrote:This is a guess...
Steve, I think you are right on that guess... ;)
steve wrote:This change could have any number of unwanted side effects, some of which may not appear until some time later, and it may not be obvious what the cause is.
Trust me on this, if the change is no made appropriately, the script will just ... die ... with no error message whatsoever... :twisted:
steve wrote:My advice would be to leave it alone unless you understand how the code works and what the effects are of any changes.
You must be addressing this reply to the one that like to split hair in eight ... :roll: ...I has been a blessing/relief to not have to see those kind of messages anymore... :mrgreen:

Re: Humidity Unit Tag?

Posted: Fri 22 Mar 2013 8:12 am
by steve
William Grimsley wrote:What do you mean by "using Ken's code now?"
I mean are you or are you not using the "Saratoga Templates" written by Ken True? In this thread - https://cumulus.hosiene.co.uk/viewtopic.php?f=25&t=9570 - you said "you may have not noticed, but most of my site is coded all by me".

Re: Humidity Unit Tag?

Posted: Fri 22 Mar 2013 4:10 pm
by William Grimsley
steve wrote:
William Grimsley wrote:What do you mean by "using Ken's code now?"
I mean are you or are you not using the "Saratoga Templates" written by Ken True? In this thread - https://cumulus.hosiene.co.uk/viewtopic.php?f=25&t=9570 - you said "you may have not noticed, but most of my site is coded all by me".
Yes, I am using the "Saratoga Templates" written by Ken True! :D

Re: Humidity Unit Tag?

Posted: Fri 22 Mar 2013 4:13 pm
by William Grimsley
steve wrote:This is a guess, but perhaps changing

Code: Select all

set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain);
to

Code: Select all

set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain +"/hr");
Thanks very much! Your fix worked! :D