-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Can we put the weather data server URL into an easier configurable place? #122
Comments
I guess this is the time to do it! Hopefully it will be easier for users to change the URL in case changes happen. |
Imagine the next time the new URL being longer than the old URL. Ad-hoc patching like what people are doing now won't work. |
New releases for 1.26 and master branch https://github.com/mate-desktop/libmateweather/releases |
Ad-hoc patching seems not working for some people running older Linux distributions. If they don't get the patch from distribution repository at the end, they probably need to compile the library by themselves. For where to put the URL information, those 3rd party URLs for example can be put into an extra text-format file in |
Excellent idea to use a currently already used file location for storing the URL(s) in! |
How is the average user going to know what the new weather service URL is? What if the latest URL was stored in a file on github, and the app would occasionally pull the file down and store locally. If it can't find the file on github then use the URL in the local file. |
That would be a great solution! It could be locally edited, but it could all happen automatically too..! |
With libmateweather from current git master I had no trouble showing weather for a nearby airport in the US |
It was my case and even recompiling the library didn't work. My guess is that it is related to another linked library (libsoup) doing the request. I have sent a PR to resolve the issue: #131 |
I have patched my patch-hack to not include |
Your patch is wrong. The search pattern should include |
Absolutely right, thanks, good catch. It seems I patched my patch way too hastily. |
If the average user can not find a new weather service URL (by a google search for instance, or in this particular case through a server response code / redirect), he / she should: Probably there wouldn't be /etc directory and/or dconf settings at all if such users would be a reference. I think some simple way to change this URL (or any other setting that can change over night) would be a great addition, as one has a much more simple way to resolve even temporary changes. For such an average user, nothing would become more complicated though. Meaning a benefit for those who can use it, and no loss for the others. Your proposal is just another exactly the same problem. Also a github file URL can change, so there would be a need to simply change that setting too. But how shall an average user know that... ;-) |
The weather data fails to be retrieved again because of the remote server change. #79 (comment)
If the URL isn't hardcoded in libmateweather.so, it will be a lot easier to get things corrected. We don't need to squeeze the last drop of efficiency for periodic weather information update.
The text was updated successfully, but these errors were encountered: