[weewx-user] Re: No data in Databaser after battery-replacement on Bresser5in1
Okay, looks like Breser5in1 is generating a new ID after battery change so I had to change: outTemp = temperature.*63*.Bresser5in1Packet Frank Pioch schrieb am Montag, 11. September 2023 um 20:15:11 UTC+2: > time : 2023-09-11 20:12:02 > model : Bresser-5in1 id: 63 > Battery : 1Temperature: 23.1 C Humidity : 66 >Wind Gust : 2.0 m/s Wind Speed: 1.4 m/s Direction : 202.5 > Rain : 8.0 mmIntegrity : CHECKSUM > > Frank Pioch schrieb am Montag, 11. September 2023 um 20:09:52 UTC+2: > >> Hello, >> >> I had to replace the batteries on the 5in1 Sensore. >> After that date no records we addes to the database. >> RTL-Dongel is receiving data. >> >> In my opinion the problem might be affected by "rest" of the arin-sensor >> value. >> >> >> >> >> >> >> >> >> >> >> >> >> >> *bootstrap 2.26 A skin based around the bootstrap 3.2.0 >> frameworkBelchertown 1.2 A clean modern skin with real time >> streaming updates and interactive charts. Modeled after >> BelchertownWeather.comArchive info Database name:weewx.sdb Table >> name: archive Version 4.0 Unit system: 1 >> (US) First good timestamp: 2022-03-04 22:10:00 CET (1646428200) Last good >> timestamp: 2023-08-31 18:20:00 CEST (1693498800) Number of records: >> 156090 weewx (weewx.conf) is set to use an archive interval of 300 >> seconds. The station hardware was not interrogated in determining archive >> interval.* >> >> /var/log/messages does not indicate any failures >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Initializing weewx >> version 4.9.1Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Using Python >> 2.7.13 (default, Feb 6 2022, 20:16:18) #012[GCC 6.3.0 20170516]Sep 11 >> 19:57:25 rpi weewx[2814] INFO __main__: Located at /usr/bin/python2Sep 11 >> 19:57:25 rpi weewx[2814] INFO __main__: Platform >> Linux-4.19.66-v7+-armv7l-with-debian-9.13Sep 11 19:57:25 rpi weewx[2814] >> INFO __main__: Locale is 'de_DE@euro'Sep 11 19:57:25 rpi weewx[2814] INFO >> __main__: Using configuration file /etc/weewx/weewx.confSep 11 19:57:25 rpi >> weewx[2814] INFO __main__: Debug is 1Sep 11 19:57:25 rpi weewx[2814] INFO >> __main__: PID file is /var/run/weewx.pidSep 11 19:57:25 rpi weewx[2818] >> INFO weewx.engine: Loading station type SDR (user.sdr)Sep 11 19:57:25 rpi >> weewx[2818] INFO user.sdr: driver version is 0.86Sep 11 19:57:25 rpi >> weewx[2818] INFO user.sdr: model is SDRSep 11 19:57:25 rpi weewx[2818] INFO >> user.sdr: sensor map is {u'outTemp': u'temperature.236.Bresser5in1Packet', >> u'outHumidity': u'humidity.236.Bresser5in1Packet', u'windSpeed': >> u'wind_speed.236.Bresser5in1Packet', u'windDir': >> u'wind_dir.236.Bresser5in1Packet', u'windGust': >> u'wind_gust.236.Bresser5in1Packet', u'rain_total': >> u'rain_total.236.Bresser5in1Packet', u'log_unknown_sensors': u'True', >> u'log_unmapped_sensors': u'True'}Sep 11 19:57:25 rpi weewx[2818] INFO >> user.sdr: deltas is {u'rain': u'rain_total'}Sep 11 19:57:25 rpi weewx[2818] >> INFO user.sdr: startup process '/usr/local/bin/rtl_433 -d 0 -f 868.3M -R >> 119 -F json -M level'Sep 11 19:57:25 rpi weewx[2818] INFO weewx.engine: >> StdConvert target unit is 0x1Sep 11 19:57:25 rpi weewx[2818] INFO >> weewx.wxservices: StdWXCalculate will use data binding wx_bindingSep 11 >> 19:57:26 rpi weewx[2818] INFO weewx.engine: Archive will use data binding >> wx_bindingSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: Record >> generation will be attempted in 'hardware'Sep 11 19:57:26 rpi weewx[2818] >> INFO weewx.engine: Using archive interval of 300 seconds (specified in >> weewx configuration)Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: >> StationRegistry: Registration not requested.Sep 11 19:57:26 rpi weewx[2818] >> INFO weewx.restx: Wunderground: Posting not enabled.Sep 11 19:57:26 rpi >> weewx[2818] INFO weewx.restx: PWSweather: Posting not enabled.Sep 11 >> 19:57:26 rpi weewx[2818] INFO weewx.restx: CWOP: Posting not enabled.Sep 11 >> 19:57:26 rpi weewx[2818] INFO weewx.restx: WOW: Posting not enabled.Sep 11 >> 19:57:26 rpi weewx[2818] INFO weewx.restx: AWEKAS: Data will be uploaded >> for user db5fpSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: 'pyephem' >> not detected, extended almanac data is not availableSep 11 19:57:26 rpi >> weewx[2818] INFO __main__: Starting up weewx version 4.9.1Sep 11 19:57:26 >> rpi weewx[2818] INFO weewx.engine: Using binding 'wx_binding' to database >> 'weewx.sdb'Sep 11 19:57:26 rpi weewx[2818] INFO weewx.manager: Starting >> backfill of daily summariesSep 11 19:57:26 rpi weewx[2818] INFO >> weewx.manager: Daily summaries up to dateSep 11 19:57:26 rpi weewx[2818] >> INFO weewx.engine: Starting main packet loop.* >> >> Any suggestions? >> >> Best regards >> >> Frank >> >> >> -
[weewx-user] Re: No data in Databaser after battery-replacement on Bresser5in1
time : 2023-09-11 20:12:02 model : Bresser-5in1 id: 63 Battery : 1Temperature: 23.1 C Humidity : 66 Wind Gust : 2.0 m/s Wind Speed: 1.4 m/s Direction : 202.5 Rain : 8.0 mmIntegrity : CHECKSUM Frank Pioch schrieb am Montag, 11. September 2023 um 20:09:52 UTC+2: > Hello, > > I had to replace the batteries on the 5in1 Sensore. > After that date no records we addes to the database. > RTL-Dongel is receiving data. > > In my opinion the problem might be affected by "rest" of the arin-sensor > value. > > > > > > > > > > > > > > *bootstrap 2.26 A skin based around the bootstrap 3.2.0 > frameworkBelchertown 1.2 A clean modern skin with real time > streaming updates and interactive charts. Modeled after > BelchertownWeather.comArchive info Database name:weewx.sdb Table > name: archive Version 4.0 Unit system: 1 > (US) First good timestamp: 2022-03-04 22:10:00 CET (1646428200) Last good > timestamp: 2023-08-31 18:20:00 CEST (1693498800) Number of records: > 156090 weewx (weewx.conf) is set to use an archive interval of 300 > seconds. The station hardware was not interrogated in determining archive > interval.* > > /var/log/messages does not indicate any failures > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Initializing weewx version > 4.9.1Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Using Python 2.7.13 > (default, Feb 6 2022, 20:16:18) #012[GCC 6.3.0 20170516]Sep 11 19:57:25 > rpi weewx[2814] INFO __main__: Located at /usr/bin/python2Sep 11 19:57:25 > rpi weewx[2814] INFO __main__: Platform > Linux-4.19.66-v7+-armv7l-with-debian-9.13Sep 11 19:57:25 rpi weewx[2814] > INFO __main__: Locale is 'de_DE@euro'Sep 11 19:57:25 rpi weewx[2814] INFO > __main__: Using configuration file /etc/weewx/weewx.confSep 11 19:57:25 rpi > weewx[2814] INFO __main__: Debug is 1Sep 11 19:57:25 rpi weewx[2814] INFO > __main__: PID file is /var/run/weewx.pidSep 11 19:57:25 rpi weewx[2818] > INFO weewx.engine: Loading station type SDR (user.sdr)Sep 11 19:57:25 rpi > weewx[2818] INFO user.sdr: driver version is 0.86Sep 11 19:57:25 rpi > weewx[2818] INFO user.sdr: model is SDRSep 11 19:57:25 rpi weewx[2818] INFO > user.sdr: sensor map is {u'outTemp': u'temperature.236.Bresser5in1Packet', > u'outHumidity': u'humidity.236.Bresser5in1Packet', u'windSpeed': > u'wind_speed.236.Bresser5in1Packet', u'windDir': > u'wind_dir.236.Bresser5in1Packet', u'windGust': > u'wind_gust.236.Bresser5in1Packet', u'rain_total': > u'rain_total.236.Bresser5in1Packet', u'log_unknown_sensors': u'True', > u'log_unmapped_sensors': u'True'}Sep 11 19:57:25 rpi weewx[2818] INFO > user.sdr: deltas is {u'rain': u'rain_total'}Sep 11 19:57:25 rpi weewx[2818] > INFO user.sdr: startup process '/usr/local/bin/rtl_433 -d 0 -f 868.3M -R > 119 -F json -M level'Sep 11 19:57:25 rpi weewx[2818] INFO weewx.engine: > StdConvert target unit is 0x1Sep 11 19:57:25 rpi weewx[2818] INFO > weewx.wxservices: StdWXCalculate will use data binding wx_bindingSep 11 > 19:57:26 rpi weewx[2818] INFO weewx.engine: Archive will use data binding > wx_bindingSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: Record > generation will be attempted in 'hardware'Sep 11 19:57:26 rpi weewx[2818] > INFO weewx.engine: Using archive interval of 300 seconds (specified in > weewx configuration)Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: > StationRegistry: Registration not requested.Sep 11 19:57:26 rpi weewx[2818] > INFO weewx.restx: Wunderground: Posting not enabled.Sep 11 19:57:26 rpi > weewx[2818] INFO weewx.restx: PWSweather: Posting not enabled.Sep 11 > 19:57:26 rpi weewx[2818] INFO weewx.restx: CWOP: Posting not enabled.Sep 11 > 19:57:26 rpi weewx[2818] INFO weewx.restx: WOW: Posting not enabled.Sep 11 > 19:57:26 rpi weewx[2818] INFO weewx.restx: AWEKAS: Data will be uploaded > for user db5fpSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: 'pyephem' > not detected, extended almanac data is not availableSep 11 19:57:26 rpi > weewx[2818] INFO __main__: Starting up weewx version 4.9.1Sep 11 19:57:26 > rpi weewx[2818] INFO weewx.engine: Using binding 'wx_binding' to database > 'weewx.sdb'Sep 11 19:57:26 rpi weewx[2818] INFO weewx.manager: Starting > backfill of daily summariesSep 11 19:57:26 rpi weewx[2818] INFO > weewx.manager: Daily summaries up to dateSep 11 19:57:26 rpi weewx[2818] > INFO weewx.engine: Starting main packet loop.* > > Any suggestions? > > Best regards > > Frank > > > -- 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/ff880df8-ca33-4441-a5cc-2e36da758c
[weewx-user] No data in Databaser after battery-replacement on Bresser5in1
Hello, I had to replace the batteries on the 5in1 Sensore. After that date no records we addes to the database. RTL-Dongel is receiving data. In my opinion the problem might be affected by "rest" of the arin-sensor value. *bootstrap 2.26 A skin based around the bootstrap 3.2.0 frameworkBelchertown 1.2 A clean modern skin with real time streaming updates and interactive charts. Modeled after BelchertownWeather.comArchive info Database name:weewx.sdb Table name: archive Version 4.0 Unit system: 1 (US) First good timestamp: 2022-03-04 22:10:00 CET (1646428200) Last good timestamp: 2023-08-31 18:20:00 CEST (1693498800) Number of records: 156090 weewx (weewx.conf) is set to use an archive interval of 300 seconds. The station hardware was not interrogated in determining archive interval.* /var/log/messages does not indicate any failures *Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Initializing weewx version 4.9.1Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Using Python 2.7.13 (default, Feb 6 2022, 20:16:18) #012[GCC 6.3.0 20170516]Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Located at /usr/bin/python2Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Platform Linux-4.19.66-v7+-armv7l-with-debian-9.13Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Locale is 'de_DE@euro'Sep 11 19:57:25 rpi weewx[2814] INFO __main__: Using configuration file /etc/weewx/weewx.confSep 11 19:57:25 rpi weewx[2814] INFO __main__: Debug is 1Sep 11 19:57:25 rpi weewx[2814] INFO __main__: PID file is /var/run/weewx.pidSep 11 19:57:25 rpi weewx[2818] INFO weewx.engine: Loading station type SDR (user.sdr)Sep 11 19:57:25 rpi weewx[2818] INFO user.sdr: driver version is 0.86Sep 11 19:57:25 rpi weewx[2818] INFO user.sdr: model is SDRSep 11 19:57:25 rpi weewx[2818] INFO user.sdr: sensor map is {u'outTemp': u'temperature.236.Bresser5in1Packet', u'outHumidity': u'humidity.236.Bresser5in1Packet', u'windSpeed': u'wind_speed.236.Bresser5in1Packet', u'windDir': u'wind_dir.236.Bresser5in1Packet', u'windGust': u'wind_gust.236.Bresser5in1Packet', u'rain_total': u'rain_total.236.Bresser5in1Packet', u'log_unknown_sensors': u'True', u'log_unmapped_sensors': u'True'}Sep 11 19:57:25 rpi weewx[2818] INFO user.sdr: deltas is {u'rain': u'rain_total'}Sep 11 19:57:25 rpi weewx[2818] INFO user.sdr: startup process '/usr/local/bin/rtl_433 -d 0 -f 868.3M -R 119 -F json -M level'Sep 11 19:57:25 rpi weewx[2818] INFO weewx.engine: StdConvert target unit is 0x1Sep 11 19:57:25 rpi weewx[2818] INFO weewx.wxservices: StdWXCalculate will use data binding wx_bindingSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: Archive will use data binding wx_bindingSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: Record generation will be attempted in 'hardware'Sep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: StationRegistry: Registration not requested.Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: Wunderground: Posting not enabled.Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: PWSweather: Posting not enabled.Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: CWOP: Posting not enabled.Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: WOW: Posting not enabled.Sep 11 19:57:26 rpi weewx[2818] INFO weewx.restx: AWEKAS: Data will be uploaded for user db5fpSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: 'pyephem' not detected, extended almanac data is not availableSep 11 19:57:26 rpi weewx[2818] INFO __main__: Starting up weewx version 4.9.1Sep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'Sep 11 19:57:26 rpi weewx[2818] INFO weewx.manager: Starting backfill of daily summariesSep 11 19:57:26 rpi weewx[2818] INFO weewx.manager: Daily summaries up to dateSep 11 19:57:26 rpi weewx[2818] INFO weewx.engine: Starting main packet loop.* Any suggestions? Best regards Frank -- 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/9462d7f8-67ad-4fe2-84a1-198314f52ff9n%40googlegroups.com.
[weewx-user] BMP280 additional sensor as a service
Hi, after googling around I've modified two python scripts to ad BMP to my Bresser 5in1 and Raspberry pi station. Be carful weewx already calcultes mbar pedending on altitude. mixed of these: http://www.netzmafia.de/skripten/hardware/RasPi/Projekt-BMP280/index.html https://github.com/eyesnz/weewx_pi_sensors [import syslog import weewx import smbus import time from weewx.wxengine import StdService # number of I2C bus BUS = 1 # altitude 260m ALTITUDE =260 BMP280ADDR = 0x76 bus = smbus.SMBus(BUS) # pressure calibration coeff. array P = [0, 0, 0, 0, 0, 0, 0, 0, 0]; # temperature calibration coeff. array T = [0, 0, 0]; class ExtraSensorsService(StdService): def __init__(self, engine, config_dict): super(ExtraSensorsService, self).__init__(engine, config_dict) d = config_dict.get('ExtraSensorsService', {}) # Read from config which pin to use on the RPI GPIO # Defaults to 22 # Use the loop packet event as that allows data to still get into the WeeWX database # as well as supporting a OLED module on the RPI self.bind(weewx.NEW_LOOP_PACKET, self.load_data) def load_data(self, event): try: self.get_bmp280(event) except Exception, e: syslog.syslog(syslog.LOG_ERR, "extrasensors: cannot read value: %s" % e) # Get BMP180 data def get_bmp280(self, event): # pressure calibration coeff. array #P = [0, 0, 0, 0, 0, 0, 0, 0, 0]; # read calibration data from 0x88, 24 bytes data = bus.read_i2c_block_data(BMP280ADDR, 0x88, 24) # temp coefficents temp coefficents T[0] = data[1] * 256 + data[0] T[0] = data[1] * 256 + data[0] T[1] = data[3] * 256 + data[2] if T[1] > 32767: T[1] -= 65536 T[2] = data[5] * 256 + data[4] if T[2] > 32767: T[2] -= 65536 # pressure coefficents data = bus.read_i2c_block_data(BMP280ADDR, 0x88, 24) P[0]=data[7]* 256 + data[6]; for i in range (0, 8): P[i+1] = data[2*i+9]*256 + data[2*i+8]; if P[i+1] > 32767: P[i+1] -= 65536 # select control measurement register, 0xF4 # 0x27: pressure/temperature oversampling rate = 1, normal mode bus.write_byte_data(BMP280ADDR, 0xF4, 0x27) # select configuration register, 0xF5 # 0xA0: standby time = 1000 ms bus.write_byte_data(BMP280ADDR, 0xF5, 0xA0) time.sleep(1.0) # read data from 0xF7, 8 bytes data = bus.read_i2c_block_data(BMP280ADDR, 0xF7, 8) # convert pressure and temperature data to 19 bits adc_p = (data[0] << 12) | (data[1] << 4) | (data[2] >> 4) adc_t = (data[3] << 12) | (data[4] << 4) | (data[5] >> 4) # convert pressure and temperature data to 19 bits adc_p = (data[0] << 12) | (data[1] << 4) | (data[2] >> 4) adc_t = (data[3] << 12) | (data[4] << 4) | (data[5] >> 4) # temperature offset calculations temp1 = ((adc_t)/16384.0 - (T[0])/1024.0)*(T[1]); temp3 = (adc_t)/131072.0 - (T[0])/8192.0; temp2 = temp3*temp3*(T[2]); temperature = (temp1 + temp2)/5120.0 # pressure offset calculations press1 = (temp1 + temp2)/2.0 - 64000.0 press2 = press1*press1*(P[5])/32768.0 press2 = press2 + press1*(P[4])*2.0 press2 = press2/4.0 + (P[3])*65536.0 press1 = ((P[2])*press1*press1/524288.0 + (P[1])*press1)/524288.0 press1 = (1.0 + press1/32768.0)*(P[0]) press3 = 1048576.0 - (adc_p) if press1 != 0: press3 = (press3 - press2/4096.0)*6250.0/press1 press1 = press3*press3*(P[8])/2147483648.0 press2 = press3*(P[7])/32768.0 pressure = (press3 + (press1 + press2 + (P[6]))/16.0)/100 else: pressure = 0 #pressure relative to sea level pressure_nn = pressure/pow(1 - ALTITUDE/44330.0, 5.255) #syslog.syslog("Luftdruck: %s "%pressure) pressure = pressure_nn #syslog.syslog("Luftdruck relativ zur Hoehe: %s" %pressure_nn) syslog.syslog(syslog.LOG_DEBUG, "extrasensors: found pressure value of %s mbar" % pressure) #syslog.syslog('Luftdruck wurde eingelesen') # NOTE: stores as mbar event.packet['pressure'] = float(pressure) ] -- 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/b75b0456-13e7-40b2-aefb-715ed472cbd5n%40googlegroups.com.
[weewx-user] Customizing WeeWX Webpage
Hi, I've started yesterday night with weewx and sdr.py after my Bresser 5in1 arrived, after updating sdr.py to latest version, it's working nicely. Thanks to all that made it possible. But now I'm stuck in customizing the web-pageI've read the https://weewx.com/docs/usersguide.htm...but I'm totaly confused and frustrated. Where is the howto guid to do that? The bresser 5 in1 does not have UV, does not have baro, has not indoor temperature, in dorr humidtiyhow to blank it out? There are nice showcases...but no expample how to manage it? best regards Frank -- 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/99b556f3-1886-4aa6-a6c7-809211a6a2c5n%40googlegroups.com.