weewx driver that intercepts web traffic from internet 'bridge' devices such as Acurite Access, ObserverIP, OS LW30x, LaCross GW1000U, FineOffset GW1000
Hello
I ve seen when debug=1 in weewx.conf in main log there are this :
Dec 30 20:52:37 meteo-Ubuntu weewx-FROGGIT[1708329] DEBUG user.interceptor: raw packet: {'dateTime': 1672429957, 'usUnits': 1, 'rain_total': 0.32, 'barometer': 30.27, 'temperature_out': 56.6, 'humidity_out': 98.0, 'wind_speed': 3.1, 'wind_gust': 5.8, 'wind_dir': 146.0, 'dewpoint': 56.1, 'uv': 0.0, 'temperature_in': 67.2, 'humidity_in': 67.0, 'rain': 0.0} Dec 30 20:52:37 meteo-Ubuntu weewx-FROGGIT[1708329] DEBUG user.interceptor: mapped packet: {'dateTime': 1672429957, 'usUnits': 1, 'barometer': 30.27, 'outHumidity': 98.0, 'inHumidity': 67.0, 'outTemp': 56.6, 'inTemp': 67.2, 'windSpeed': 3.1, 'windGust': 5.8, 'windDir': 146.0, 'dewpoint': 56.1, 'rain': 0.0, 'UV': 0.0}
I want to separate this log to interceptor-weewx.log for example
I can use rsyslog.d to separate my logs but I dont know how to do this in interceptor.py
Hello I ve seen when debug=1 in weewx.conf in main log there are this :
Dec 30 20:52:37 meteo-Ubuntu weewx-FROGGIT[1708329] DEBUG user.interceptor: raw packet: {'dateTime': 1672429957, 'usUnits': 1, 'rain_total': 0.32, 'barometer': 30.27, 'temperature_out': 56.6, 'humidity_out': 98.0, 'wind_speed': 3.1, 'wind_gust': 5.8, 'wind_dir': 146.0, 'dewpoint': 56.1, 'uv': 0.0, 'temperature_in': 67.2, 'humidity_in': 67.0, 'rain': 0.0} Dec 30 20:52:37 meteo-Ubuntu weewx-FROGGIT[1708329] DEBUG user.interceptor: mapped packet: {'dateTime': 1672429957, 'usUnits': 1, 'barometer': 30.27, 'outHumidity': 98.0, 'inHumidity': 67.0, 'outTemp': 56.6, 'inTemp': 67.2, 'windSpeed': 3.1, 'windGust': 5.8, 'windDir': 146.0, 'dewpoint': 56.1, 'rain': 0.0, 'UV': 0.0}
I want to separate this log to interceptor-weewx.log for exampleI can use rsyslog.d to separate my logs but I dont know how to do this in interceptor.py
Can someone help me ?
Thanks Stef