-
Notifications
You must be signed in to change notification settings - Fork 94
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
Enigma - Weather Update Errors #102
Comments
Ya i have been trying to figure it out i have not been able to fix |
I'm pretty sure now that the old API has been discontinued altogether, and massiliattak's fix isn't a fix anymore, since for the past week, either the widget displays nothing, or the same weather info regardless of the day/hour/actual weather. Now you need to use queries, and since the output is either xml or json, the regexp parser should just be thrown out altogther and data should be processed in a sane manner. In the meantime, I modified my own YahooWeather.inc, backup yours beforehand then see if it works for you. Pressure, Wind chill and visibility are buggered, but that's entirely Yahoo's fault, they can't seem to correctly convert/store data. |
I read this... tried it, didn't seem to work. I didn't take the time to go into the code yet. |
@Epithumia That works perfectly! Thanks a bunch! |
@Epithumia Yep, you're right about Yahoo. Here are some screenshots of the two variants: If you are interested, I can drop the files here. |
i am interested yes plz On Thu, Apr 21, 2016 at 3:10 PM, massiliattak [email protected]
|
Updated weather code can be found at https://forum.rainmeter.net/viewtopic.php?p=122386#p122386 |
Working Yahoo weather code: https://forum.rainmeter.net/viewtopic.php?p=125192#p125192 |
Thanks 👍 |
@MIKAd3v please note in your screenshots above that visibility is listed with a unit of km/h. Visibility should have a unit of distance, not speed. I looked at the weather.inc file and found the section assigning this which is: [AtmoVisibility] Obviously, MeasureName2 should be something like "MeasureName2=UnitsDistanceChild", however there is no such measure that has been parsed. I verified that there is a distance unit it the XML response. I'm not sure what needs to be edited to correctly parse the distance unit for use here. Can you offer advice on what needs to change to fix this? |
@MIKAd3v I figured it out myself. I added the following to Measures in Weather.inc:
Then I edited the following section as follows [previous line commented out]:
Result as follows: |
I made an edit to add the atmospheric pressure change to Weather.inc. Although it is showing that variable in the tabular display, the "feels like" wind chill line is being overwritten. Where do I need to make an edit to make room for the additional line? `[Rainmeter] [Variables] [WeatherParent] ; ======================================= [LocationParent] [CityNameChild] [UnitsParent] [UnitsTempChild] [UnitsDistChild] [CalcUnitsPressure] [UnitsSpeedChild] [CheckAlerts] [CurrentConditionsParent] [ObservationTimeChild] [CurrentTempChild] [CurrentFeelsLikeChild] [CurrentConditionsChild] [CurrentIconChild] [CurrentElementsParent] [CurrentHumidityChild] [CurrentVisibilityChild] [CurrentWindParent] [CurrentWindSpeedChild] [CurrentWindDirectionChild] [CurrentWindDirectionCardChild] [CurrentWindUnitChild] [CurrentBarometricParent] [CurrentPressureChild] [CurrentChangeChild] [TodayGeneralParent] [SunriseChild] [SunsetChild] [TodayDayConditionsParent] [TodayNightConditionsParent] [TodayDayIconChild] [TodayDayConditionsChild] [TodayNightIconChild] [TodayLowChild] [TodayHighChild] [TodayDayElementsParent] [TodayNightElementsParent] [TodayDayPrecipChild] [TodayNightPrecipChild] [Day1ConditionsParent] [Day1ConditionsChild] [Day1IconChild] [Day1GeneralParent] [Day1NameChild] [Day1LowChild] [Day1HighChild] [Day1ElementsParent] [Day1PrecipChild] [Day2ConditionsParent] [Day2ConditionsChild] [Day2IconChild] [Day2GeneralParent] [Day2NameChild] [Day2LowChild] [Day2HighChild] [Day3ConditionsParent] [Day3ConditionsChild] [Day3IconChild] [Day3GeneralParent] [Day3NameChild] [Day3LowChild] [Day3HighChild] [Day4ConditionsParent] [Day4ConditionsChild] [Day4IconChild] [Day4GeneralParent] [Day4NameChild] [Day4LowChild] [Day4HighChild] ;--------------------------------------------------------------------- [Background] [Border] ;---------------------------------------------- [StyleWeatherNormal5dBackground] [StyleWeatherNormal5dBorderTodaySeparator] [StyleWeatherNormal5dBorderSeparator] [StyleWeatherNormal5dBorder] [StyleWeatherNormal5dBorder1] [StyleWeatherNormal5dBorder2] [StyleWeatherNormal5dBorder3] [StyleWeatherNormal5dBorder4] [StyleWeatherNormal5dBorder5] [StyleWeatherNormal5dBorder6] [StyleWeatherNormal5dBorder7] [StyleWeatherNormal5dBorder7] [StyleWeatherNormal5dMoxa] [StyleWeatherNormal5dMoxa5d] [StyleWeatherNormal5dMoxaDay2] [StyleWeatherNormal5dMoxaDay3] [StyleWeatherNormal5dText] [StyleWeatherNormal5dText5d] [StyleWeatherNormal5dTextDay2] [StyleWeatherNormal5dTextDay3] [StyleWeatherNormal5dTextSub] [StyleWeatherNormal5dLabel] [StyleWeatherNormal5dLabelDay2] [StyleWeatherNormal5dLabelDay3] [StyleWeatherNormal5dLabel5d] [StyleWeatherNormal5dLabelSub] [StyleWeatherNormal5dSeparator] ;---------------------------------------------- [StyleWeatherExtended5dBackground] [StyleWeatherExtended5dBorderTodaySeparator] [StyleWeatherExtended5dBorderSeparator] [StyleWeatherExtended5dBorder] [StyleWeatherExtended5dBorder1] [StyleWeatherExtended5dBorder2] [StyleWeatherExtended5dBorder3] [StyleWeatherExtended5dBorder4] [StyleWeatherExtended5dBorder5] [StyleWeatherExtended5dBorder6] [StyleWeatherExtended5dMoxa] [StyleWeatherExtended5dMoxa5d] [StyleWeatherExtended5dMoxaDay2] [StyleWeatherExtended5dMoxaDay3] [StyleWeatherExtended5dText] [StyleWeatherExtended5dTextDay2] [StyleWeatherExtended5dTextDay3] [StyleWeatherExtended5dText5d] [StyleWeatherExtended5dTextSub] [StyleWeatherExtended5dLabel] [StyleWeatherExtended5dLabelDay2] [StyleWeatherExtended5dLabelDay3] [StyleWeatherExtended5dLabel5d] [StyleWeatherExtended5dLabelSub] [StyleWeatherExtended5dSeparator] ;----------------------- [Icon] [Temp] [Desc] ;----------------------- [WindSeparator] [WindChill] [WindChillLabel] [WindSpeed] [WindSpeedLabel] [WindDirection] [WindDirectionLabel] ;----------------------- [AtmoSeparator] [AtmoHumidity] [AtmoHumidityLabel] [AtmoPressure] [AtmoPressureLabel] [AtmoChange] [AtmoChangeLabel] [AtmoVisibility] [AtmoVisibilityLabel] ;----------------------- ;[Day2Separator] [Day2TodaySeparator] [Icon2] [Temp2] [Date2] ;----------------------- [Day3Separator] [Icon3] [Temp3] [Date3] ;----------------------- [Day4Separator] [Icon4] [Temp4] [Date4] ;----------------------- [Day5Separator] [Icon5] [Temp5] [Date5] ;----------------------- [Day6Separator] [Icon6] [Temp6] [Date6] ;----------------------- [BorderBottom] |
So, for the past few months or so the weather in enigma for some reason is not working.
https://gyazo.com/59c44b07610bea0dca9ad30cb5900f68
As you can see here, everything but the weather is working. The weather does not seem to update.
Now, the logs show this.
https://gyazo.com/34ce5f74fedfb4b6a410456170867379
I tried downloading and replacing files from github to my computer directly but that does not help. The problem persists.
The text was updated successfully, but these errors were encountered: