Hi Pavel,
there's a tiny bug for the tooltip of the pressure-trend-arrow - it says "Rising/Falling with 0 hPa/h":
Inspector / pressure-trend-arrow tooltip
-
- Posts: 1645
- Joined: Wed Nov 18, 2009 9:58 am
- Location: Vienna, Austria
Inspector / pressure-trend-arrow tooltip
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Re: Inspector / pressure-trend-arrow tooltip
I have not seen any pressure change on my YoWindow yet ... it is using the information from my PWS.
But I had to deal with a similar situation (such as the pressure rising/falling with 0 hPa/h) in the PHP/AJAX scripts used with the Weather Display weather software. A while back I decided that when the pressure (or a temperature or a humidity or any other weather data for that matter) change was zero (nil) I would simply indicate that the pressure was steady.
Here is he code I have been using:
So, when the pressure is (either positive or negative) zero, the pressure is steady. As soon as the pressure changes (even by 0.01 hPa) then the pressure is not steady anymore and it is either rising or falling.
But I had to deal with a similar situation (such as the pressure rising/falling with 0 hPa/h) in the PHP/AJAX scripts used with the Weather Display weather software. A while back I decided that when the pressure (or a temperature or a humidity or any other weather data for that matter) change was zero (nil) I would simply indicate that the pressure was steady.
Here is he code I have been using:
Code: Select all
switch (true) {
case (($diffBaro >= 2.0)) : ... // Pressure Rising Rapidly
case (($diffBaro >= 0.7) and ($diffBaro < 2.0)) : ... // Pressure Rising Slowly
case (($diffBaro > 0.0) and ($diffBaro < 0.7)) : ... // Pressure Gently Rising
case (($diffBaro == 0.0) or ($diffBaro == -0.0)) : ... // Pressure Steady
case (($diffBaro < -0.0) and ($diffBaro > -0.7)) : ... // Pressure Gently Falling
case (($diffBaro <= -0.7) and ($diffBaro > -2.0)) : ... // Pressure Falling Slowly
case (($diffBaro <= -2.0)) : ... // Pressure Falling Rapidly
default : ... // Pressure Steady
}
- par
- Posts: 8629
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Inspector / pressure-trend-arrow tooltip
Fixed, see the next build.
I have also set display of 2 decimal digits when the pressure is measured in "Hg
Thanks!
I have also set display of 2 decimal digits when the pressure is measured in "Hg
Thanks!
Re: Inspector / pressure-trend-arrow tooltip
And what is wrong with displaying the hPa with 2 decimals???I have also set display of 2 decimal digits when the pressure is measured in "Hg
Once you have the time, I would sincerely enjoy having the '°C' temperature with 1 decimal, the 'hPa' pressure with at least 1 decimal, the '°C' feels like temperature with 1 decimal and both the 'cm' rain and snow measurements with at least 1 and if possible 2 decimals - the visibility is fine with 1 decimal - the UV Index (PLEASE, please, replace the 'Ultra violet index' text with the simple expressing 'UV Index') should always be a single unit with no decimal.
- par
- Posts: 8629
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Inspector / pressure-trend-arrow tooltip
Ray, I can easilty set the default values for decimal digits, but it is a big challenge to let the user to change the default settings.
That is the problem.
As soon as I have free time I will take care of your request.
I remember it.
And, by the way, your request revolves in my head for the past month.
That is the problem.
As soon as I have free time I will take care of your request.
I remember it.
And, by the way, your request revolves in my head for the past month.
Re: Inspector / pressure-trend-arrow tooltip
Pasha, are the default values saved into an XML file?par wrote:Ray, I can easilty set the default values for decimal digits, but it is a big challenge to let the user to change the default settings.
That is the problem.
Then how about letting some of us CREATE AND USE additional special personal configuration XML file that would never be overwritten by YoWindow but that would be read by YoWindow once YoWindow has read its default configuration XML file...
That second configuration XML file could/would contain all/any of the parameters the 'special' (and registered only) user would like to change and have displayed on his/her version of YoWindow, including the number of decimals.
Re: Inspector / pressure-trend-arrow tooltip
Does that mean that there is a lot of empty space in that head of yours... :mrgreen:par wrote:And, by the way, your request revolves in my head for the past month.
- par
- Posts: 8629
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Inspector / pressure-trend-arrow tooltip
No.gemini06720 wrote: Pasha, are the default values saved into an XML file?
Complicated.gemini06720 wrote: Then how about letting some of us CREATE AND USE additional special personal configuration XML file that would never be overwritten by YoWindow
Respect KISS method as I do.
Please, just wait and I will come up with a solution.
Re: Inspector / pressure-trend-arrow tooltip
OK, I have waited patiently for a day ... What solution have you come up with... :mrgreen:par wrote:Please, just wait and I will come up with a solution.