Thank you very much for your efforts doing this driver for WMR89.
Like Timolavi, my WMR88 died yesterday and I am looking for a replacement 
with which I can reuse my old sensors. WMR89 seems perfect, despite the 
driver problem... I am running Weewx in a Raspberry Pi, do you know if your 
driver will work fine with my hardware? I have read that in Raspberry Pi 
the baud rate 128000 can not be set 
<https://groups.google.com/d/msg/weewx-development/hrRQFNkSsG8/Xv_IJpZkBgAJ>
.
Another option would be the WMR86, but I don't see it in the compatible 
list of hardware  <http://weewx.com/hardware.html>altough in the WMR 100 
driver appears as compatible... Does somebody has experience with this 
station?

El miércoles, 14 de marzo de 2018, 21:18:52 (UTC+1), fcauwe escribió:
>
> Hi, 
>
> I'm happy to hear you got it working, I update my github with you 
> modification; 
> https://github.com/fcauwe/weewx 
>
> I noticed that the barometer only opdates every 15 minutes, so I have 
> modified the "archive_interval" to "900", now I always have barometer 
> data on the WOW site. 
>
> François 
>
>
>
> Timo Helkiö schreef op wo 14-03-2018 om 02:35 [-0700]: 
> > 
> > I did get my WMR89 this monday for replacement for 5 years old WMR88, 
> > which starts to shown some defunction features.   
> > oon appeared that direct replacement was not possible. I found this 
> > fcauwe's driver and instruction to modify cp210x-driver. I changed 
> > cp210x source code from https://www.silabs.com/products/development-t 
> > ools/software/usb-to-uart-bridge-vcp-drivers to recognize WMR89, 
> > compiled and installed it. Now loading module creates /dev/ttyUSB0. 
> > In weewx.conf I added this: 
> > 
> > [WMR89] 
> >     # This section is for the Oregon Scientific WMR100 
> >     
> >     # The driver to use 
> >     #driver = user.wmr89 
> >     driver = weewx.drivers.wmr89 
> >     
> >     # The station model, e.g., WMR100, WMR100N, WMRS200 
> >     model = WMR89 
> >     
> >     type = serial 
> >     product_id = 0xca0a 
> >     port = /dev/ttyUSB0 
> > 
> > It did not work before I added "type=serial" 
> > Driver should use these parameters as default. I found this "type"- 
> > parameter by reading driver code. 
> > After these, driver worked, but I have two extra temperature 
> > sensors. 
> > Temperature packet in driver is like this: 
> > 
> > if (packet[2].encode('hex')=='00'): 
> >           _record = { 
> >             'humidity_in': hum, 
> >             'temperature_in': float(temp), 
> >             'dewpoint_in': dew, 
> >             'dateTime': int(time.time() + 0.5), 
> >             'usUnits': weewx.METRIC 
> >           } 
> >         elif (packet[2].encode('hex')=='01'): 
> >           _record = { 
> >             'humidity_out': hum, 
> >             'temperature_out': float(temp), 
> >             'dewpoint_out': dew, 
> >             'dateTime': int(time.time() + 0.5), 
> >             'usUnits': weewx.METRIC 
> >           } 
> > 
> > I did add this: 
> > elif (packet[2].encode('hex')=='02'): 
> >           _record = { 
> >             'humidity_1': hum, 
> >             'temperature_1': float(temp), 
> >             'dewpoint_1': dew, 
> >             'dateTime': int(time.time() + 0.5), 
> >             'usUnits': weewx.METRIC 
> >           } 
> >         elif (packet[2].encode('hex')=='03'): 
> >           _record = { 
> >             'humidity_2': hum, 
> >             'temperature_2': float(temp), 
> >             'dewpoint_2': dew, 
> >             'dateTime': int(time.time() + 0.5), 
> >             'usUnits': weewx.METRIC 
> >           } 
> > 
> > Now everything is working, except barometer data is quite often 
> > missing. 
> > 
> >          Timo 
> > 
> > -- 
> > 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/top 
> > ic/weewx-user/FxNx6am2MgM/unsubscribe. 
> > To unsubscribe from this group and all its topics, send an email to w 
> > [email protected] <javascript:>. 
> > 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to