Archived
1
0
Fork 0
This repository has been archived on 2024-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
weewx-docker/user/extensions.py

27 lines
824 B
Python
Raw Normal View History

2022-01-30 22:11:34 +00:00
#
# Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com>
#
# See the file LICENSE.txt for your full rights.
#
"""User extensions module
This module is imported from the main executable, so anything put here will be
executed before anything else happens. This makes it a good place to put user
extensions.
"""
import locale
# This will use the locale specified by the environment variable 'LANG'
# Other options are possible. See:
# http://docs.python.org/2/library/locale.html#locale.setlocale
locale.setlocale(locale.LC_ALL, '')
import weewx.units
2022-07-12 21:57:25 +00:00
2022-01-30 22:11:34 +00:00
weewx.units.obs_group_dict['soilMoist1'] = 'group_percent'
2022-07-12 21:57:25 +00:00
weewx.units.obs_group_dict['luminosity'] = 'group_illuminance'
2022-07-20 14:43:43 +00:00
weewx.units.obs_group_dict['soilMoistBatteryVoltage1'] = 'group_volt'
weewx.units.obs_group_dict['soilTempBatteryVoltage1'] = 'group_volt'