-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weather forecasting open thread #71
Comments
I did not manage to use it in the app yet, simply cause I'd need to have a gps signal right now all the time which is not possible inside buildings e.g. (I just found a tool that allows me to fake gps incl. the height information.) However, I do watch this change for quite some time with a "classical" weather station that effectively uses the algorithm outlined. The experience there is that it works quite reliable, as is to be expected (it's a textbook algorithm, right ;), especially, wrt upcoming wind / storm warnings. As soon as the stations alerts go off, I can easily tell that I'll have an official strong wind or gale warning for the area in my mailbox. In principle, one could even implement the geostrophic wind scale and, depending on the latitude from GPS, give an estimate for the upper level of the wind to be expected. The main drawback of my station is (and here your app can improve easily and this rose my interest initially) that one can not read of actual values. It just gives a tendency of relative values for the last 12h and a warning if the levels programmed are reached. Right now I use values from an official site located close by. This requires internet and only works at home as otherwise you'd need to find such a station first etc.pp. Thus, I'd find it nice to have a vertical ruler to your scale, so one could read the time difference and value easily, and probably a simple csv export every n hours.
I would suggest to go for this as it effectively sets the level (sensitivity) of wind warning (~ pressure gradient). A suitable level can be preset, but it might depend a bit on your surroundings, so it should be adjustable for what you call Also for gale warnings a setting for the level would be good. Officially, 10Bft is called a storm, some would argue that an 8 or a solid 6 is quite a bit of wind ;) Plus, the gradient only gives an idea of the geostrophic wind without any reduction due to friction etc. Depending on your surroundings you'll feel much less or almost that value.
This should be enough given the fact that the gradient is a symmetric thing. If you do want to improve further you could consider: do I move towards the centre of the depression or away from it? Depending on the direction it either steepens or flattens the gradient experienced. (The effect would be negligible if your speed is << the speed of the low in question.) However, as there is no easy way to tell (on the device, that is) how you're moving it would require manual input for the direction, measurement of the actual speed of movement and, hence probably overcomplicate things. |
Thank you for all that feedback! I can definitely add a better vertical scale to the chart (and I can look into adding the time values as well). The CSV export may be nice for some users, I'll put it as a low priority feature request though (technically Trail Sense stores the pressures in CSV format already, it is just in the app's local storage). I have to do more research into the geostrophic wind scale to see if it would be feasible to derive from a phone's sensors, but it would definitely be useful if it could be done. As for the heading into the storm vs away that could be possible (given that the user has the appropriate settings enabled for GPS). I can do more research into that, but it will be low priority for now. I created an issue for each of these so you can see there progress/know they are on my radar. |
It would probably be a nice addition if the weather notification would not just tell that the app is monitoring in the background, but also give some data like current pressure, tendency over the last 3h. Maybe reusing the forecast icon from the main screen and it's title:
Also, I'd suggest that tapping the notification guides you to the weather page instead of the compass, but this may depend on the general idea for the notifications. |
For those of you using the weather forecasting, how accurate is it for you?
This forecast is only using your phone's barometer, so I would expect some inaccuracies as that is inherent to barometric forecasting, but I can tweak the sensitivity if needed (or put a setting in place if there is mixed feedback).
For reference, the algorithm I am using is:
The algorithm was constructed based on various recommendations from many websites. As you can tell, there are a few parameters which can be tuned (storm threshold, fast threshold, slow threshold), though if I were to create a setting for this, I would prefer two settings at max for this: a storm detection sensitivity (already present in latest master branch, though the values are predetermined) and a weather sensitivity value (which will be scale for the fast or slow thresholds).
The text was updated successfully, but these errors were encountered: