Can I just modify the code of the already installed driver or would I need to repackage and reinstall it. I may do that later but its another piece I need to learn.
Also how do I ensure its all running Python3? Thanks for all the help. Terry On Tuesday, 16 February 2021 at 18:45:15 UTC-8 [email protected] wrote: > Driver looks like it's written for Python2 (the give away to me is the > print statement on the last line), so you might have a bit of fun fixing > python2/python3 issues. Not too terribly difficult. If you could get the > test program to work, you can probably get the driver to work too. > > On Tue, Feb 16, 2021 at 5:46 PM Terry Steneker <[email protected]> > wrote: > >> I am using the driver located here: >> https://github.com/David-Enst/WeeWX-BCRobotics >> >> I am also attaching the file >> >> >> >> On Tuesday, 16 February 2021 at 16:53:24 UTC-8 [email protected] wrote: >> >>> What driver are you using? >>> It's going to be really tough to help with this because you have unique >>> hardware and aren't asking a very answerable question. >>> >>> On Tue, Feb 16, 2021 at 3:26 PM Terry Steneker <[email protected]> >>> wrote: >>> >>>> >>>> I just purchased the BCRobotics board and tried to install the required >>>> software for it. I ran into problems when I tried to test the BME280 using >>>> the Adafruit ADS1x15 library. Kept getting errors and the python >>>> Adafruit_BME280 library is deprecated. >>>> >>>> Instead of trying to fix the errors I went the hard way and upgraded to >>>> the adafruit-circuitpython libraries so I can also run Python3 >>>> >>>> sudo pip3 install adafruit-circuitpython-bme280 >>>> >>>> sudo pip3 install adafruit-circuitpython-ads1x15 >>>> >>>> I then modified the BCRobotics-test-app.py to run under Python3 and the >>>> upgraded Adafruit libraries. >>>> Tested the program and it works! >>>> >>>> I have attached the modified program. >>>> >>>> I need to modify the driver to work the same as the updated code but >>>> not sure how to do that. Can I just substitute the same modifications that >>>> I made to the test program? >>>> >>>> Thanks >>>> Terry >>>> >>>> On Sunday, 24 November 2019 at 10:25:09 UTC-8 [email protected] wrote: >>>> >>>>> 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/3ddea820-bf91-44ff-9a93-90a3214241c3n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/3ddea820-bf91-44ff-9a93-90a3214241c3n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> >>> >>> -- >>> Peter Quinn >>> (415)794-2264 <(415)%20794-2264> >>> >> -- >> 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/95c558e3-8772-492e-a9e1-7fbdebf6dd97n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/95c558e3-8772-492e-a9e1-7fbdebf6dd97n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Peter Quinn > (415)794-2264 <(415)%20794-2264> > -- 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/6af9e087-3eb8-485f-b067-e4b3d2a85f17n%40googlegroups.com.
