Error getting weather data #56

Open
opened 2023-03-21 14:07:57 +00:00 by johns · 7 comments

WRN Error getting weather data error="Get "https://api.met.no/weatherapi/locationforecast/2.0/complete?lat=X&lon=Y": net/http: invalid header field value for "User-Agent""

(actual coordinates replaced by me with X and Y)

This is on Mobian, itd built from source 4cdd47311f.

WRN Error getting weather data error="Get "https://api.met.no/weatherapi/locationforecast/2.0/complete?lat=X&lon=Y": net/http: invalid header field value for "User-Agent"" (actual coordinates replaced by me with X and Y) This is on Mobian, itd built from source 4cdd47311f6d382aad9d965e7be84c395b2f65c9.

I wanted to add to this issue. Other than enabling Weather and specifying a location in the config file, I didn't see that there was anything I needed to do. I upgraded my Pinetime firmware to 1.13; itd is version is 1.1.0. After setting my watch face to PineTimeStyle, I don't see weather data, just the circle slash with the two dashes under it.

I wanted to add to this issue. Other than enabling Weather and specifying a location in the config file, I didn't see that there was anything I needed to do. I upgraded my Pinetime firmware to 1.13; itd is version is 1.1.0. After setting my watch face to PineTimeStyle, I don't see weather data, just the circle slash with the two dashes under it.
Owner

This should be fixed as of 254b675f2c.

This should be fixed as of 254b675f2c98451afc678234493f1360e4a989ab.

I checked my itd.toml file and weather is enabled. I changed the default Los Angeles for my locality, unless there are only a subset of cities I can use. Is there anything else I would need to do? Apologies for the basic question, but how can I get detailed debug logs that I can post? I don't see any errors when I run itd interactively. Thanks!

I checked my itd.toml file and weather is enabled. I changed the default Los Angeles for my locality, unless there are only a subset of cities I can use. Is there anything else I would need to do? Apologies for the basic question, but how can I get detailed debug logs that I can post? I don't see any errors when I run itd interactively. Thanks!
Owner

If you set the location and restarted ITD, it should work. There isn't anything else you need to do. You can get debug logs by running ITD_LOGGING_LEVEL=debug itd

If you set the location and restarted ITD, it should work. There isn't anything else you need to do. You can get debug logs by running `ITD_LOGGING_LEVEL=debug itd`

Thanks! I get this error:

"ERR Error initializing weather error="invalid character '<' looking for beginning of value"

I checked my config file, and I don't have a < character inside it.

Thanks! I get this error: "ERR Error initializing weather error="invalid character '<' looking for beginning of value" I checked my config file, and I don't have a < character inside it.

I wanted to revisit this. When I run itd with debug enabled, I no longer get any weather related entries. There are a series of "Characteristic available" messages that list other components. There are some entries that are blank, so maybe Weather is one of those? I do see weather is a component that stops when I shut down itd, so I assume it loaded. I tried reinstalling and the same thing is happening.

I wanted to revisit this. When I run itd with debug enabled, I no longer get any weather related entries. There are a series of "Characteristic available" messages that list other components. There are some entries that are blank, so maybe Weather is one of those? I do see weather is a component that stops when I shut down itd, so I assume it loaded. I tried reinstalling and the same thing is happening.
Owner

If you're using the latest version of InfiniTime, they've updated the weather service and I haven't gotten around to updating that part of my library yet.

If you're using the latest version of InfiniTime, they've updated the weather service and I haven't gotten around to updating that part of my library yet.
Sign in to join this conversation.
No description provided.