myForecast weather addin
- Scallica
- Posts: 2797
- Joined: Mon Jun 06, 2011 7:09 pm
- Location: USA!
- HTPC Specs:
I recently reset WMC on my test system to evaluate EPG123. Now, MyForecast no longer starts. When I launch it, all that appears is a blue screen. I tried uninstalling and reinstalling it and receive the same results. Any suggestions?
HTPC Enthusiast / Forum Moderator - TGB.tv Code of Conduct
-
- Posts: 49
- Joined: Mon Jan 18, 2016 4:18 am
- Location:
- HTPC Specs:
Interesting - Never had this problem on my developer MCE box on which I constantly reinstall myForecast and test different versions of EPG123.Scallica wrote:I recently reset WMC on my test system to evaluate EPG123. Now, MyForecast no longer starts. When I launch it, all that appears is a blue screen. I tried uninstalling and reinstalling it and receive the same results. Any suggestions?
Here are some quick ideas ?
- Do you have any error logs in C:\Users\<YOUR USER NAME>\Documents\myForecast ? Check for file(s): myForecastLog_2016_XX_XX.txt.
- Can you delete the Config.xml inside C:\Users\<YOUR USER NAME>\Documents\myForecast and run myForecast again ?
- Have you tried installing some of the previous releases: https://github.com/nelinory/myForecast/releases ?
I will have a new release ready by the end of the week too.
- Scallica
- Posts: 2797
- Joined: Mon Jun 06, 2011 7:09 pm
- Location: USA!
- HTPC Specs:
I deleted the XML files. Also, I noticed I was using the beta release. Uninstalled the beta release and installed the 1.0.1 release. I re-added my API key and zip and now it is launching successfully. Thanks!nelinory wrote:Interesting - Never had this problem on my developer MCE box on which I constantly reinstall myForecast and test different versions of EPG123.Scallica wrote:I recently reset WMC on my test system to evaluate EPG123. Now, MyForecast no longer starts. When I launch it, all that appears is a blue screen. I tried uninstalling and reinstalling it and receive the same results. Any suggestions?
Here are some quick ideas ?
- Do you have any error logs in C:\Users\<YOUR USER NAME>\Documents\myForecast ? Check for file(s): myForecastLog_2016_XX_XX.txt.
- Can you delete the Config.xml inside C:\Users\<YOUR USER NAME>\Documents\myForecast and run myForecast again ?
- Have you tried installing some of the previous releases: https://github.com/nelinory/myForecast/releases ?
Also, I noticed that on the main screen, the city name is too far to the right and is chopped. In the configuration screen, the save, cancel, and about buttons should be on the bottom of the screen.
HTPC Enthusiast / Forum Moderator - TGB.tv Code of Conduct
-
- Posts: 49
- Joined: Mon Jan 18, 2016 4:18 am
- Location:
- HTPC Specs:
myForecast v1.0.2 released.
Enhancements
- Centered the whole layout.
- Cleaned up the temperature data on the screen. Now it also shows the correct unit - °F/°C. Removed the decimal point for the current condition temperature.
- The left daily forecast tile now shows the current day forecast (2 hours ahead of the current time).
- Added support for hourly forecast. You can now navigate to the current weather condition panel when selected it acts as a button. When clicked it hides the daily forecast data and shows the hourly forecast weather data (36 hours ahead). You can use the left/right button on the remote control to scroll thru the data. To go back to the default layout just click again on the current weather condition panel. The scheduled data refresh will also restore the default layout, i.e. hide the hourly forecast panel.
Bugfixes
- Fixed an issue where the myForecast start menu tile may override another custom start menu tile
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
Enhancements
- Centered the whole layout.
- Cleaned up the temperature data on the screen. Now it also shows the correct unit - °F/°C. Removed the decimal point for the current condition temperature.
- The left daily forecast tile now shows the current day forecast (2 hours ahead of the current time).
- Added support for hourly forecast. You can now navigate to the current weather condition panel when selected it acts as a button. When clicked it hides the daily forecast data and shows the hourly forecast weather data (36 hours ahead). You can use the left/right button on the remote control to scroll thru the data. To go back to the default layout just click again on the current weather condition panel. The scheduled data refresh will also restore the default layout, i.e. hide the hourly forecast panel.
Bugfixes
- Fixed an issue where the myForecast start menu tile may override another custom start menu tile
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
-
- Posts: 721
- Joined: Mon Nov 05, 2012 8:05 pm
- Location: Longmont, CO
- HTPC Specs:
Just installed the 1.0.2 release (was running the Beta) now it crashes every time it try to get the forecast with:
Ooops Catastrophic error.
Please check the log file for more details.
The log file contains:
02/29/2016 00:22:48.079 Error Length cannot be less than zero.
Parameter name: length
Stack: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at myForecast.WeatherModel.LoadCurrentConditionProperties(XmlNode currentConditionNode)
Ooops Catastrophic error.
Please check the log file for more details.
The log file contains:
02/29/2016 00:22:48.079 Error Length cannot be less than zero.
Parameter name: length
Stack: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at myForecast.WeatherModel.LoadCurrentConditionProperties(XmlNode currentConditionNode)
-
- Posts: 119
- Joined: Mon Jun 06, 2011 5:02 pm
- Location: Scotland
- HTPC Specs:
Loving this add-in. I already had a Weather Underground account which I use with an Android App and a Personal Weather Station (PWS) so I actually get my PWS info in the add-in!
Well done.
Cheers
Well done.
Cheers
-
- Posts: 657
- Joined: Tue Dec 20, 2011 11:05 pm
- Location:
- HTPC Specs:
Happened to me as well. I removed the files under the C:\Users\YOURNAME\Documents\myForecast folder and it worked. Had to reconfigure.stuartm wrote:Just installed the 1.0.2 release (was running the Beta) now it crashes every time it try to get the forecast with:
Ooops Catastrophic error.
Please check the log file for more details.
-Alan
-
- Posts: 721
- Joined: Mon Nov 05, 2012 8:05 pm
- Location: Longmont, CO
- HTPC Specs:
Tried that, No joy. Reconfigured and got the exact same error.
-
- Posts: 196
- Joined: Sun Aug 07, 2011 3:29 am
- Location:
- HTPC Specs:
Hmm, I just installed this last night on my rebuild, and got the same error.
-
- Posts: 49
- Joined: Mon Jan 18, 2016 4:18 am
- Location:
- HTPC Specs:
Can you post the content of your C:\Users\USER_NAME\Documents\myForecast\Config.xml. Please, mask the key. It should be something like:stuartm wrote:Just installed the 1.0.2 release (was running the Beta) now it crashes every time it try to get the forecast with:
Ooops Catastrophic error.
Please check the log file for more details.
The log file contains:
02/29/2016 00:22:48.079 Error Length cannot be less than zero.
Parameter name: length
Stack: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at myForecast.WeatherModel.LoadCurrentConditionProperties(XmlNode currentConditionNode)
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<ApiKey>XXXXXXXXXXXXXXXX</ApiKey>
<LocationCode>10001</LocationCode>
<WeatherUnit>Imperial</WeatherUnit>
<RefreshRateInMinutes>10</RefreshRateInMinutes>
<ClockTimeFormat>Hours12</ClockTimeFormat>
</Configuration>
-
- Posts: 49
- Joined: Mon Jan 18, 2016 4:18 am
- Location:
- HTPC Specs:
Do you have a data file inside: C:\Users\USER_NAME\Documents\myForecast ? For example if your zip code is 10001 the data file name would be wu_10001.xmlEmbiggens wrote:Hmm, I just installed this last night on my rebuild, and got the same error.
Can you attach the data file in a reply, if not can you provide the zip code you are using for the configuration ? Working on a version with some built in diagnostics so I can help you and stuartm.
-
- Posts: 721
- Joined: Mon Nov 05, 2012 8:05 pm
- Location: Longmont, CO
- HTPC Specs:
I haven't tried the 1.0.1 release will try it tonight.
There is a data file: wu_zmw.80503.1.99999
But it's quite large (89KB) so I hesitate to post it here.
here is my config file:
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<ApiKey>xxxxxxxxxxxxxxxx</ApiKey>
<LocationCode>zmw.80503.1.99999</LocationCode>
<WeatherUnit>Imperial</WeatherUnit>
<RefreshRateInMinutes>10</RefreshRateInMinutes>
<ClockTimeFormat>Hours24</ClockTimeFormat>
</Configuration>
There is a data file: wu_zmw.80503.1.99999
But it's quite large (89KB) so I hesitate to post it here.
here is my config file:
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<ApiKey>xxxxxxxxxxxxxxxx</ApiKey>
<LocationCode>zmw.80503.1.99999</LocationCode>
<WeatherUnit>Imperial</WeatherUnit>
<RefreshRateInMinutes>10</RefreshRateInMinutes>
<ClockTimeFormat>Hours24</ClockTimeFormat>
</Configuration>
-
- Posts: 49
- Joined: Mon Jan 18, 2016 4:18 am
- Location:
- HTPC Specs:
Thank you very much for the info stuartm. Once I used your zip code and cleared all cached data files I immediately identified the issue.stuartm wrote:I haven't tried the 1.0.1 release will try it tonight.
There is a data file: wu_zmw.80503.1.99999
But it's quite large (89KB) so I hesitate to post it here.
here is my config file:
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<ApiKey>xxxxxxxxxxxxxxxx</ApiKey>
<LocationCode>zmw.80503.1.99999</LocationCode>
<WeatherUnit>Imperial</WeatherUnit>
<RefreshRateInMinutes>10</RefreshRateInMinutes>
<ClockTimeFormat>Hours24</ClockTimeFormat>
</Configuration>
I have fixed it and uploaded an updated installer on GitHub. Please, remove the current release, download again myForecast v.1.0.2 from https://github.com/nelinory/myForecast/ ... tag/v1.0.2 and reinstall.
-
- Posts: 721
- Joined: Mon Nov 05, 2012 8:05 pm
- Location: Longmont, CO
- HTPC Specs:
Yep, that version works now without crashing.
Thanks
Thanks
-
- Posts: 196
- Joined: Sun Aug 07, 2011 3:29 am
- Location:
- HTPC Specs:
yeah I downloaded the update last night and it worked for me too. Thanks to you and stuartm for sorting it out.
- Scallica
- Posts: 2797
- Joined: Mon Jun 06, 2011 7:09 pm
- Location: USA!
- HTPC Specs:
There are plenty of royalty-free sun images you could use.nelinory wrote:Well, my graphical designer skills are severely lackingScallica wrote:Great job! How about a nicer icon for the WMC menu?
I will appreciate any help towards better application icon. .....maybe a new sets of weather icons too.
http://www.vecteezy.com/free-vector/sun
HTPC Enthusiast / Forum Moderator - TGB.tv Code of Conduct
-
- Posts: 657
- Joined: Tue Dec 20, 2011 11:05 pm
- Location:
- HTPC Specs:
So glanced at the weather tonight in 1.0.2 (about 9:50PM local), the logic is a little strange. The left cell is "TOMORROW" (tomorrow is Friday), next over is "FRI". "Tomorrow's" forecast is 39/40 degrees, mostly cloudy... but "Friday's" forecast is 32/62 degrees, partly cloudy. I'm assuming "tomorrow" is tonight, and "friday" is tomorrow. Either the wording is a little off, or there's two tomorrows that have different forecasts.
-Alan
-
- Posts: 49
- Joined: Mon Jan 18, 2016 4:18 am
- Location:
- HTPC Specs:
Well I was looking at the same thing last night too. Here are my thoughts..webminster wrote:So glanced at the weather tonight in 1.0.2 (about 9:50PM local), the logic is a little strange. The left cell is "TOMORROW" (tomorrow is Friday), next over is "FRI". "Tomorrow's" forecast is 39/40 degrees, mostly cloudy... but "Friday's" forecast is 32/62 degrees, partly cloudy. I'm assuming "tomorrow" is tonight, and "friday" is tomorrow. Either the wording is a little off, or there's two tomorrows that have different forecasts.
What kind of forecast data we get from the WeatherUnderground API?
1. Daily forecast data
- The API only gives the evening forecast for the current day(and the next 6 days) regardless of when you have requested the data. We receive one record per forecast day and it is always have a 7:00PM timesamp.
- This is the data that myForecast shows for forecast tiles #2-#6.
2. Hourly forecast data
- The API gives us 36 hours of forecast data starting from the next hour of the request, i.e myForecast requests the data at 5:31PM the first hourly forecast will be for 6:00PM.
- myForecast uses this data for forecast tile #1. Based on the previous discussions I have implemented the following (it could be totally wrong .. or just needs a bit of tweaking).
a. The title of forecast tile #1 is dynamically build as follows:
Code: Select all
If Current Hour >= 0 AND Current Hour < NOON -> SAYS TODAY
If Current Hour >= NOON AND Current Hour < 8PM -> SAYS TONIGHT
If Current Hour >= 8PM AND Current Hour < MIDNIGHT -> SAYS TOMORROW
The whole idea with forecast tile #1 was to make it dynamic so people can see the forecast for the current day. At this state the forecast tile #1 feels a bit funny at times as you have discoverer.
Any ideas/comments/suggestions on how to improved it are welcome.
-
- Posts: 6
- Joined: Tue Sep 23, 2014 1:56 pm
- Location:
- HTPC Specs:
Hello,
how to translate the application? (I am French)
how to translate the application? (I am French)
-
- Posts: 49
- Joined: Mon Jan 18, 2016 4:18 am
- Location:
- HTPC Specs:
I have not started working on the localization yet - It is on my to do list. The weather data coming from Weather Underground API is already available in multiple languages, I just need to do some ground work on myForecast to support multiple languages/translations. Probably will have the base functionality ready to be translated for the next release.Romain wrote:Hello,
how to translate the application? (I am French)