So just to clarify, can weewx pull weather data from mqtt? I dont see a driver for that. I can see there is community projects for enable both subscribing to mqtt and also to publish to mqtt for data it already has in its own database, but i cant find any documentation or examples of this kind of picture:
weather data collected by esp8266 ---> publish to mqtt (still isn't clear what kind of message structure i would need to follow for weewx to understand this) --> weewx subscribes to the mqtt messages and so can see them and puts it into its own database If thats only possible through third party extensions, this leads me back to instead wanting to just "emulate" a specific drivers data format to be able to use the built in driver support instead. Because what i really want is to really only have 2 pieces of the puzzle here. My esp8266 with sensors attached, and in micropython i collect data points and put them into a data structure directly understood by weewx, which then sends those messages to a weewx instance running on a machine. But to do this, obviously i need to understand the exact data structure of a given weewx driver, which is the part i was asking about and can't easily find documented anywhere, i was basically looking at the driver code and trying to see how it maps packet data to weather data. On Tuesday 6 February 2024 at 23:28:05 UTC+10 p q wrote: > Yeah. I'm assuming you will be running Weewx on some computer other than > the ESP and have a network connection between the ESP and the computer. I > would use MQTT to publish the sensor data to a MQTT broker running > somewhere on your network, likely Mosquitto running on the same machine as > Weewx. Weewx would subscribe to the sensor data and go from there. I am not > up on the Weewx MQTT driver, but I would look into using it. I personally > use the Accurite driver as my original system is an Accurite. Over time as > I've added new sensors or replaced crummy ones, I've started to use MQTT as > my preferred method of sending data from microcontrollers to Weewx > with various hacks on the Accurite driver. > > On Tue, Feb 6, 2024 at 2:51 AM '[email protected]' via weewx-user < > [email protected]> wrote: > >> A few thoughts: >> >> Building the "station" on a ESP8266 doesn't sound like you are planning >> to get too far with your project. Compared to it's successor, it is very >> limited and has some really weird flaws. >> Why would you connect the station with a serial interface, when it has >> WIFI on board? >> p q's MQTT suggestion is a not a bad one. Let your station emit every >> single sensor reading as a MQTT message, and let weewx receive it with MQTT >> Subscribe <https://github.com/bellrichm/WeeWX-MQTTSubscribe> >> Either MQTT Subscribe as a service, augmenting any off-the-shelf station >> supported by weewx with your sensors data, or use it as a driver. >> Encapsulating sensor data in JSON for the MQTT payload is commonly done and >> supported by MQTT Subscribe. >> Pavocracy schrieb am Dienstag, 6. Februar 2024 um 11:07:05 UTC+1: >> >>> I'm not sure if im misunderstanding what you are saying, or if i am not >>> doing a good job at explaining my question, but even if i choose mqtt as my >>> location to push the data, the data still needs to be in some specific >>> format for weewx to understand it no? >>> >>> So on the esp8266, that has a bunch of sensors attached to it, in my >>> embedded code i need to collect the data point for the sensor, and then put >>> it in some specific format to send along somewhere that weewx will read. >>> Reading through the source code it looked like the drivers are where these >>> message formats are interrupted, but i could be wrong? >>> >>> On Monday 5 February 2024 at 23:45:25 UTC+10 p q wrote: >>> >>>> If I was going to do this, I would look into mqtt options. >>>> >>>> On Sun, Feb 4, 2024, 11:03 PM 'Pavocracy' via weewx-user < >>>> [email protected]> wrote: >>>> >>>>> Hello all, >>>>> >>>>> I am working on a hobby project where i am trying to build my own >>>>> "weather station" from an esp8266 and a bunch of sensors. I am very keen >>>>> on >>>>> using weewx to display the post the data, and so i am looking at the >>>>> supported drivers and wondering if there is an obvious answer to which >>>>> driver i should be targeting for my weather station output. >>>>> >>>>> Is there an obvious choice for which driver supports the most data, or >>>>> perhaps is the easiest data to read or is there a driver that is the most >>>>> robust? (particularly for serial connections) >>>>> >>>>> any thoughts or experience on the matter would be greatly appreciated >>>>> :) >>>>> >>>>> -- >>>>> 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/831bd64d-0271-459c-9b52-929817b02319n%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/weewx-user/831bd64d-0271-459c-9b52-929817b02319n%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/f0733294-4828-4b22-941a-33de46a803fbn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/f0733294-4828-4b22-941a-33de46a803fbn%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/9302e97c-f3fc-4a13-a165-9a9f29755836n%40googlegroups.com.
