Freeboard-SK Grib files
Hi, is there a way to display Grib weather files contents in Freeboard-sk? It would be a great option.
The goal is to use as much as possible Freeboard-sk and less as possible Opencpn.
On a Raspberry Pi 3, SignalK + Freeboard-sk is super efficient as it serves web browser clients on remote devices (like tablets).
Opencpn require a remote connection on the Pi3 (like Realvncviewer) or a hdmi display connected to it and it is a bit slow.
29 Replies
Freeboard-SK does not currently support loading GRIB data. This information is best suited to a map layer and Freeboard-SK can display these layers if they are available as a chart source.
Oh thank you for the reply.
So it means if the grib files are processed into a map layer, the magic could happen?
Maybe there is already a process to do this (I am a newbie) or even turn windy weather datas into map layer?
I will look for this.
There are some services that do this, all you need to add is the url to the source url.
Can you provide an example of such a service? Would like to give it a try.
Following is a chart definition of a service I have used for testing...
Greatly appreciated. I've put this in a file in
.signalk/plugin-config-data/resources-provider/resources/charts
. I see the chart layer in Freeboard. But when i toggle it, i don't see the layer. Anything else i should do?Nothing further, when enabled it should display.
It can take some time to download the tiles.
Ok, just to be sure, i should see wind veers overlayed on this map?

Should look like this....

Also check the chart layer order (Re-Order) to make sure the layer is above the world map and not hidden behind it.
It's above the World Map indeed. I can't move it above the Sea Map though for some reason. That shouldn't matter i guess, but to be sure i disabled that layer. I will give it some time to load and try later. I don't see any requests in the log to openportguide.de (to verify if the requests are actually made), is that correct?
In the brower tools under network you should see requests go out..

Ah that might be it

There are many requests for 9.png

Used Brave and Chrome (without blockers)
Could it be because i run signalk on http, not https?
It seems like the follwoing is happening:
- 301 are all redirects to https
- there it can't find the png
It can't find for example:
https://weather.openportguide.de/tiles/actual/wind_stream/0h/269/165/9.png
but it can find the example from openportfuide
https://weather.openportguide.de/tiles/actual/wind_stream/0h/1/0/0.png
So it looks like it has something to do with the x y coordinates and/or zoom.
Zooming out, than it works, seems to be able to get zoom level 2 and 3, and some (west of UK) level 4.
Is that indeed as expected?


The url was not correct 😉 this works better:
"url": "https://weather.openportguide.de/tiles/actual/wind_stream/0h/{z}/{x}/{y}.png"
With the zoom first instead of at the end.It only goes to a certain zoom level and a message is displayed that this is quite a bit older data

Thank you so far for your help in getting me up to speed, i will investigate this later to see if i can get more detailed and actual data onto Freeboard. Also to understand the relation between Grib files and the Weather API (i guess Grib tiles are treated as something separate from weather forecast data, though not sure).

The goal of the weather API is to surface data from weather services (i.e. forecasts, observations and warnings) in a common format for Signal K clients.
Does that include wind forecast? like grib files (but than in signalk format)?
It will include the values available from the weather service. The schema is aligned with the
environment.wind
paths in the spec.
Here is a link to the open API definition as it currently stands ..https://github.com/SignalK/signalk-server/blob/v2_api_weather/src%2Fapi%2Fweather%2FopenApi.json#L154
E.g. average speed, direction, max. gust.That is at a specific location if i understand it correcly?
I haven't looked into this at all yet. Will take a look at grib2json, but i guess you would also need to descrive a vector over a certain area or so if you would like to have the same sort of data as grib files (or just a lot of points in an area?)... obviously this might be way out of scope.
Yes .. data is returned for the location supplied.
Weather services will relate that position to a cell in their model and return the relevant data.
Thx helps... will look into this a bit more.
@AdrianP Would it make sense to have a local service/service that parses grib2 files and provides transparent tile maps to overlay the map on freeboardsk?
Sure, that would be the appropriate approach. The service / plugin could register as a chart provider and FSK would see it as just another chart layer to display.