myForecast weather addin

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#81

Post by nelinory » Sat Mar 07, 2020 4:38 am

myForecast v1.0.8 release.

Enhancements
- Added support for Tsl 1.2 protocol when calling Dark Sky ® API (Dark Sky ® API removed support for Tsl 1.0 and Tsl 1.1 which broke the old version)

Links at GitHub
- Introduction, configuration and source code: https://github.com/nelinory/myForecast (README.md is your friend)
- Download the latest release: https://github.com/nelinory/myForecast/releases

User avatar
aquadextrous

Posts: 107
Joined: Mon Jul 30, 2018 8:09 pm
Location: Bristol, UK

HTPC Specs: Show details

#82

Post by aquadextrous » Mon Mar 09, 2020 11:29 am

Thank you for the update, all working perfectly here :)
Great to see more add-ons still being supported :thumbup: :thumbup: :thumbup:

stuartm

Posts: 721
Joined: Mon Nov 05, 2012 8:05 pm
Location: Longmont, CO

HTPC Specs: Show details

#83

Post by stuartm » Mon Mar 09, 2020 7:58 pm

I installed your latest release but all I get is a popup about a Catastrophic Error and nothing else. The log just shows
repeatedly:
03/09/2020 13:41:28.992 Error The requested security protocol is not supported.
Stack: at System.Net.ServicePointManager.set_SecurityProtocol(SecurityProtocolType value)
at myForecast.WeatherModel.LoadWeatherData()

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#84

Post by nelinory » Wed Mar 11, 2020 12:03 am

stuartm wrote: Mon Mar 09, 2020 7:58 pm I installed your latest release but all I get is a popup about a Catastrophic Error and nothing else. The log just shows
repeatedly:
03/09/2020 13:41:28.992 Error The requested security protocol is not supported.
Stack: at System.Net.ServicePointManager.set_SecurityProtocol(SecurityProtocolType value)
at myForecast.WeatherModel.LoadWeatherData()
Hello stuartm,

I am surprised that you get this error with the latest v1.0.8 release - it happen on the previous v1.0.7 because Dark Sky ® API started rejecting requests with security settings Tls 1.0.
Well I have made a small hotfix v1.0.9 which only supports Tls 1.2 per Dark Sky ® API suggestions. Can you give it a try ?
Tested the release on my own WMC Windows 7 Home Premium and my test-bed WIndows 7 Pro with MCE.

Enhancements
- Removed support for Tls 1.0 and Tls 1.1. When calling Dark Sky ® API only Tls 1.2 will be used.

Links at GitHub
- Introduction, configuration and source code: https://github.com/nelinory/myForecast (README.md is your friend)
- Download the latest release: https://github.com/nelinory/myForecast/releases

stuartm

Posts: 721
Joined: Mon Nov 05, 2012 8:05 pm
Location: Longmont, CO

HTPC Specs: Show details

#85

Post by stuartm » Wed Mar 11, 2020 5:32 am

The 1.0.9 version behaves exactly the same. Perhaps the installer is not overwriting the old version with the new version? However I also tried doing an uninstall followed by an install and still no difference.

stuartm

Posts: 721
Joined: Mon Nov 05, 2012 8:05 pm
Location: Longmont, CO

HTPC Specs: Show details

#86

Post by stuartm » Fri Mar 13, 2020 8:50 pm

This was fixed with nelinory's help. He provided a debug version and it showed my system did not support TLS 1.2 This was because I long ago stopped allowing updates to my win 7 systems that were my HTPC's. I manually added KB3154518 to my HTPC systems and then the v1.0.8 release of myForecast started working properly. Thanks to nelinory for his kind help in solving this problem.

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#87

Post by nelinory » Sat Mar 14, 2020 3:12 am

myForecast v1.0.9 release.

Credits
Special thanks to stuartm for all the help with Tls 1.2 related error :thumbup:

Enhancements
- Removed support for Tls 1.0 and Tls 1.1. When calling Dark Sky ® API only Tls 1.2 will be used.
- Added application version to the log file entry.
- Added Tls 1.2 validation routine.
- Improved the error handling when Tls 1.2 is not supported on the host.
- Updated myForecast requirements with information of how to fix Tls 1.2 error.

Links at GitHub
- Introduction, configuration and source code: https://github.com/nelinory/myForecast (README.md is your friend)
- Download the latest release: https://github.com/nelinory/myForecast/releases

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#88

Post by nelinory » Wed Apr 01, 2020 1:49 pm

myForecast update:

Dark Sky ® API company have been acquired by Apple.
As of 04/01/2020 Dark Sky ® API does not accepts new sign ups. The existing API keys will function through the end of 2021.
Looking for a replacement weather API (need ~400 free calls per day + current weather + 5 days forecast + weather alerts). Any suggestions are welcome.

jachin99

Posts: 1293
Joined: Wed Feb 24, 2016 3:36 pm
Location:

HTPC Specs: Show details

#89

Post by jachin99 » Wed Apr 01, 2020 2:40 pm

Would open weather map work? https://openweathermap.org/price

User avatar
AJNegron

Posts: 15
Joined: Thu Nov 28, 2013 7:32 pm
Location:

HTPC Specs: Show details

#90

Post by AJNegron » Wed Apr 01, 2020 8:56 pm


DaveInPa

Posts: 71
Joined: Fri Oct 30, 2015 3:56 pm
Location:

