Hello,
I am trying to become independant from any hardware and keep mys sensors. So Im trying to use SDR protocol. I already succeed to interoperate with all my sensor, but having an issue on Wind Sensor.
I don't know why but my weewx station doesn't convert units from m/s to km/h on this sensor.
Here's the case :
sdr driver.
sensor WGR800 from Oregon Scientific.
weewx software : 3.9.2
Here's extract from my weewx.conf file :
[Station]
# Description of the station location
location = Albi - France
# Latitude and longitude in decimal degrees
latitude = 43.925
longitude = 2.19235
# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 179, meter
# Set to type of station hardware. There must be a corresponding stanza
# in this file with a 'driver' parameter indicating the driver to be used.
station_type = SDR
[SDR]
# This section is for the software-defined radio driver.
# The driver to use
driver = user.sdr
[[sensor_map]]
pressure = pressure.5:249.OSBTHGN129Packet
inTemp = temperature.5:249.OSBTHGN129Packet
outTemp = temperature.1:252.OSTHGR810Packet
outHumidity = humidity.1:252.OSTHGR810Packet
outTempBatteryStatus = battery.1:252.OSTHGR810Packet
windSpeed = wind_speed.0:175.OSWGR800Packet
windGust = wind_gust.0:175.OSWGR800Packet
windDir = wind_dir.0:175.OSWGR800Packet
windBatteryStatus = battery.0:175.OSWGR800Packet
rainRate = rain_rate.0:71.OSPCR800Packet
rain_total = rain_total.0:71.OSPCR800Packet
rainBatteryStatus = battery.0:71.OSPCR800Packet
UV = uv_index.1:151.OSUV800Packet
extraTemp3 = temperature.4:42.OSTHGR810Packet
[[deltas]]
rain = rain_total
[StdReport]
# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = /etc/weewx/skins
# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = /mnt/web/weewx
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Whether to log a successful operation
log_success = True
# Whether to log an unsuccessful operation
log_failure = False
####
# Each of the following subsections defines a report that will be run.
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = true
[[Belchertown]]
HTML_ROOT = /mnt/web/weewx/belchertown
skin = Belchertown
[[[Extras]]]
logo_image = ""
theme = auto
footer_copyright_text = BelchertownWeather.com
forecast_enabled = 1
forecast_alert_enabled = 1
darksky_secret_key = 6b61abf8db2c217a3cc1a80fd8a1d9a2
darksky_lang = fr
earthquake_enabled = 1
earthquake_maxradiuskm = 3000
twitter_enabled = 1
twitter_owner = PatOBrienPhoto
mqtt_websockets_enabled = 1
mqtt_websockets_host = mqtt.payrastre.fr
mqtt_websockets_port = 9001
mqtt_websockets_ssl = 1
mqtt_websockets_topic = weather_dev/loop
disconnect_live_website_visitor = 1800000
station_observations = barometer, visibility, inTemp, dewpoint, outHumidity, rainWithRainRate, UV, extraTemp3
site_title = Mon site météo
manifest_name = Mon site météo
manifest_short_name = Météo
[[Defaults]]
[[[Units]]]
# The following section sets what unit to use for each unit group.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'
[[[[Groups]]]]
group_altitude = meter # Options are 'foot' or 'meter'
group_degree_day = degree_C_day # Options are 'degree_F_day' or 'degree_C_day'
group_pressure = hPa # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
group_rain = mm # Options are 'inch', 'cm', or 'mm'
group_rainrate = mm_per_hour # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_speed = km_per_hour # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2 = km_per_hour2 # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature = degree_C # Options are 'degree_F' or 'degree_C'
# The following section sets the formatting for each type of unit.
[[[[StringFormats]]]]
centibar = %.0f
cm = %.2f
cm_per_hour = %.2f
degree_C = %.1f
degree_F = %.1f
degree_compass = %.0f
foot = %.0f
hPa = %.1f
hour = %.1f
inHg = %.3f
inch = %.2f
inch_per_hour = %.2f
km_per_hour = %.0f