Get weather data from OpenWeatherMap and send them to Mackerel.
Export your OpenWeatherMap API key, city ID and Mackerel API key as below:
#!/bin/bash
export WEATHER_API_KEY='xxxxxxx'
export WEATHER_CITY_ID='0000000'
export MACKEREL_API_KEY='xxxxxx'
You might also need to install 'requests':
pip3 install requests
python3 weather2mackerel.py
MIT License