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
AdrianP
AdrianP8mo ago
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.
Supairyacht
SupairyachtOP8mo ago
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.
Владимир Калачихин
I could do this in the GaladrielMap SK, but I don't see the point. What is your usecase?
AdrianP
AdrianP8mo ago
There are some services that do this, all you need to add is the url to the source url.
Bram
Bram4mo ago
Can you provide an example of such a service? Would like to give it a try.
AdrianP
AdrianP4mo ago
Following is a chart definition of a service I have used for testing...
{
"name": "Wind Vectors (XYZ)",
"description": "Wind vectors XYZ tiles",
"minzoom": 1,
"maxzoom": 19,
"serverType": "tilelayer",
"format": "png",
"url": "http://weather.openportguide.de/tiles/actual/wind_stream/0h/{x}/{y}/{z}.png"
}
{
"name": "Wind Vectors (XYZ)",
"description": "Wind vectors XYZ tiles",
"minzoom": 1,
"maxzoom": 19,
"serverType": "tilelayer",
"format": "png",
"url": "http://weather.openportguide.de/tiles/actual/wind_stream/0h/{x}/{y}/{z}.png"
}
Bram
Bram4mo ago
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?
AdrianP
AdrianP4mo ago
Nothing further, when enabled it should display. It can take some time to download the tiles.
Bram
Bram4mo ago
Ok, just to be sure, i should see wind veers overlayed on this map?
No description
AdrianP
AdrianP4mo ago
Should look like this....
No description
AdrianP
AdrianP4mo ago
Also check the chart layer order (Re-Order) to make sure the layer is above the world map and not hidden behind it.
Bram
Bram4mo ago
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?
AdrianP
AdrianP4mo ago
In the brower tools under network you should see requests go out..
No description
Bram
Bram4mo ago
Ah that might be it
No description
Bram
Bram4mo ago
There are many requests for 9.png
No description
Bram
Bram4mo ago
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.
Bram
Bram4mo ago
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?
No description
No description
Bram
Bram4mo ago
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.
Bram
Bram4mo ago
It only goes to a certain zoom level and a message is displayed that this is quite a bit older data
No description
Bram
Bram4mo ago
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).
AdrianP
AdrianP4mo ago
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.
Bram
Bram4mo ago
Does that include wind forecast? like grib files (but than in signalk format)?
AdrianP
AdrianP4mo ago
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.
Bram
Bram4mo ago
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.
AdrianP
AdrianP4mo ago
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.
Bram
Bram4mo ago
Thx helps... will look into this a bit more.
Ba2
Ba23mo ago
@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?
AdrianP
AdrianP3mo ago
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.

Did you find this page helpful?