Page 1 of 1
AJAX Humidity Problem
Posted: Sun 13 Jan 2013 3:27 pm
by William Grimsley
Hi Ken,
For some reason the AJAX Humidity unit "%" doesn't flash like all the other units when the ajax-dashboard.php updates?
Why is this happening?
Thanks
Will
Re: AJAX Humidity Problem
Posted: Sun 13 Jan 2013 9:47 pm
by saratogaWX
Will Grimsley wrote:Hi Ken,
For some reason the AJAX Humidity unit "%" doesn't flash like all the other units when the ajax-dashboard.php updates?
Why is this happening?
Thanks
Will
Two reasons,
1) the % is outside the <span class="ajax" id="ajaxhumidity"> ... </span> and only things inside the span are replaced.
2) the AJAX update for ajaxhumidity doesn't include the units (%).
The other weather variables include the units because they are selectable based on settings in the ajaxCUwx.js script -- Humidity is always in % irrespective of other units choices.
It's not a bug, it's a feature.
Re: AJAX Humidity Problem
Posted: Mon 14 Jan 2013 7:37 am
by William Grimsley
Hi Ken,
You haven't told me how to fix this...
Do I add something in the ajaxCUwx.js file?
Thanks for you help...
Will
Re: AJAX Humidity Problem
Posted: Mon 14 Jan 2013 11:55 am
by beteljuice
Leave it alone !
The figure will 'flash', if you change the script then any future updates will simply revert it back.
Re: AJAX Humidity Problem
Posted: Mon 14 Jan 2013 3:47 pm
by William Grimsley
I have...
I just can't understand why the "%" does not flash...
Re: AJAX Humidity Problem
Posted: Mon 14 Jan 2013 5:43 pm
by William Grimsley
Hi guys,
Ok, I've just been speaking to Steve.
It had to make some changes in the realtime.txt file.
I simply created a .txt file and named it "realtime.txt". Then, I put in all the realtime.txt tags and added a % after the tag <#hum>. Then, I used the "Files" tab in the Internet Settings to make Cumulus process, Realtime and FTP the file.
Then, after all that...it worked!
Thanks
Will
Re: AJAX Humidity Problem
Posted: Mon 14 Jan 2013 5:44 pm
by saratogaWX
Will Grimsley wrote:I have...
I just can't understand why the "%" does not flash...
Read (and understand) my first reply -- it has all the details of why the % unit doesn't 'flash'.
Read (and understand) BJ's comment - you can choose to change the behavior by altering both ajax-dashboard.php and ajaxCUwx.js, and afterwards, providing your own support for those mods as future releases of the two scripts occur.