I modified two lines in wxMesh.py and it works fine with Python 3. changed #!/usr/bin/python
to #!/user/bin/python3 and changed except ValueError, e: to except ValueError as e: > On Jun 24, 2020, at 8:59 AM, 'Christian Peters' via weewx-user > <weewx-user@googlegroups.com> wrote: > > Hi, > > I ran a weewx 3.9. station with Python 2 and a seperate weewx instance with > the wxMesh.py driver. > This works very nice (as far as the broker isn't down or the connection > breaks - then a restart of the weewx instance which holds the wxMesh driver > is needed...!). > As I now switch to Python 3 and weewx 4.x I figured out that the wxMesh.py > driver isn't Python 3 ready? :-( > > How can I catch MQTT data into the weewx database from an external broker > ilocated n my home lan? > > Is this the right extension to use: > > https://github.com/bellrichm/WeeWX-MQTTSubscribe > ....? > > What I don't understand: if I will use it as a sevice, in which database will > it put my values? > Is there a mapping needed!? Can I use a seperate database? > Is there a configuration example available or does anybody set up such a > station and could provide the config or give me some advice > howto get the data form the MQTT broker into weewx and the database to show > the values and graphs!? > That would be great! > > Thanks in advance! > > Regards, > > Christian > > -- > 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 > <mailto:weewx-user+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/3f984aba-be57-419e-9334-fde2e668a7fdo%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/3f984aba-be57-419e-9334-fde2e668a7fdo%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/50E05044-A4EC-469C-84E0-A257CD219D32%40gmail.com.