-
Notifications
You must be signed in to change notification settings - Fork 29
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
"No weather data found." #152
Comments
If you turn on debugging for the Freeboard-SK plugin you should see messages that indicate what is happening. There needs to be a vessel position for else it will not fetch the data. Any data fetched by the plugin will appear in the data browser on the server under the |
Thanks a lot for the advice. Is there a way to fake the vessel position? |
You can enter information in "data fiddler" in the server admin UI or (what I use) is SKSim which you can install on the server via the app store. |
Thanks when I do that. I get this in the debug console. |
A call to the openweather API3 with my key gives this:
So I assume that the API works. |
So if you use your browser and go to: You should see data if you visit |
both of these api call render a empty response {}. |
This the log |
Thanks! I have found the problem. If the plugin is enabled before the vessel pos is available than it does not fetch any data. Workaround: restart freeboard-sk. Yet I might think this is not the intended behavior? |
This is the intended behaviour.... it tries three times to retrieve the vessel position before "sleeping".... This is so if there is no internet connection it does not continuously try to poll. |
I too am seeing 'No weather data found'. Debug log shows this so I know it is sort of getting there. May 12 10:55:49 2024-05-12T10:55:49.073Z @signalk/freeboard-sk *** Weather: data received.... However, I am also logging my signalk data to an influxdb and I get this error. May 12 10:56:44 ERROR: Write to InfluxDB failed. m [HttpError]: failure writing points to database: partial write: field type conflict: input field "value" on measurement "environment.forecast.temperature" is type float, already exists as type string dropped=5 at IncomingMessage. (/root/.signalk/node_modules/@influxdata/influxdb-client/dist/index.js:5:5671) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { statusCode: 422, statusMessage: 'Unprocessable Entity', body: '{"code":"unprocessable entity","message":"failure writing points to database: partial write: field type conflict: input field \"value\" on measurement \"environment.forecast.temperature\" is type float, already exists as type string dropped=5"}', contentType: 'application/json; charset=utf-8', json: { code: 'unprocessable entity', message: 'failure writing points to database: partial write: field type conflict: input field "value" on measurement "environment.forecast.temperature" is type float, already exists as type string dropped=5' }, code: 'unprocessable entity', _retryAfter: 0 } |
From the debug log the weather data has been fetched.
|
Does this mean it is having a problem uploading the position to meteo? Under 'self' -- log -- |
It appears that there is an issue parsing the data returned from OpenWeather. You can try calling the API from your browser to see what is returned for your position....
|
Does this mean that using weather forecast in freeboard-sk requires a paid subscription to openweather? |
You need a V3 API key. You have to register but only pay if you breach the free threshold for requests. You can set a maximum number of requests per hour in the user portal so you do not exceed the free limit. I suggest you do this as a failsafe. By default the plugin makes 1 request every hour so there should be no issue with billing. |
As an FYI there is a weather API in development and a plugin to use open-meteo. |
Thanks for your patience, working well now. After signing up for the One Call API 3.0 plan I then needed to create a new API key. It still didn't work with the original key. |
I have configured the openweather API v3 and have also checked if it is working. The API calls together with my key are working in the command line. Yet if I am using it through freeboard-sk I always get "No weather data found."
Unfortunately, the debug log did not help me either. Is there a trick how to get it enabled?
Thanks, best Stefan
The text was updated successfully, but these errors were encountered: