Error getting weather data #56
Labels
No Label
Bug
Cantfix
Duplicate
Enhancement
External
Help Wanted
In Progress
Invalid
Question
Waiting
Waiting For Info
Waiting for Upstream
Wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Elara6331/itd#56
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
.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.
This should be fixed as of
254b675f2c
.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!
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.
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.
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.