Louis, thank you very much for your reply.
I didn't realize they first did it with Python 2.7. I though you used it in order for it to work with the interceptor driver. I'll keep using python 2.7 and your code but it seems that I'm missing some libraries. (I think I had them all but I keep getting a " BME280_OSAMPLE_8' is not defined " etc. errors) I'll try and find the original code and libraries for Python 2.7 and do the necessary adjustments. Thanks again! On Sun, Nov 24, 2019 at 7:15 PM Louis De Lange <[email protected]> wrote: > George, > > At the time when I completed that project the tutorial on the BC-Robotics > website was written in Python 2.7 so I used all the 2.7 libraries in my > code. With some research you should be able to convert the original code > to work with python 3 libraries. > > Sorry, I have not updated anything because if it works why break it. > > LDL > > On Saturday, 23 November 2019 13:06:57 UTC-8, George Nimrodel wrote: >> >> Hey Louis, >> >> I'm trying to do exactly what you've done with the difference that I have >> weewx running on the RPi and I'm using only the BME280 for temperature in a >> separate enclosure. >> >> I'm having a bit of a trouble with your code. I keep getting errors >> regarding the libraries. >> >> I've noticed that you are not using the python 3 libraries from the >> tutorial. >> >> I would appreciate it if you could tell me which steps you took that are >> not included in the tutorial in order for your code to work. >> >> Any other pointers would also be appreciated >> >> Thank in advance! >> >> On Wednesday, December 12, 2018 at 5:53:25 AM UTC+2, Louis De Lange wrote: >>> >>> I recently came across a really excellent solution for putting together >>> your own weather station on the cheap with high quality sensors - and most >>> importantly a very useful weather HAT to use with a Raspberry PI to connect >>> all the sensors. >>> >>> It comes complete with a 4 part step by step tutorial to assemble the >>> whole station, and basic code to upload the data to and online service - >>> see link below: >>> >>> >>> https://www.bc-robotics.com/tutorials/raspberry-pi-weather-station-part-1/ >>> >>> I completed my own installation based on the instructions in the >>> tutorial and my station running on weewx is active at the link below >>> >>> http://peachlandweather.ca/mystation/ >>> >>> For the outdoor portion I used a Raspberry Pi Zero W, with the weather >>> HAT. Weewx is running indoors in a FreeBSD jail, using a stock Interceptor >>> driver. I modified the basic upload code provided in the tutorial quite >>> extensively to generate upload loops that matched the Observer URLs >>> supported by the Interceptor driver, and also to produce derived >>> observations not included in the original code. >>> >>> The upload code is attached for anyone who might be interested in trying >>> to assemble their own. >>> >>> I tested the results from using the station against my Vantage Pro 2 >>> and so far it seems to be pretty close - for less than 20% of the cost of a >>> Vantage Pro. >>> >> -- > 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/udZCCCJlNE8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/db1a607e-3fb0-4ed1-974e-0930406e7e6a%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/db1a607e-3fb0-4ed1-974e-0930406e7e6a%40googlegroups.com?utm_medium=email&utm_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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CA%2Ba9Y%2Bho3YzicRdtJjpCsm9VeTM7_ngPUxR2TsNy3W5-OnaYjA%40mail.gmail.com.
