Customizing weewx v1.3

Overview

At a high level, weewx consists of an engine that is responsible for managing a set of services. A service consists of a Python class with a set of member functions. The engine arranges to have appropriate member functions called when specific events happen. For example, when a new LOOP packet arrives, member function processLoopPacket() of all services is called.

To customize, you can

This document describes how to do all three.

The default install of weewx includes the following services:

Service Function
weewx.wxengine.StdWunderground Starts thread to manage WU connection; adds new data to a Queue to be posted to the WU by the thread.
weewx.wxengine.StdCatchUp Any data found on the weather station memory but not yet in the archive, is retrieved and put in the archive.
weewx.wxengine.StdTimeSynch Arranges to have the clock on the station synchronized at regular intervals.
weewx.wxengine.StdPrint Prints out new LOOP and archive packets on the console.
weewx.wxengine.StdProcess Launches a new thread to create reports, HTML, and images.

Customizing a Service

The service weewx.wxengine.StdPrint prints out new LOOP and archive packets to the console when they arrive. By default, it prints out time, barometer, outside temperature, wind speed, and wind direction.