For the standard skin that comes with weeWX, the file is skins/Standard/skin.conf. At the top of this chain is class weewx.tags.TimeBinder, an instance of which is included in the default search list. An example would be the current barometric pressure: $current.barometer Formally, weeWX first looks for the observation type in the record emitted by the NEW_ARCHIVE_RECORD event. For example, a packet may contain only temperature data, another only barometric data, etc. click site
Create an initializer for our new class. For example, for a tag $foo, the engine will scan down the list, trying each object in the list in turn. These are basically the values given in the skin dictionary, section [Labels][[Generic]]. The default install of weeWX includes the following services: The standard weeWX services Service Function weewx.engine.StdTimeSynch Arrange to have the clock on the station synchronized at regular intervals.
The first three columns are required. It takes a single argument, a name of a binding. It is not to be taken literally. Sometimes the firmware simply does it wrong.
Now we are ready to initialize an appropriate TimespanBinder object. Comprehensive example This example is designed to put together a lot of the elements above, including iteration, aggregation period starts and ends, formatting, and overriding units.