Skip to content

External Weather Service

The Scheduler uses an external Weather service to handle weather conditions changes that could happen in the night. For VALIDATION this data is retrieved from files (check the folder services/environment/).

If you want to run the scheduler using the REALTIME mode, the system will require to have a properly running weather service instance. The events generated by the weather service are used to compute new plans if needed. Currently there are two instanteces already created in heroku, but they are mainly used by the on cloud scheduler versions.

The scheduler backend subscribes to weather changes in the url provided using the WEATHER_URL environment variable, if no variable is provided the default url http://localhost:4000 will be used.

The scheduler frontend connects to the weather service using the url provided using the VITE_WEATHER_URL and it is replaced at build time in its file, it no env is provided the http://localhost:4000 default value will be used. This UI connection is meant to send weather updates and display the latest change for each site.

You can start locally the weather service by cloning its repository and running the project using pnpm.

git clone git@github.com:gemini-hlsw/weather.git
cd git
pnpm install
pnpm dev