Your best bet is to write a driver. But, don't let that intimidate you! At their most basic level, drivers are just a single function: genLoopPackets(). It uses the yield statement to return a dictionary containing the data. That's it.
Take a look at the directions <http://www.weewx.com/docs/customizing.htm#porting> in the Customizing Guide and see if you have any questions. -tk On Mon, Oct 14, 2019 at 9:14 AM Pieter Rautenbach <[email protected]> wrote: > Hello > > The software was super easy to install and set up and there are lots of > good documentation. I am, however, quite new at experimenting with PWSs. > > I would like to ask for some guidance though, as I can't seem to find the > right information or determine the best approach. > > I built a small module (for another purpose) that also houses a BME280 > sensor for measuring temperature, humidity and air pressure, so that my > module can double as a tiny PWS. > > I have the WeeWX server running, hosted behind Nginx and I installed an > extension for the BME280. > > The server is currently running in simulation mode, so it's generating > fake data. I can see from the logs that the LOOP for the BME280 is > triggered and read. > > Since this isn't a standard PWS, is my only option to write a custom > driver? I was hoping something would've built a small implementation like > this already, but I can't seem to find any. There are cases where someone > uses a BME280 as an additional sensor with (e.g.) and AcuRite PWS, but my > setup is different as I only have the BME280 sensor. > > Otherwise, is there a neat trick in terms of setup that I'm missing? Can I > imitate an existing PWS somehow (say, an AcuRite PWS) and have it's driver > use only the extension for the BME280? > > I would appreciate any pointers. I don't expect anybody to solve this for > me: It's a new hobby, so quite happy to do the "hard" work if needed. > > Regards > Pieter > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" 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-development/3ce73445-ecbb-4ded-9cb7-dcf98d610b20%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/3ce73445-ecbb-4ded-9cb7-dcf98d610b20%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/CAPq0zEBH0BDtytmiOScWYrXAjqCY7vYKp4O4%3D0VTzqRV4coOjQ%40mail.gmail.com.