HTPC Specs: Show details

#91

Post by DaveInPa » Thu Apr 02, 2020 1:20 pm

stuartm wrote: Fri Mar 13, 2020 8:50 pm This was fixed with nelinory's help. He provided a debug version and it showed my system did not support TLS 1.2 This was because I long ago stopped allowing updates to my win 7 systems that were my HTPC's. I manually added KB3154518 to my HTPC systems and then the v1.0.8 release of myForecast started working properly. Thanks to nelinory for his kind help in solving this problem.
I am in a similar situation. I stopped updates a long time ago.
Where did you find KB3154518? I am not able to find it. It looks like it was absorbed in a later update.

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#92

Post by nelinory » Thu Apr 02, 2020 1:32 pm

DaveInPa wrote: Thu Apr 02, 2020 1:20 pm
stuartm wrote: Fri Mar 13, 2020 8:50 pm This was fixed with nelinory's help. He provided a debug version and it showed my system did not support TLS 1.2 This was because I long ago stopped allowing updates to my win 7 systems that were my HTPC's. I manually added KB3154518 to my HTPC systems and then the v1.0.8 release of myForecast started working properly. Thanks to nelinory for his kind help in solving this problem.
I am in a similar situation. I stopped updates a long time ago.
Where did you find KB3154518? I am not able to find it. It looks like it was absorbed in a later update.
I have posted the link on GitHub myForecast page - "Requirements" section. Here is the link: https://support.microsoft.com/en-us/hel ... -framework

jachin99

Posts: 1293
Joined: Wed Feb 24, 2016 3:36 pm
Location:

HTPC Specs: Show details

#93

Post by jachin99 » Thu Apr 02, 2020 2:54 pm

Might not be helpful for those outside of the US but the national weather service has a weather API. https://api.weather.gov/

stuartm

Posts: 721
Joined: Mon Nov 05, 2012 8:05 pm
Location: Longmont, CO

HTPC Specs: Show details

#94

Post by stuartm » Thu Apr 02, 2020 5:00 pm

I think that is the actual link to get to the API. This link is for info about using the API: https://www.weather.gov/documentation/services-web-api

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#95

Post by nelinory » Thu Apr 09, 2020 1:35 pm

It appears that the https://openweathermap.org have a nice free tier - thanks jachin99 for the tip. They also provide an easy way/guide to migrate from DarkSky API calls to OpenWeatherMap API calls. I will build a myForecast prototype using OpenWeatherMap API as weather provider and see how it goes.

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#96

Post by nelinory » Sun May 17, 2020 2:24 pm

myForecast v1.1.0 release.

Enhancements
- Replaced Dark Sky ® API with OpenWeather ® API, due to Dark Sky ® API discontinuing the free access after been acquired by Apple.
- Rain/Snow precipitation is shown in inches/mm based on the weather units. It is expected precipitation by volume not probability of precipitation (not available in OpenWeather ® API).
- Weather alerts are provided by National Weather Service (https://www.weather.gov) and they are only available for location coordinates within continental US.

Note
- myForecast v1.0.9 should work fine until the end of 2021 when the Dark Sky ® API will be shutdown. Upgrade to OpenWeather ® API version is not required at this time.

Links at GitHub
- Introduction, configuration and source code: https://github.com/nelinory/myForecast (README.md is your friend)
- Download the latest release: https://github.com/nelinory/myForecast/releases

boxcar32

Posts: 4
Joined: Sat Mar 23, 2019 11:40 am
Location:

HTPC Specs: Show details

#97

Post by boxcar32 » Thu May 28, 2020 11:28 am

Thanks for the Apple info. Guess I will have to redo my python weather script for my lcd 2x20 screen using openweather.

vanleeuwen

Posts: 4
Joined: Mon Apr 01, 2019 4:45 am
Location:

HTPC Specs: Show details

#98

Post by vanleeuwen » Sun Sep 06, 2020 12:09 pm

Anyone else getting Invalid API Key message with a valid API?

I checked again and API matches the default api from my account but still get error. Was working before on v1.1.0

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#99

Post by nelinory » Tue Sep 22, 2020 2:26 pm

vanleeuwen wrote: Sun Sep 06, 2020 12:09 pm Anyone else getting Invalid API Key message with a valid API?

I checked again and API matches the default api from my account but still get error. Was working before on v1.1.0
My Forecast v1.1.0 works fine. Do you still have an issue with the API key ? You can use the following URL (just replace XXXXXXXXX with your API key) to test if the key works:

Code: Select all

https://api.openweathermap.org/data/2.5/onecall?lat=40.7127&lon=-74.0059&exclude=minutely&appid=XXXXXXXXX&lang=us&units=imperial

nelinory

Posts: 49
Joined: Mon Jan 18, 2016 4:18 am
Location:

HTPC Specs: Show details

#100

Post by nelinory » Mon Oct 12, 2020 5:37 pm

myForecast v1.1.1 release.

Enhancements
- OpenWeather ® API now provides "Probability of precipitation" in percentage. Expected precipitation by volume is replaced with probability of precipitation (POP) on the daily/hourly forecast screen.
- Updated the weather alerts functionality to use the new OpenWeather ® API weather alerts data.

Links at GitHub
- Introduction, configuration and source code: https://github.com/nelinory/myForecast (README.md is your friend)
- Download the latest release: https://github.com/nelinory/myForecast/releases

Post Reply