[weewx-user] Re: Bresser 5in1 in docker on Synology
Hi all everything is solved, I created my own docker, based on https://github.com/Daveiano/weewx-wdc-interceptor-docker. Now I am running v5.1.0 and have no issues anymore. Many kudos to Daveiano for creating this simple github. This helped me to get the 5.1.0 working on my Synology. Kris On Wednesday, July 31, 2024 at 10:49:09 AM UTC+2 Kris_bresser wrote: > Hi all > > I am enjoying a lot my Bresser Wifi Pro 5in1 weather station and I am > pushing the data into my home assistant via the WeeWX docker. I first > explain a bit how I did it, as it may help users with similar hardware, but > at the end, I do have a question. > > These are the things I did to get it working: > > My weather station unfortunately did not allow for a direct connection to > a home server, but it does allow for an upload to Wunderground. I created > an account, and filled out the details and from then onwards, my station is > sending data to Wunderground. But, I still wanted to capture the traffic > for using in my home assistant. That's why in my ASUS router with Merlin > firmware, I created some IP-tables to redirect the traffic to Wunderground > to my WeeWx server: > iptables -t nat -A PREROUTING -s bresserIP -p tcp --dport 80 -j DNAT > --to-destination weewx-serverIP:3010 > iptables -t nat -A POSTROUTING -j MASQUERADE > > Now all packets will be redirected to port 3010. > > Then I installed a docker container on my synology via docker-compose. The > docker is from felddy, weewx. This combines MQTT, weewx and the > interceptor, as I am redirecting traffic. > -- > version: "3.8" > services: > weewx: > container_name: weewx_bresser > image: felddy/weewx > init: true > restart: "always" > privileged: true > network_mode: host > ports: >- 8102:80 > volumes: >- /volume1/docker/weewx/:/data > - /volume1/docker/weewx/html/:/home/weewx/public_html/ > environment: > - timezone=Europe/Brussels > - WEEWX_UID=weewx > - WEEWX_GID=dialout > --- > This docker requires in my data folder of course the configuration file. > At first install, this file is created, then, you can fill it out. I copy > here the most important parts of my weewx.conf. > > > ## > > # This section is for general configuration information. > > # Set to 1 for extra debug info, otherwise comment it out or set to zero > debug = 2 > > # Root directory of the weewx data file hierarchy for this station > WEEWX_ROOT = /home/weewx > > # Whether to log successful operations. May get overridden below. > log_success = True > > # Whether to log unsuccessful operations. May get overridden below. > log_failure = True > > # Do not modify this. It is used when installing and updating weewx. > version = 4.10.2 > > > ## > # This section is for information about the station. > > [Station] > > # Description of the station location > location = "Thuis" > > # Latitude in decimal degrees. Negative for southern hemisphere > latitude = fill_in_your_latitude > # Longitude in decimal degrees. Negative for western hemisphere. > longitude = fill_in_your_longitude > > # Altitude of the station, with the unit it is in. This is used only > # if the hardware cannot supply a value. > altitude = 41, meter# Choose 'foot' or 'meter' for unit > > # Set to type of station hardware. There must be a corresponding stanza > # in this file, which includes a value for the 'driver' option. > station_type = Interceptor > > > > # If you have a website, you may specify an URL. This is required if > you > # intend to register your station. > #station_url = http://www.example.com > > # The start of the rain year (1=January; 10=October, etc.). This is > # downloaded from the station if the hardware supports it. > rain_year_start = 1 > > # Start of week (0=Monday, 6=Sunday) > week_start = 0 > > > ## > > [Interceptor] > # This section is for the network traffic interceptor driver. > > # The driver to use: > driver = user.interceptor > device_type = wu-client this is used for all undefined clients > which just upload to Wunderground. > mode = listen > address = my_weewx_server_ip_address > port = 3010 > ## > # This section is for uploading data to Internet sites > > [StdRESTful] > > # Uncomment and change to override logging for uploading services. > # log_success = True > # log_failure = True > I put all uploads on false, except for Weather Underground. > [[Wunderground]] > # This section is for configuring posts to the Weath
Re: [weewx-user] Re: Belchertown and MQTT configuration error
Can't help without seeing your current mosquitto config file and your weewx.conf file at a minimum. Remember you need to restart weewx after making weewx.conf changes and that your mosquitto broker is running and accepting incoming traffic into the ip address you are trying to talk to. You might check your mosquitto broker's logfile too to see if anything there is being logged that might help. On Sunday, August 4, 2024 at 8:12:53 PM UTC-7 M&M wrote: > Vince, I followed that link and I'm making some progress. Thank you. I > now get the message on my local page: > > > Connected. Waiting for data. Last Updated 4 August 2024, 23:00:00 > > I've been reading over some threads of people having the same issue but > those fixes are not working for me. Thoughts? > > On Friday, August 2, 2024 at 4:01:58 PM UTC-4 Stefanos Kalaitzis wrote: > >> >> Try this in weewx.conf :** but be careful with the unit_system >> [[MQTT]] >> topic = your_topic >> unit_system = METRICWX >> binding = loop >> aggregation = aggregate >> log_success = false >> log_failure = true >> server_url = mqtt://broker.hivemq.com:1883 >> >> [[[inputs]]] >> windSpeed >> units = km_per_hour >> windGust >> units = km_per_hour >> >> In belchertown stanza : >> >> >> #--- MQTT Websockets (for Real Time Streaming) Options --- >> mqtt_websockets_enabled = 1 >> >> mqtt_websockets_host = broker.hivemq.com >> mqtt_websockets_port = 8884 >> mqtt_websockets_ssl = 1 >> mqtt_websockets_topic = yourtopic/loop >> # disconnect_live_website_visitor = 180 >> >> **Change only the topic and the unit system you are using. Because i am >> writing from mobile please forgive me if something is strange to your eyes. >> >> Στις Παρ 2 Αυγ 2024, 21:42 ο χρήστης vince έγραψε: >> >>> You're probably overthinking. It's really very simple. You don't need >>> SSL if you're just going to run on your LAN. You likely don't even need to >>> password protect it either if you are LAN only. >>> >>> See the example starting at line 72 of >>> https://github.com/vinceskahan/weewx-odds-and-ends/blob/master/install-belchertown-websockets >>> >>> for the minimal mosquitto MQTT server setup that works for me. >>> >>> On Friday, August 2, 2024 at 10:56:59 AM UTC-7 M&M wrote: >>> I've read a bunch about MQTT, Belchertown, and Weewx so I thought I would able to get this working. From the pages I read on github and such, it didn't seem like it took a lot of configuration to mosquitto to get it working. From the links I posted above that I followed, it didn't seem that I needed to have SSL certs working yet to get it working locally. I figured I would do that first before venturing out to get this working on a website. So I'll go back and see what I can configure to get the certs added to my conf files. Do you have any websites that you suggest to use to get this working? I feel like I'm close. On Friday, August 2, 2024 at 8:41:28 AM UTC-4 gary@gmail.com wrote: > I see you haven't done much research. > If you want to understand this and get the Belchertown skin to work, > you need to do some. > A default mosquitto.conf isn't going to work as you want. > You will likely need SSL certs in order to have websockets work via > the internet vs local LAN. > You should have writing to mosquitto password protected, but > allow anonymous reading. > > When MQTT/Websockets works, it is great. Getting there requires a > passing familiarity with the care and feeding of mosquitto. > > On Thursday, August 1, 2024 at 11:38:28 PM UTC-4 M&M wrote: > >> Where can I find out if I have acl? >> >> My mosquitto.conf file looks a bit different. I didn't change any of >> it after it was installed besides the two listener lines. It looks like >> this: >> >> pi@raspberrypi:~ $ more /etc/mosquitto/mosquitto.conf >> # Place your local configuration in /etc/mosquitto/conf.d/ >> # >> # A full description of the configuration file is at >> # /usr/share/doc/mosquitto/examples/mosquitto.conf.example >> >> pid_file /run/mosquitto/mosquitto.pid >> >> persistence true >> persistence_location /var/lib/mosquitto/ >> >> log_dest file /var/log/mosquitto/mosquitto.log >> >> include_dir /etc/mosquitto/conf.d >> >> listener 1883 >> listener 9001 >> protocol websockets >> >> On Thursday, August 1, 2024 at 9:38:48 AM UTC-4 gary@gmail.com >> wrote: >> >>> Do you have an acl and does it resemble this? >>> # Allow anonymous access to the sys >>> topic read $SYS/# >>> >>> # Allow anonymous to read weather >>> topic read weather/#
Re: [weewx-user] Re: Biowetter and Pollen forecast in weewx-DWD
I created some icons used to indicate thermal stress: -- 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/5e61b5fc-d049-4af5-8757-d1a3b93fd5fan%40googlegroups.com.