Skip to content

An AmbientWeather API driver for the weewx weather software using JSON.

Notifications You must be signed in to change notification settings

themoosman/weewx-ambientweatherapi-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weewx AmbientWeather API Driver

This is an AmbientWeather API driver for weewx. This will work with any AmbientWeather stations that uploads data to ambientweather.net. I decided to go this route as the only way to get access to some infomration is via the Ambinent Weather API. Since I have a number of external temperature sensors I wrote this driver so I could pull that data into weewx.

This driver uses the AmbientAPI Python3 package to make the API calls.

This driver only works with Weewx 4.0+ and Python3.

Install

  1. Install the necessary Python packages
sudo -H pip3 install -r requirements.txt
  1. Install the extension
weectl extension install https://github.com/themoosman/weewx-ambientweatherapi-json/archive/master.zip --yes
  1. Modify weewx.conf using the snippets in this repo's weeex.conf
  2. Restart weewx

weewx.conf Overview

The following table outlines the weewx.conf station variables.

Variable Description
loop_interval How often the driver will make an API call. Becareful as Ambient Weather has limits
log_level Driver log level
log_file Location where the driver will log data. This can be None
api_url Ambient Weather API endpoint. You probably don't need to change this.
api_app_key API Application Key from your ambientweather.net website
api_key API Key from your ambientweather.net website
use_meteobridge Set to True if using Meteobridge, False is the default or leave commented out
station_mac Specify a specific station MAC address to return data. If blank or unspecified, then the first station in the list is returned.
hardware String to identify the hardware used
driver Don't change this value