There are more issues with the package. Namely:Oops, thanks for letting me know. I'll attach the @resources folder with the other files, and the weather folder with the .ini file all in a folder. It would be great if I only had to edit the .ini file, but I can also follow the grafting idea mentioned above if not. Appreciate it!
- The APIKey has to be replaced, but it seems you did this, so this is alright.
- Replace the units=[#WeatherUnits[#WeatherUnits]] element in the URL option of the [mCurrentParent] measure of the catpuccin_weather\@Resources\WeatherData\WeatherParser.inc file by units=[#WeatherUnits]. No need for two embed variables.
- Replace the WeatherUnits=Metric variable stored into the catpuccin_weather\@Resources\styles.inc file, by WeatherUnits=M (or even better WeatherUnits=m). Additionally the possible values of this variable are:
- m - for metric units (temperatures in Celsius degrees, distances in kilometers).
- i - for imperial units (temperatures in Fahrenheit degrees, distances in miles).
- h - for hybrid units (temperatures in Celsius degrees, but distances in miles).
- The biggest problem is related to the [mLocationParent] measure (catpuccin_weather\@Resources\WeatherData\WeatherParser.inc file). This measure should take name of the place for which the skin should get the data and should return, among others, the geographical coordinates. These information should then be used by the [mCurrentParent] measure. But unfortunately the [mLocationParent] measure doesn't work. It probably can be fixed, but this requires more time (will be done later). For now, let's alter little bit the URL option of this last [mCurrentParent] measure, to let it using a geographical coordinates as variables (have to be added, as well). So:
- Add the LocationLat=XX and LocationLon=XX variables to the [Variables] section of the catpuccin_weather\@Resources\WeatherData\WeatherParser.inc file:Obviously you have to use the proper values. This is just an example, linked to Paris, France, but you have to add the coordinates of the needed place.
Code:
[Variables]...LocationLat=48.858889LocationLon=2.320041
- Replace the [&mLocationLat] and [&mLocationLon] parameters of the URL option of the [mCurrentParent] measure (into the same catpuccin_weather\@Resources\WeatherData\WeatherParser.inc file), by #LocationLat# and #LocationLon#. With this last alter, the above URL option will look this way: URL=https://api.weather.com/v3/wx/observations/current?geocode=#LocationLat#,#LocationLon#&units=[#WeatherUnits]&language=#Language#&format=json&apiKey=71f92ea9dd2f4790b92ea9dd2f779061 (note the replaced API Key as well).
- Add the LocationLat=XX and LocationLon=XX variables to the [Variables] section of the catpuccin_weather\@Resources\WeatherData\WeatherParser.inc file:
- Finally one more thing is needed: the above [mCurrentParent] measure has been disabled, which was a normal step while the geographical coordinates has been needed to be get online, but since now those have been replaced by variables, this is not needed anymore. So remove the Disabled=1 option of the above [mCurrentParent] measure (or comment it out, or replace it by Disabled=0).
Statistics: Posted by balala — Yesterday, 9:00 pm