Skip to content
This repository was archived by the owner on Jul 30, 2026. It is now read-only.

Repository files navigation

openweathermap_prometheus_python

GitHub Travis (.org)
An open source python script to fetch weather data OpenWeatherMap and expose it in a Prometheus format. It can be configured using a YAML file to fetch different locations/cities.

System requirements

Features

  • fetch data from OpenWeatherMap-API with configurable interval
  • configuration file can have city names or long/lat
  • data is exposed in Prometheus metrics format

Installing

  1. Clone the project.
  2. Install the required python libraries:
pip install prometheus_client PyYAML pyowm

Configuring project

Copy 'weather.yml.dist' to 'weather.yml' - change the settings to your needs.

References

License

MIT License

About

An open source python script to fetch weather data OpenWeatherMap and expose it in a Prometheus format.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages