Skip to content
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

Docker instructions not working(?) #5

Open
JohnCrabs opened this issue Mar 26, 2024 · 6 comments
Open

Docker instructions not working(?) #5

JohnCrabs opened this issue Mar 26, 2024 · 6 comments

Comments

@JohnCrabs
Copy link

I was following along with the docker installation as described in Setting-up-Docker-and-Docker-Compose-(Ubuntu-16.04-and-18.04.1) and it seems that this installation process is not working.

Could you please tell me what are the minimum resources for deploying a smartmet-server? Does the documentation still work or is it outdated?

@sirviot
Copy link

sirviot commented Mar 27, 2024

Hello, @JohnCrabs, and thank you for for your question. The Docker and Docker Compose installation guide here was written several years ago and mainly for internal use. It may be out dated and will be removed.

It is better to follow the official guides and documentation provided by Docker. See for example Install Docker Engine.

@apavenis
Copy link
Member

There is separate project for creating SmartMet server Docker image which is actively maintained:

https://github.com/fmidev/docker-smartmetserver

It could perhaps be used as start point. Currently image is based on RockyLinux 9

@JohnCrabs
Copy link
Author

Thank you very much! I will try to deploy the docker-smartmetserver and I will come back if I have more questions.

@JohnCrabs
Copy link
Author

Hello again. I think that I finally managed to deploy a smartmet-server inside a VM, but when i try to execute the command for downloading the data, it returns an error.

I execute the following command, as it is in the Docker Hub

mkdir -p $HOME/data/hirlam/surface
wget -O $HOME/data/hirlam/surface/$(date -u +%Y%m%d0000)_hirlam_europe_surface.sqd \ 
-S "https://opendata.fmi.fi/download?param=Temperature,TotalCloudCover,Precipitation1h,WindSpeedMS,Humidity,
Pressure,WeatherSymbol3&format=qd&producer=hirlam&origintime=$(date -u +%Y-%m-%dT00Z)&timestep=data"

image

I attach also the docker logs
smartmet_server_logs.txt

Do I have to install anything else for it to work properly?

Thanks in advance.

@sirviot
Copy link

sirviot commented Mar 27, 2024

Sadly the instructions for downloading a dataset from opendata.fmi.fi are a bit outdated as well. The response headers X-Download-Error show that the requested data producer is now unknown. This is because the example uses a deprecated data producer that is no longer availabe through the FMI's opendata API.

You could try for example

producer=harmonie_scandinavia_surface

You can also perhaps leave out the querystring field origintime. The download should fetch the latest availble dataset if no origintime is given in request.

@pekkine
Copy link

pekkine commented Mar 27, 2024

For development purposes, you might want to fetch data for a limited bounding box, e.g.,

https://opendata.fmi.fi/download?param=Temperature,TotalCloudCover,Precipitation1h,WindSpeedMS,Humidity,Pressure,WeatherSymbol3&format=qd&producer=harmonie_scandinavia_surface&bbox=25,60,26,61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants