
OpenWeather
Connect OpenWeather to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your OpenWeather API key and the locations you want to track to pull weather data into the PostHog Data warehouse.
Create an API key in your OpenWeather account. A newly created key can take a couple of hours to activate.
OpenWeather has no list endpoint — every request is for a single coordinate — so enter one location per line as lat,lon (an optional label is allowed: lat,lon,label). For example:
51.5074,-0.1278,London
40.7128,-74.0060,New York
Each sync polls every location once. To accumulate a history of point-in-time snapshots, pick the append sync method on the table.
Configuration
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
Locations | textarea | Yes |
Linking OpenWeather to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select OpenWeather
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import