Re: [weewx-user] Re: Belchertown station_observations bindings
I have just changed /etc/weewx/skins/Belchertown/json/weewx_data.json.tmpl:64: "barometer_trend": "$trend.barometer" to /etc/weewx/skins/Belchertown/json/weewx_data.json.tmpl:64: "barometer_trend": "$trend($data_binding='indoor_binding').barometer" Will see if the Barometer trend now reports correctly -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/51ab5575-a401-4ef0-8ea4-c56cfde418d4%40googlegroups.com.
Re: [weewx-user] Re: Belchertown station_observations bindings
So I decided to install weewx-mqtt on the secondary raspberry pi and send it to the same topic.. and it WORKS! {" "barometer_mbar": "968.689986891", "dateTime": "1581802530.0", "inHumidity": "62.084741", "inTemp_C": "20.7614171879", "extraTemp1_C": "18.292371", "usUnits": "17.0"} So now my station observations are working via the MQTT data.. the only thing not working is the Barometer trend arrow On Saturday, 15 February 2020 11:20:46 UTC, mercurystorm wrote: > > Nope loop packets > > if __name__ == "__main__": > import weeutil.weeutil > > > driver = BME280WXDriver() > > > for packet in driver.genLoopPackets(): > print(weeutil.weeutil.timestamp_to_string(packet["dateTime"]), > packet) > > > > On Friday, 14 February 2020 23:52:33 UTC, Pat wrote: >> >> I think I understand but to be certain; your Pi is only saving its values >> right to database? >> >> On Friday, February 14, 2020 at 6:43:28 PM UTC-5, mercurystorm wrote: >>> >>> I am not sending the data from the 2nd Pi via MQTT as it’s not real time >>> like wind etc from the weather station.. that data is being sent from mqtt >>> on the main pi with the rtl_433 dongle >>> >>> On Fri 14 Feb 2020 at 23:07, Pat wrote: >>> >>>> Are you using MQTT for updates? If I recall from a few months ago part >>>> of the challenge is that the station observation box is updated from the >>>> MQTT data packets, and I don't think MQTT is multiple binding capable. >>>> >>>> So I could potentially update a 2nd binding on initial load, but not on >>>> MQTT update. >>>> >>>> I have to look into this again >>>> >>>> On Friday, February 14, 2020 at 5:39:43 PM UTC-5, mercurystorm wrote: >>>>> >>>>> Attached, its two sql databases on the same server >>>>> >>>>> The graphs are working great! (Thank you!!) >>>>> >>>>> On Friday, 14 February 2020 22:23:42 UTC, Pat wrote: >>>>>> >>>>>> The station info box doesn't support multiple bindings... It's on my >>>>>> list of things to try and figure out but haven't had time to dedicate to >>>>>> it. Can you send me a sample of your additional database? I could use it >>>>>> as >>>>>> a sample set for testing. >>>>> >>>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "weewx-user" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/weewx-user/kyWW2BmGXoE/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> weewx...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/758a009a-1151-410f-b7a7-137dcdf0fd5b%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/758a009a-1151-410f-b7a7-137dcdf0fd5b%40googlegroups.com?utm_medium=email_source=footer> >>>> . >>>> >>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3e27ff43-f92a-40f2-b105-33c2d75b9e7a%40googlegroups.com.
Re: [weewx-user] Re: Belchertown station_observations bindings
Nope loop packets if __name__ == "__main__": import weeutil.weeutil driver = BME280WXDriver() for packet in driver.genLoopPackets(): print(weeutil.weeutil.timestamp_to_string(packet["dateTime"]), packet) On Friday, 14 February 2020 23:52:33 UTC, Pat wrote: > > I think I understand but to be certain; your Pi is only saving its values > right to database? > > On Friday, February 14, 2020 at 6:43:28 PM UTC-5, mercurystorm wrote: >> >> I am not sending the data from the 2nd Pi via MQTT as it’s not real time >> like wind etc from the weather station.. that data is being sent from mqtt >> on the main pi with the rtl_433 dongle >> >> On Fri 14 Feb 2020 at 23:07, Pat wrote: >> >>> Are you using MQTT for updates? If I recall from a few months ago part >>> of the challenge is that the station observation box is updated from the >>> MQTT data packets, and I don't think MQTT is multiple binding capable. >>> >>> So I could potentially update a 2nd binding on initial load, but not on >>> MQTT update. >>> >>> I have to look into this again >>> >>> On Friday, February 14, 2020 at 5:39:43 PM UTC-5, mercurystorm wrote: >>>> >>>> Attached, its two sql databases on the same server >>>> >>>> The graphs are working great! (Thank you!!) >>>> >>>> On Friday, 14 February 2020 22:23:42 UTC, Pat wrote: >>>>> >>>>> The station info box doesn't support multiple bindings... It's on my >>>>> list of things to try and figure out but haven't had time to dedicate to >>>>> it. Can you send me a sample of your additional database? I could use it >>>>> as >>>>> a sample set for testing. >>>> >>>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "weewx-user" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/weewx-user/kyWW2BmGXoE/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> weewx...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/758a009a-1151-410f-b7a7-137dcdf0fd5b%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/758a009a-1151-410f-b7a7-137dcdf0fd5b%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8b52f06f-19f3-481e-abb6-2504de03b755%40googlegroups.com.
[weewx-user] Belchertown station_observations bindings
Heya I use rtl_433 to download my data which does *not* provide me with the inTemp, inHumidity and Barometer readings - I have set these up on a separate raspberry pi with a BMP280 and DHT22 and saving them to a separate MySQL database which i have then used multiple bindings to generate reports based on The reports are generating perfectly and I can see the inTemp, inHumidity and Barometer in the graphs, but in the station_observations they show as N/A and I am not sure how to change them to use the different bindings Any ideas? https://stormy.ie/weather/live/ is the weather station Thanks! -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2d83a4dc-526e-4cbb-83ee-23d02ac5ab74%40googlegroups.com.
[weewx-user] Re: Belchertown Skin 0.8.2 Released
I just implemented this skin and its fantastic I do however seem to be getting to many weather warnings.. Currently showing 4 weather warnings for my area.. but there is currently only one active on darksky https://stormy.ie/weather/live/ https://darksky.net/forecast/53.3272,-9.1737/ca12/en https://www.met.ie/warnings Each time the MET seems to update it.. I get another weather warning on my site.. any ideas? On Tuesday, 1 January 2019 12:50:49 UTC, Pat wrote: > > I've just released version 0.8.2 of the Belchertown skin which fixes the > New Year bug some of you are seeing. It also adds some other features. > > > Download and install instructions here: > https://github.com/poblabs/weewx-belchertown/releases > > > * Fixed an error where the skin would fail when the date rolls to the New > Year due to no data being in certain tables in the database yet. > * Added the ability to show any weather alerts provided by the DarkSky > API. Weather alerts are off by default, use forecast_alert_enabled in > weewx.conf skin options to enable it. > * New option to show cloudbase. You must have your database schema > extended for the cloudbase observation to be calculated by weewx. Check the > Belchertown skin wiki for details. > * Fixes an issue where the MQTT updates showed altimeter instead of > barometer. > * Updated Google Analytics page to be in header based on Google > recommendations. > * Updated Google Analytics to a more recent script block. > * Added a Google Analytics page view per MQTT update as per Google > Recommendations on background updates. > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Beta testers for v3.9.0 needed
Thanks that fixed it On Wednesday, 23 January 2019 01:05:59 UTC, Thomas Keffer wrote: > > Yup. It looks like wee_database lost executable permission somewhere along > the way. I've corrected it in commit 1e9b0 > <https://github.com/weewx/weewx/commit/1e9b0a0c1c38631db1e6d0d919096a8e1ff45149> > . > > You can fix your installation with > > *sudo chmod +x /usr/share/weewx/wee_database* > > -tk > > > On Tue, Jan 22, 2019 at 4:53 PM mercurystorm > wrote: > >> root@raspberrypi:/usr/share/weewx# ls -l `which wee_database` >> total 172 >> -rw-r--r-- 1 root root 2891 Jan 22 17:47 daemon.py >> -rw-r--r-- 1 root root 2715 Jan 23 00:32 daemon.pyc >> drwxr-xr-x 2 root root 4096 Jan 23 00:32 schemas >> drwxr-xr-x 3 root root 4096 Jan 23 00:36 user >> drwxr-xr-x 2 root root 4096 Jan 23 00:32 weecfg >> -rwxr-xr-x 1 root root 5414 Jan 22 17:47 wee_config >> -rw-r--r-- 1 root root 36533 Jan 22 17:47 wee_database >> drwxr-xr-x 2 root root 4096 Jan 23 00:32 weedb >> -rwxr-xr-x 1 root root 16154 Jan 22 17:47 wee_debug >> -rwxr-xr-x 1 root root 1924 Jan 22 17:47 wee_device >> -rwxr-xr-x 1 root root 3016 Jan 22 17:47 wee_extension >> drwxr-xr-x 2 root root 4096 Jan 23 00:32 weeimport >> -rwxr-xr-x 1 root root 31175 Jan 22 17:47 wee_import >> drwxr-xr-x 2 root root 4096 Jan 23 00:35 weeplot >> -rwxr-xr-x 1 root root 2171 Jan 22 17:47 wee_reports >> drwxr-xr-x 2 root root 4096 Jan 23 00:36 weeutil >> drwxr-xr-x 3 root root 4096 Jan 23 00:35 weewx >> -rwxr-xr-x 1 root root 2566 Jan 22 17:47 weewxd >> -rwxr-xr-x 1 root root 21132 Jan 22 17:47 wunderfixer >> root@raspberrypi:/usr/share/weewx# >> >> >> On Wednesday, 23 January 2019 00:49:55 UTC, Thomas Keffer wrote: >>> >>> Francis, can you check the permissions on the executables. >>> >>> For example, >>> >>> *ls -l `which wee_database`* >>> >>> -tk >>> >>> >>> On Tue, Jan 22, 2019 at 4:45 PM Francis Yates >>> wrote: >>> >>>> root@raspberrypi:~/software/weewx# systemctl stop weewx >>>> root@raspberrypi:~/software/weewx# wee_database --drop-daily >>>> Using configuration file /etc/weewx/weewx.conf >>>> Using database binding 'wx_binding', which is bound to database >>>> 'archive_mysql' >>>> Proceeding will delete all your daily summaries from database 'weewx' >>>> Are you sure you want to proceed (y/n)? y >>>> Dropping daily summary tables from 'weewx' ... >>>> Daily summary tables dropped from database 'weewx' in 2.84 seconds >>>> root@raspberrypi:~/software/weewx# dpkg -i weewx >>>> weewx_3.8.2-1_all.debweewx_3.9.0b1-1_all.deb weewx-sdr-master/ >>>> root@raspberrypi:~/software/weewx# dpkg -i weewx_3.9.0b1-1_all.deb >>>> (Reading database ... 45970 files and directories currently installed.) >>>> Preparing to unpack weewx_3.9.0b1-1_all.deb ... >>>> Unpacking weewx (3.9.0b1-1) over (3.8.2-1) ... >>>> Setting up weewx (3.9.0b1-1) ... >>>> >>>> Configuration file '/etc/weewx/weewx.conf' >>>> ==> Modified (by you or by a script) since installation. >>>> ==> Package distributor has shipped an updated version. >>>>What would you like to do about it ? Your options are: >>>> Y or I : install the package maintainer's version >>>> N or O : keep your currently-installed version >>>> D : show the differences between the versions >>>> Z : start a shell to examine the situation >>>> The default action is to keep your current version. >>>> *** weewx.conf (Y/I/N/O/D/Z) [default=N] ? >>>> Installing new version of config file /etc/weewx/weewx.conf.dist ... >>>> Installing new version of config file >>>> /etc/weewx/logwatch/scripts/services/weewx ... >>>> Installing new version of config file /etc/weewx/skins/Rsync/skin.conf >>>> ... >>>> Installing new version of config file >>>> /etc/weewx/skins/Standard/index.html.tmpl ... >>>> Installing new version of config file >>>> /etc/weewx/skins/Standard/skin.conf ... >>>> Installing new version of config file /etc/weewx/skins/Ftp/skin.conf ... >>>> Installing new version of config file /etc/weewx/import/wu-example.conf >>>> ... >>>> Installing new version of config file >>>> /etc/weewx/import/cumulus-example.conf ... >>>> Installing new version of config file >>&
Re: [weewx-user] Re: Beta testers for v3.9.0 needed
root@raspberrypi:/usr/share/weewx# ls -l `which wee_database` total 172 -rw-r--r-- 1 root root 2891 Jan 22 17:47 daemon.py -rw-r--r-- 1 root root 2715 Jan 23 00:32 daemon.pyc drwxr-xr-x 2 root root 4096 Jan 23 00:32 schemas drwxr-xr-x 3 root root 4096 Jan 23 00:36 user drwxr-xr-x 2 root root 4096 Jan 23 00:32 weecfg -rwxr-xr-x 1 root root 5414 Jan 22 17:47 wee_config -rw-r--r-- 1 root root 36533 Jan 22 17:47 wee_database drwxr-xr-x 2 root root 4096 Jan 23 00:32 weedb -rwxr-xr-x 1 root root 16154 Jan 22 17:47 wee_debug -rwxr-xr-x 1 root root 1924 Jan 22 17:47 wee_device -rwxr-xr-x 1 root root 3016 Jan 22 17:47 wee_extension drwxr-xr-x 2 root root 4096 Jan 23 00:32 weeimport -rwxr-xr-x 1 root root 31175 Jan 22 17:47 wee_import drwxr-xr-x 2 root root 4096 Jan 23 00:35 weeplot -rwxr-xr-x 1 root root 2171 Jan 22 17:47 wee_reports drwxr-xr-x 2 root root 4096 Jan 23 00:36 weeutil drwxr-xr-x 3 root root 4096 Jan 23 00:35 weewx -rwxr-xr-x 1 root root 2566 Jan 22 17:47 weewxd -rwxr-xr-x 1 root root 21132 Jan 22 17:47 wunderfixer root@raspberrypi:/usr/share/weewx# On Wednesday, 23 January 2019 00:49:55 UTC, Thomas Keffer wrote: > > Francis, can you check the permissions on the executables. > > For example, > > *ls -l `which wee_database`* > > -tk > > > On Tue, Jan 22, 2019 at 4:45 PM Francis Yates > wrote: > >> root@raspberrypi:~/software/weewx# systemctl stop weewx >> root@raspberrypi:~/software/weewx# wee_database --drop-daily >> Using configuration file /etc/weewx/weewx.conf >> Using database binding 'wx_binding', which is bound to database >> 'archive_mysql' >> Proceeding will delete all your daily summaries from database 'weewx' >> Are you sure you want to proceed (y/n)? y >> Dropping daily summary tables from 'weewx' ... >> Daily summary tables dropped from database 'weewx' in 2.84 seconds >> root@raspberrypi:~/software/weewx# dpkg -i weewx >> weewx_3.8.2-1_all.debweewx_3.9.0b1-1_all.deb weewx-sdr-master/ >> root@raspberrypi:~/software/weewx# dpkg -i weewx_3.9.0b1-1_all.deb >> (Reading database ... 45970 files and directories currently installed.) >> Preparing to unpack weewx_3.9.0b1-1_all.deb ... >> Unpacking weewx (3.9.0b1-1) over (3.8.2-1) ... >> Setting up weewx (3.9.0b1-1) ... >> >> Configuration file '/etc/weewx/weewx.conf' >> ==> Modified (by you or by a script) since installation. >> ==> Package distributor has shipped an updated version. >>What would you like to do about it ? Your options are: >> Y or I : install the package maintainer's version >> N or O : keep your currently-installed version >> D : show the differences between the versions >> Z : start a shell to examine the situation >> The default action is to keep your current version. >> *** weewx.conf (Y/I/N/O/D/Z) [default=N] ? >> Installing new version of config file /etc/weewx/weewx.conf.dist ... >> Installing new version of config file >> /etc/weewx/logwatch/scripts/services/weewx ... >> Installing new version of config file /etc/weewx/skins/Rsync/skin.conf ... >> Installing new version of config file >> /etc/weewx/skins/Standard/index.html.tmpl ... >> Installing new version of config file /etc/weewx/skins/Standard/skin.conf >> ... >> Installing new version of config file /etc/weewx/skins/Ftp/skin.conf ... >> Installing new version of config file /etc/weewx/import/wu-example.conf >> ... >> Installing new version of config file >> /etc/weewx/import/cumulus-example.conf ... >> Installing new version of config file /etc/weewx/import/csv-example.conf >> ... >> saving previous config file as /etc/weewx/weewx.conf-3.8.2 >> saving distribution config file as /etc/weewx/weewx.conf-3.9.0b1 >> merging previous and distribution into /etc/weewx/weewx.conf >> Using configuration file /etc/weewx/weewx.conf-3.8.2 >> Saved configuration to /etc/weewx/weewx.conf >> Processing triggers for systemd (232-25+deb9u8) ... >> root@raspberrypi:~/software/weewx# wee_database --rebuld-daily >> -su: /usr/bin/wee_database: Permission denied >> root@raspberrypi:~/software/weewx# wee_database --rebuld-daily >> -su: /usr/bin/wee_database: Permission denied >> root@raspberrypi:~/software/weewx# wee_database >> -su: /usr/bin/wee_database: Permission denied >> root@raspberrypi:~/software/weewx# systemctl status weewx >> ● weewx.service - LSB: weewx weather system >>Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled) >>Active: active (running) since Wed 2019-01-23 00:25:44 GMT; 43s ago >> Docs: man:systemd-sysv-generator(8) >>CGroup: /system.slice/weewx.service >>├─26285 python /usr/bin/weewxd --daemon >> --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf >>└─26286 /usr/local/bin/rtl_433 -f 868.3M -R 119 -F json >> >> Jan 23 00:25:45 raspberrypi weewx[26285]: engine: Finished loading >> service weewx.engine.StdQC >> Jan 23 00:25:45 raspberrypi weewx[26285]: engine: Loading service >> weewx.wxservices.StdWXCalculate >> Jan 23 00:25:45 raspberrypi
[weewx-user] Re: Beta testers for v3.9.0 needed
wee_database seems to be gone in 3.9? On Tuesday, 22 January 2019 20:05:24 UTC, Thomas Keffer wrote: > > It's been well over a year since the last "dot" release, but the V3.9 > release is finally in sight! > > We have a beta version, and can use some help testing it out. The biggest > new feature is the new skin, *Seasons*, to replace the venerable > *Standard*, which has shipped since v1.0! Using the new skin is entirely > optional. > > There have also been some changes in how report options are chosen, the > net effect being that you will be able to specify a unit system to be > applied to *all* reports, or just to individual reports. > > I've been running v3.9 for 6 months on my home machine, so it appears to > be very stable. We can just use some help to see if there are any sharp > edges left. > > You can find the release candidate, v3.9.0b1 is the usual place: > http://weewx.com/downloads/development_versions/ > > Thanks, all! > > -tk > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Problem with rtl_433 driver Bresser 5-in-1 and sensor mapping
Bresser 5-in-1 was not supported when I purchased mine and had to write my own code On Thursday, 17 January 2019 11:55:25 UTC, U G wrote: > > Thats odd... my Class of sdr.py looks totally different to yours: > > (ignore the # in front of the lines) > > @staticmethod > #def parse_json(obj): > #pkt = dict() > #pkt['dateTime'] = Packet.parse_time(obj.get('time')) > #pkt['usUnits'] = weewx.METRICWX > #pkt['station_id'] = obj.get('id') > #pkt['temperature'] = Packet.get_float(obj, 'temperature_C') > #pkt['humidity'] = Packet.get_float(obj, 'humidity') > #pkt['wind_gust'] = Packet.get_float(obj, 'gust_speed') > #pkt['wind_speed'] = Packet.get_float(obj, 'wind_speed') > #pkt['wind_dir'] = Packet.get_float(obj, 'wind_dir') > # pkt['rain_total'] = Packet.get_float(obj, 'rain_mm') > #pkt['uv'] = Packet.get_float(obj, 'uv') > #pkt['uv_index'] = Packet.get_float(obj, 'uvi') > #return Bresser5in1Packet.insert_ids(pkt) > > vs. your > > PARSEINFO = { > > # 'Msg type': ['msg_type', None, None], > 'StationID': ['station_id', None, None], > 'Temperature': ['temperature', re.compile('([\d.-]+) C'), lambda > x: float(x)], > 'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: > float(x)], > 'Wind Gust': ['wind_gust', None, lambda x: float(x)], > 'Wind Speed': ['wind_speed', None, lambda x: float(x)], > 'Direction': ['wind_dir', None, lambda x: int(x)], > 'Rain': ['rain_total', None, lambda x: float(x)]} > > Is yours from the official repository or did you develop this yourself? > > Cheers, > > UG > > > Am Do., 17. Jan. 2019 um 01:22 Uhr schrieb mercurystorm < > mercur...@gmail.com >: > >> >> Output in debug log >> >>> Jan 17 00:18:51 raspberrypi weewx[1066]: sdr: MainThread: >>>> lines=['{"time" : "2019-01-17 00:18:48", "model" : "Bresser-5in1", "id" : >>>> 118, "temperature_C" : 5.200, "humidity" : 95, "wind_gust" : 1.400, >>>> "wind_speed" : 1.700, "wind_dir_deg" : 337.500, "rain_mm" : 37.600, "data" >>>> : "df897feb0fe8efadff6a89ecff20768014f01710520095761300", "mic" : >>>> "CHECKSUM"}\n'] >>>> >>>> Jan 17 00:18:51 raspberrypi weewx[1066]: sdr: MainThread: >>>> packet={'outHumidity': 95.0, 'dateTime': 1547684328, 'windDir': 337.5, >>>> 'outTemp': 5.2, 'windSpeed': 1.7, 'windGust': 1.4, 'rain_total': 37.6, >>>> 'usUnits': 17} >>>> >>> >> weewx.conf >> >> [SDR] >> >> # This section is for the software-defined radio driver. >> >> >> # The driver to use >> >> driver = user.sdr >> >> cmd = /usr/local/bin/rtl_433 -f 868.3M -R 119 -F json >> >> >> [[sensor_map]] >> >> outTemp = temperature.118.Bresser5in1Packet >> >> outHumidity = humidity.118.Bresser5in1Packet >> >> windSpeed = wind_speed.118.Bresser5in1Packet >> >> windDir = wind_dir.118.Bresser5in1Packet >> >> windGust = wind_gust.118.Bresser5in1Packet >> >> rain_total = rain_total.118.Bresser5in1Packet >> >> log_unknown_sensors = True >> >> log_unmapped_sensors = True >> >> >> [[deltas]] >> rain = rain_total >> >> sdr.py >> >> class Bresser5in1Packet(Packet): >> >> # '{"time" : "2018-12-15 16:39:52", "model" : "Bresser-5in1", "id" : >> 118, "temperature_C" : 6.200, "humidity" : 88, "wind_gust" : 1.400, >> "wind_speed" : 1.500, "wind_dir_deg" : 67.500, "rain_mm" : 10.800, "data" : >> "ea897febcfeaef9dff77f7feff15768014301510620088080100", "mic" : >> "CHECKSUM"}#012' >> >> IDENTIFIER = "Bresser-5in1" >> >> PARSEINFO = { >> >> # 'Msg type': ['msg_type', None, None], >> >> 'StationID': ['station_id', None, None], >> >> 'Temperature': ['temperature', re.compile('([\d.-]+) C'), >> lambda x: float(x)], >> >> 'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: >> float(x)], >> >> 'Wind Gust': ['wind_gust', None, lambda x: float(x)], >> >> 'Wind Speed': ['wind_speed', None, lambda x: float(x)], >> >> 'Direction': ['wind_dir', None, lambda x: int(x)], >> 'Rain': ['rain_total', None, lambda x: float(x)]} >> >> >> and its all working perfectly on https://stormy.ie/weather >> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to weewx-user+...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Problem with rtl_433 driver Bresser 5-in-1 and sensor mapping
Output in debug log > Jan 17 00:18:51 raspberrypi weewx[1066]: sdr: MainThread: lines=['{"time" >> : "2019-01-17 00:18:48", "model" : "Bresser-5in1", "id" : 118, >> "temperature_C" : 5.200, "humidity" : 95, "wind_gust" : 1.400, "wind_speed" >> : 1.700, "wind_dir_deg" : 337.500, "rain_mm" : 37.600, "data" : >> "df897feb0fe8efadff6a89ecff20768014f01710520095761300", "mic" : >> "CHECKSUM"}\n'] >> >> Jan 17 00:18:51 raspberrypi weewx[1066]: sdr: MainThread: >> packet={'outHumidity': 95.0, 'dateTime': 1547684328, 'windDir': 337.5, >> 'outTemp': 5.2, 'windSpeed': 1.7, 'windGust': 1.4, 'rain_total': 37.6, >> 'usUnits': 17} >> > weewx.conf [SDR] # This section is for the software-defined radio driver. # The driver to use driver = user.sdr cmd = /usr/local/bin/rtl_433 -f 868.3M -R 119 -F json [[sensor_map]] outTemp = temperature.118.Bresser5in1Packet outHumidity = humidity.118.Bresser5in1Packet windSpeed = wind_speed.118.Bresser5in1Packet windDir = wind_dir.118.Bresser5in1Packet windGust = wind_gust.118.Bresser5in1Packet rain_total = rain_total.118.Bresser5in1Packet log_unknown_sensors = True log_unmapped_sensors = True [[deltas]] rain = rain_total sdr.py class Bresser5in1Packet(Packet): # '{"time" : "2018-12-15 16:39:52", "model" : "Bresser-5in1", "id" : 118, "temperature_C" : 6.200, "humidity" : 88, "wind_gust" : 1.400, "wind_speed" : 1.500, "wind_dir_deg" : 67.500, "rain_mm" : 10.800, "data" : "ea897febcfeaef9dff77f7feff15768014301510620088080100", "mic" : "CHECKSUM"}#012' IDENTIFIER = "Bresser-5in1" PARSEINFO = { # 'Msg type': ['msg_type', None, None], 'StationID': ['station_id', None, None], 'Temperature': ['temperature', re.compile('([\d.-]+) C'), lambda x: float(x)], 'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)], 'Wind Gust': ['wind_gust', None, lambda x: float(x)], 'Wind Speed': ['wind_speed', None, lambda x: float(x)], 'Direction': ['wind_dir', None, lambda x: int(x)], 'Rain': ['rain_total', None, lambda x: float(x)]} and its all working perfectly on https://stormy.ie/weather -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.