winds-mobi / winds-mobi-providers

Real-time weather observations: weather data providers
https://winds.mobi
GNU Affero General Public License v3.0
8 stars 12 forks source link

New direct provider (weather station) #61

Closed gereic closed 1 year ago

gereic commented 1 year ago

Hi, I'm the developer of GXAircom ground-stations. Is it possible to send weather-station-data directly from weatherstation to winds.mobi? Or do I have to setup a server, where the weather-stations sends the data and create a provider, which collects the data from the server.

ysavary commented 1 year ago

Hi @gereic,

For now, you have to create PR with a winds.mobi provider that reads data from your server.

gereic commented 1 year ago

Hi @ysavary , I want to start now to create a new provider. As I am a complete newbie, can you explain, how to setup an enviroment ? Following is not clear:

actually I have a windows-operating-system

ysavary commented 1 year ago

Hi @gereic,

I improved the Dockerfile and updated the README to make the development of a new provider easier with Docker.

Is all in the docker, or is the docker only for database and so on ?

By activating the docker compose profile scheduler, you can build and run the providers with docker. You can also run only one (new) provider with docker: https://github.com/winds-mobi/winds-mobi-providers/blob/main/README.md#and-test-it

which system is best for developing ? (linux or windows)

I'm working on MacOS but it should work on Linux and Windows.

gereic commented 1 year ago

@ysavary ,

When I want to run without compiling, it won't work.

docker run -it --rm --env-file=.env --network=winds-mobi-providers --volume=$(pwd):/opt/project --entrypoint=python winds.mobi/my_provider -m providers.my_provider

What do I wrong ? I started the command inside the project-directory like the other command. Do I have to do the build process different maybe ?

ysavary commented 1 year ago

Can you share your docker logs?

gereic commented 1 year ago

Seems to work now. Thank you.