Skin with webcam?

1,465 views
Skip to first unread message

super zee

unread,
Mar 24, 2021, 11:53:43 PM3/24/21
to weewx-user
Brand new here and still learning.  Got Weewx loaded and it's uploading to CWOP and my web page.  Is there a skin preloaded with WeeWX that can accommodate a web cam and live radar feed?  

Thanks for the help!
Chris 
KAZTEMPE47

Les Niles

unread,
Mar 25, 2021, 2:39:44 AM3/25/21
to weewx-user
Belchertown isn’t exactly pre-loaded, but it is well integrated and the install is straightforward.  It has a radar feed. It doesn’t have the webcam built in, but It has several places to insert user-defined content and it would be easy to put a webcam in one of them.  I hacked it a little to put the webcam in place of the current-conditions icon: http://www.2pi.org/wx/

  -Les


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/58b570f6-ba28-4b46-bbdf-dcc9447d36a5n%40googlegroups.com.

DaveStLou

unread,
Mar 25, 2021, 9:47:31 AM3/25/21
to weewx-user
Like In77, I use Belchertown skin. I added my webcam in "index_hook_after_station_info" section so it appears below the station information: OakvilleWx.com

super zee

unread,
Mar 26, 2021, 2:22:58 AM3/26/21
to weewx-user
Thanks for the help.  I will have to install the Belchertown skin and give it a try.  Lots of coding to learn how to make this thing work.  Your site looks great.
Chris 

DaveStLou

unread,
Mar 26, 2021, 7:09:01 PM3/26/21
to weewx-user
I'm sure not an expert but be sure to ask for help if you need it. Belchertown skin does make a site look great!

Mitchell Tuckness

unread,
Apr 1, 2021, 8:02:24 AM4/1/21
to weewx-user
I don't suppose you would be interested in sharing the code you used to modify the Belchertown to look so nice. I am horrible on HTML, but I am pretty good at modifying, or write a guide on how you modified it. Looks great, would like to get mine like that!

moth...@gmail.com

unread,
Apr 2, 2021, 6:54:58 AM4/2/21
to weewx-user
I am also interested in how you did this. Thanks.

Op donderdag 1 april 2021 om 14:02:24 UTC+2 schreef Mitchell Tuckness:

DaveStLou

unread,
Apr 2, 2021, 7:57:09 AM4/2/21
to weewx-user
I 'm no expert by any means. I usually just try things I find here: w3school's HTML Tutorial. I'm sure there's room for improvement.

With that intro, I've attached the index_hook_after_station_info.inc I created which includes the link to YouTube livestream and the embeded EarthCam content.
index_hook_after_station_info.inc

David Trebacz

unread,
Apr 2, 2021, 11:23:44 PM4/2/21
to weewx-user
Here is my integration with Belchertown: https://www.trebacz.com/weather/ happy to share whatever helps....

purc...@maladomini.com

unread,
Apr 13, 2021, 8:03:43 AM4/13/21
to weewx...@googlegroups.com

Thanks, I am going to check this out. I just got MQTT over SSL working, wow, that was tough.

--
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/y-RQmnoqcqQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f3d8e269-1b62-4274-9fce-677aedcdfbf2n%40googlegroups.com.

purc...@maladomini.com

unread,
Apr 13, 2021, 8:15:00 AM4/13/21
to weewx...@googlegroups.com

I am going to have to see if I can increase my outgoing internet speed it looks like. I can stream to youtube using Blue Iris, which I use to push the weather to most services. But for some reason, I can’t keep the live youtube stream connected for very long. I have 10MB fiber out, but according to youtube, that’s the minimum, and when youtube drops the stream, it doesn’t reconnect youtube automatically until you initiate it. Well, all I can assume is it is a bandwidth problem. Or maybe I can figure out how to stream it directly from Blue Iris.

 

 

 

From: weewx...@googlegroups.com <weewx...@googlegroups.com> On Behalf Of DaveStLou
Sent: Friday, April 2, 2021 5:57 AM
To: weewx-user <weewx...@googlegroups.com>
Subject: Re: [weewx-user] Skin with webcam?

 

I 'm no expert by any means. I usually just try things I find here: w3school's HTML Tutorial. I'm sure there's room for improvement.

--
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/y-RQmnoqcqQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f3d8e269-1b62-4274-9fce-677aedcdfbf2n%40googlegroups.com.

Michael Sanphillipo

unread,
Apr 13, 2021, 10:12:15 AM4/13/21
to weewx-user
Do you edit the index file or create a index_hook_after_station_info.inc file and put the camera link in here? If you create a file do you just add a direct link or is there more to it? I realize that I have to edit the skin.conf to turn on the hook.

Thanks!

Michael Sanphillipo

unread,
Apr 15, 2021, 3:48:36 PM4/15/21
to weewx-user
Can you share the information that needs to be added to the "index_hook_after_station_info" section? I can't find any documentation on it. Thanks!

DaveStLou

unread,
Apr 16, 2021, 11:15:45 AM4/16/21
to weewx-user
Information on index_hook_after_station_info.inc is in the Belchertown Skin documentation here: https://github.com/poblabs/weewx-belchertown#add-custom-content-to-the-front-page

You create an html file with that name with whatever you want in it and place it in the root of the Belchertown skin folder.

Michael Sanphillipo

unread,
Apr 16, 2021, 11:28:22 AM4/16/21
to weewx...@googlegroups.com
I think I'm going to go the same route as OakvilleWx.com and stream to youtube. If I did that what would I put in the index_hook_after_station_info.inc file. Sorry, I'm a noob at this so I'm looking for some guidance. Thanks!

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/y-RQmnoqcqQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/17922b65-727e-4785-ac0d-02f9cd4ef92an%40googlegroups.com.

Michael Sanphillipo

unread,
Apr 16, 2021, 11:33:40 AM4/16/21
to weewx-user
After looking at your page source in Chrome I see the following. Is that what I would put in the index_hook_after_station_info.inc file after editing?

<html>

<div>

<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Roboto%3A300%2C400%2C700&#038;ver=1.0' type='text/css' media='all' />

<p style="font-family:roboto;text-align:center;font-size:25px;font-weight:300:">OakvilleWx WeatherCam <a href="https://www.youtube.com/channel/UC1kibywtNNLkelyWazF5ghA/live" target="_blank"> <img src="https://oakvillewx.com/images/youtube-live.png" width="100" height="50"/></a></p>

<p style="text-align:center">

<iframe width="720" height="435" src="https://www.myearthcam.com/oakvillewx?embed" frameborder="0" scrolling="no" allowfullscreen></iframe>

</p>

</div>

</html>

Michael Sanphillipo

unread,
Apr 18, 2021, 1:01:00 AM4/18/21
to weewx-user
Dave, I was able to get my webcam up and running. Just curious how did you get your OakvilleWx logo and weather station temperature overlayed on your Earthcam?

DaveStLou

unread,
Apr 19, 2021, 6:35:31 AM4/19/21
to weewx-user
I use Blue Iris to send the camera feed to YouTube and EarthCam. I add the logos and temperature overlays in that system: https://blueirissoftware.com. I included a screenshot below from the Blue Iris set up. If you go that route, I can provide more detail.

It's kind of pricey to use for just that but I have several cameras around my home that I monitor through Blue Iris which allows me to keep my information local to my network and off the cloud.

Just for fun, I recently pointed one of my little cameras at a robin's nest under my deck (https://myearthcam.com/robincam) and added it temporarily to my index_hook_after_station_info.inc file.

Screenshot 2021-04-19 053301.png

olif onza

unread,
Apr 20, 2021, 2:10:57 AM4/20/21
to weewx-user
I'm developing a navbar above the radar image
Screenshot_2021-04-20 Météo Correns - Station météorologique en temps réel.png
You can see live here.
For people that are interested in, I'll push a branch on my fork on the next days.

Michael Sanphillipo

unread,
Apr 20, 2021, 7:28:27 AM4/20/21
to weewx...@googlegroups.com

olif onza, I really like your setup please let me know when you push your branch and where I can find it. 


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/y-RQmnoqcqQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b11fb253-43fb-450b-9232-60212dac54aen%40googlegroups.com.

salinois

unread,
Apr 20, 2021, 12:04:07 PM4/20/21
to weewx...@googlegroups.com

hello

I am also in FRANCE, how do you install the beautifull icons ?

thanks

Patrick

olif onza

unread,
Apr 29, 2021, 4:14:16 PM4/29/21
to weewx-user
@Patrick yes I know your station for long time.
Look at my about page your will all have info you need.
You can also directly download my icons and import it to your skin ...
Onza

Michael Sanphillipo

unread,
Apr 30, 2021, 9:21:57 AM4/30/21
to weewx-user
Onza, are you editing the index.html.tpml file for the radar/webcam tabs or adding your code somewhere else?

Thanks,
Mike

olif onza

unread,
Apr 30, 2021, 10:04:19 AM4/30/21
to weewx-user
Can you try this commit and give feedback.

salinois

unread,
Apr 30, 2021, 12:08:25 PM4/30/21
to weewx...@googlegroups.com

@Onza

thanks, I saw but I didn't find the procedure to install the Icons.

I configure all inside weewx.conf

Patrick

Michael Sanphillipo

unread,
Apr 30, 2021, 4:27:23 PM4/30/21
to weewx-user
Onza, the commit worked great. I omitted the station tab. Still would like to get a copy of your images folder. Your icons are so colorful. Thanks for your help!

Michael Sanphillipo

unread,
Apr 30, 2021, 7:04:18 PM4/30/21
to weewx-user
Onza, one last request. If I wanted to change your Station tab to a live webcam what would I need to change? The code to the webcam is:

<iframe width="620" height="379" src="https://www.myearthcam.com/ms372591?embed" frameborder="0" scrolling="no" allowfullscreen></iframe>


Thanks,
Mike




olif onza

unread,
May 1, 2021, 1:39:38 AM5/1/21
to weewx-user
Mike, if you want just two tabs, remove li and div for stations-around and put your iframe into the webcam div
<div id="webcam" class="tab-content">
    <iframe width="650" height="355" src="https://www.myearthcam.com/ms372591?embed" frameborder="0" scrolling="no" allowfullscreen></iframe>
</div>

olif onza

unread,
May 1, 2021, 5:59:05 AM5/1/21
to weewx-user
@Mike see latest changes I made here

Michael Sanphillipo

unread,
May 1, 2021, 11:39:47 AM5/1/21
to weewx-user
@Onza

Here is what I have in my index.html.tpml. The live tab is still coming up with nothing in it. I do have my live webcam still active in my index_hook_after_station_info_inc file for now. I will list my webpage below as well. Any help will be greatly appreciated. 

<!-- Radar image -->
                    <div class="col-lg-5 radar-map toprow-height">
                         <!-- MODS RADAR TABS -->
                        <div id="tabs-container">
                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs tabs-menu" role="tablist">
                                <li role="presentation" class="active"><a href="#radar" aria-controls="radar" role="tab" data-toggle="tab">Radar</a></li>
                                <li role="presentation"><a href="#webcam" aria-controls="webcam" role="tab" data-toggle="tab">Webcam</a></li>
                                <li role="presentation"><a href="#live" aria-controls="live" role="tab" data-toggle="tab">Live</a></li>

                            </ul>
                            <div class="tab">
                                <div id="radar" class="tab-content"><div class="radar_image">$radar_html</div></div>
                                <div id="webcam" class="tab-content"><a name="windy-webcam-timelapse-player" data-id="1618016327" data-play="day" href="https://windy.com/webcams/1618016327" target="_blank">Edgewood › South-East</a><script async type="text/javascript" src="https://webcams.windy.com/webcams/public/embed/script/player.js"></script>
                                <div id="live" class="tab-content"><iframe width="620" height="379" src="https://www.myearthcam.com/ms372591?embed" frameborder="0" scrolling="no" allowfullscreen></iframe>
                                </div>
                            </div>
                        </div>
                        <!-- /MODS RADAR TABS -->



Didier Decoodt

unread,
May 1, 2021, 12:20:42 PM5/1/21
to weewx...@googlegroups.com
Michael

You have nice forecast images, where is it possible to download them?
Another question, I would like to install a webcam, could you give me the reference of your webcam.

Many thanks
Didier



--

Michael Sanphillipo

unread,
May 1, 2021, 12:30:17 PM5/1/21
to weewx-user
@ Didier

Here is the link to the weather icons discussion. https://github.com/poblabs/weewx-belchertown/pull/667

As far as my webcam I'm using a Wansview W3 IP Camera, with Agent DVR to stream to Earthcams. Once you get that set up you can get an embed code from Earthcam and insert into the index_hook_after_station_info.inc file. If you read some of the other posts in this conversation you will see one from  DaveStLou he helped me get it set up.

Thanks,
Mike

Didier Decoodt

unread,
May 1, 2021, 1:41:16 PM5/1/21
to weewx...@googlegroups.com
Many thanks Michael

olif onza

unread,
May 1, 2021, 2:38:07 PM5/1/21
to weewx-user
@Mike you have div close errors..
should look like this

<div id="radar" class="tab-content">
    <div class="radar_image">
        $radar_html
    </div>
</div>
<div id="webcam" class="tab-content">
    <a name="windy-webcam-timelapse-player" data-id="1618016327" data-play="day" href="https://windy.com/webcams/1618016327" target="_blank">Edgewood › South-East</a>
    <script async type="text/javascript" src="https://webcams.windy.com/webcams/public/embed/script/player.js"></script>
</div>
<div id="live" class="tab-content">
    <iframe width="620" height="379" src="https://www.myearthcam.com/ms372591?embed" frameborder="0" scrolling="no" allowfullscreen></iframe>
</div>

Michael Sanphillipo

unread,
May 1, 2021, 4:39:21 PM5/1/21
to weewx...@googlegroups.com
@Onza
I got it working after I changed my stream from Earthcams to Youtube. I think it had something to do with the ads that that display before the video. Thanks for all of your help!!

Don Vawter

unread,
Aug 25, 2021, 9:13:34 PM8/25/21
to weewx-user
I don't want to hijack the thread but any delails on getting mqtt to work with ssl would be appreciated. I gave up and am just using insecure. I have a broke on a digital ocean droplet. All the certs are in place but I always get "failed to upload" errors

On Tuesday, April 13, 2021 at 6:03:43 AM UTC-6 Mitchell Tuckness wrote:

Thanks, I am going to check this out. I just got MQTT over SSL working, wow, that was tough.

 

From: weewx...@googlegroups.com <weewx...@googlegroups.com> On Behalf Of DaveStLou
Sent: Friday, April 2, 2021 5:57 AM
To: weewx-user <weewx...@googlegroups.com>
Subject: Re: [weewx-user] Skin with webcam?

 

I 'm no expert by any means. I usually just try things I find here: w3school's HTML Tutorial. I'm sure there's room for improvement.

 

With that intro, I've attached the index_hook_after_station_info.inc I created which includes the link to YouTube livestream and the embeded EarthCam content.

 

On Friday, April 2, 2021 at 5:54:58 AM UTC-5 moth...@gmail.com wrote:

I am also interested in how you did this. Thanks.

Op donderdag 1 april 2021 om 14:02:24 UTC+2 schreef Mitchell Tuckness:

I don't suppose you would be interested in sharing the code you used to modify the Belchertown to look so nice. I am horrible on HTML, but I am pretty good at modifying, or write a guide on how you modified it. Looks great, would like to get mine like that!

On Thursday, March 25, 2021 at 7:47:31 AM UTC-6 DaveStLou wrote:

Like In77, I use Belchertown skin. I added my webcam in "index_hook_after_station_info" section so it appears below the station information: OakvilleWx.com

On Thursday, March 25, 2021 at 1:39:44 AM UTC-5 ln77 wrote:

Belchertown isn’t exactly pre-loaded, but it is well integrated and the install is straightforward.  It has a radar feed. It doesn’t have the webcam built in, but It has several places to insert user-defined content and it would be easy to put a webcam in one of them.  I hacked it a little to put the webcam in place of the current-conditions icon: http://www.2pi.org/wx/


  -Les

 



On 24 Mar 2021, at 20:53, 'super zee' via weewx-user <weewx...@googlegroups.com> wrote:

 

Brand new here and still learning.  Got Weewx loaded and it's uploading to CWOP and my web page.  Is there a skin preloaded with WeeWX that can accommodate a web cam and live radar feed?  

 

Thanks for the help!

Chris 

KAZTEMPE47

 

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/58b570f6-ba28-4b46-bbdf-dcc9447d36a5n%40googlegroups.com.

 

--
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/y-RQmnoqcqQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Doug Jenkins

unread,
Aug 26, 2021, 8:46:07 AM8/26/21
to weewx...@googlegroups.com
Good Morning Don:

I can help with your mqtt setup. I had the same problem with my setup, largoweather.com. The way I solved it was that I setup a Cloudflare account to manage my domain. Cloudflare redirects the traffic to my home public IP address and converts all my traffic to SSL.

For MQTT, I setup a subdomain called wxsocket.largoweather.com and forwarded all port 9001 traffic to my network.

Attached is my Cloudflare and NGINX Proxy Manager setup that I use for largoweather.com. Essentially if you check my SSL Cert, it is provided by Cloudflare. Cloudflare pushes all http traffic as https to my internal server. I have firewall rules to route all incoming 80/443 traffic to my internal server in which that is properly routed to my NGINX Proxy Manager instance.

NGINX Proxy manager proxies that traffic to the correct webserver (in my case container) that hosts my weewx website. I did issue a LetsEncrypt SSL within NGINX Proxy manager to get that to work.

The trick with LetsEncrypt is that you need to expose (just for a second) your public IP Address in Cloudflare (assuming that is your name server of the domain) for the SSL Certificate to be created correctly. Once you do that, you can set up Proxy again to protect your public IP.

Once this is setup, you will see the live updates working in a few minutes. 

Please let me know if this helps.

Doug Jenkins



--
Largoweather.com MQTT Live Weather Setup.docx

Don Vawter

unread,
Aug 26, 2021, 9:40:42 AM8/26/21
to weewx...@googlegroups.com
Thanks, I will look it over. Here is  my use case.

1. I have Starlink as tsp which uses CGNAT==>no public ip at house
2. Set up an openvpn server at Digital ocean
3. Set up Cloudflare to point lots of subdomains to that.
4. Vpn has 1 client. My Synology server
5. VPN routes all incoming traffic from 80 443 8081 to my NAS
6. NAS has Nginx running which reverse proxies to pi which is running weewx
7. The appropriate  certs are all in place

That all works fine . When you go to  https://weather.sangrephotography.com   you will see my weewx implementation running on pi in my house.

So I think most of what you have done with Cloudlare is just a different way of doing the same thing. I cannot do it with CF alone because I don’t have a public ip.


I also have an mqtt server on another droplet at Digital ocean
Since that has a public ip it does not have to go to the vpn.
If I run on 1183 weewx runs fine but fails if I use 8883 to run securely.
I have tested sending from a desktop mqtt client on pi successfully so it isn’t a firewall issue just something in weewx config I think

I think I am close. Could you send me the portion of your weewx.conf file?
Here is what I have

 [[MQTT]]
        topic = weather
        unit_system = US
        binding = archive,loop
        aggregation=aggregate
        log_failure =true
        log_success = true
         [[[tls]]]
            # CA certificates file (mandatory)
            ca_certs = /etc/ssl/certs/ca-certificates.crt
            # PEM encoded client certificate file (optional)
            certfile = /etc/ssl/certs/cert2.pem
            # private key file (optional)
            keyfile = /etc/ssl/certs/privkey2.pem
            # Certificate requirements imposed on the broker (optional).
            #   Options are 'none', 'optional' or 'required'.
            #   Default is 'required'.
            cert_reqs = required
            # SSL/TLS protocol (optional).
            #   Options include sslv1, sslv2, sslv23, tls, tlsv1, tlsv12
            #   Default is 'tlsv1'
            #   Not all options are supported by all systems.
            tls_version = tlsv1
            # Allowable encryption ciphers (optional).
            #   To specify multiple cyphers, delimit with commas and enclose
            #   in quotes.
            #ciphers =

Currently I have [[[tls]]] and below commented about and the server_url is using mqtt and 1883

  
Another set of eyes is probably all I need.
Thanks for your help.
BTW my next task is to create time lapse clips with my Synology and embed those in belchertown theme.



Doug Jenkins

unread,
Aug 30, 2021, 5:20:24 PM8/30/21
to weewx...@googlegroups.com
Don:

Sorry for the late reply. I checked your site and it appears to be up and running with SSL on both the Belchertown skin as well as your MQTT broker. I also see your live streams are working well too. 

You have an interesting setup setting up a VPN to your synology NAS then NGINX as your proxy to the Pi. I understand why you have the setup given the Starlink dependency and using the Synology as the main ingress for your setup. 

anyways I hope my approach helped. Just reach out on the user group again if you have any questions. There is a lot of great technical folks here that can assist.

Doug Jenkins

Don Vawter

unread,
Aug 30, 2021, 5:50:12 PM8/30/21
to weewx...@googlegroups.com
The incoming mqtt web sockets is running with SSL but the outgoing to mqtt broker is not. That is the part I can’t get to work.
I am not terribly concerned but it would tie everything up.

The stills on the livestream work well. Those are actually snapshots generated by surveillance station on Synology. I have inotifywait running on pi to grab them and send to webfoot when a new one arrives. The time-lapse using one created by Synology did not work well as an mp4. I have instead converted the mp4 to an animated gif using ffmpeg which works much better. That is all done in a bash script using inotifywait.

Thanks for your help.

--
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/y-RQmnoqcqQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

olif onza

unread,
Dec 16, 2021, 9:12:09 AM12/16/21
to weewx-user
Hi everyone, just to notice you that my mod is a part of Belchertown skin right now, you can update your installation with the latest github version and use the radar_index.inc.example or see other taste at this issue https://github.com/poblabs/weewx-belchertown/issues/703
Cheers and have nice and happy Christmas

DaveStLou

unread,
Jan 19, 2022, 8:37:02 PM1/19/22
to weewx-user
Hello!

I've been away for a bit and am trying to update my website using the information above. After downloading and installing the master.zip mentioned in issue 703, my MQTT live connection is failing. Using ?debug=true, I see "Cannot connect to MQTT broker" in the browser console. I'd really like to take advantage of all the progress since I last visited this thread, but I don't want to lose MQTT live updates.

Any thoughts on what might be breaking the MQTT connection?

 When I roll back the files to prior to this update (still 1.3b1), MQTT connection resumes as usual (OakvilleWX.com}.

Thanks in advance for assistance!

purc...@maladomini.com

unread,
Jan 19, 2022, 8:50:00 PM1/19/22
to weewx...@googlegroups.com

I am far from an expert at updating, but I do know the mqtt settings can get erased if they are located in the skin.conf and not in the weewx.conf, maybe that is what happened? Have you checked the backup config it makes to see if the statements are there or erased?

 

From: weewx...@googlegroups.com <weewx...@googlegroups.com> On Behalf Of DaveStLou
Sent: Wednesday, January 19, 2022 6:37 PM
To: weewx-user <weewx...@googlegroups.com>
Subject: Re: [weewx-user] Skin with webcam?

 

Hello!

vince

unread,
Jan 19, 2022, 9:21:31 PM1/19/22
to weewx-user
On Wednesday, January 19, 2022 at 5:37:02 PM UTC-8 DaveStLou wrote:
After downloading and installing the master.zip mentioned in issue 703, my MQTT live connection is failing. Using ?debug=true, I see "Cannot connect to MQTT broker" in the browser console. I'd really like to take advantage of all the progress since I last visited this thread, but I don't want to lose MQTT live updates.

Any thoughts on what might be breaking the MQTT connection?


Not without seeing your logs.
 
 When I roll back the files to prior to this update (still 1.3b1), MQTT connection resumes as usual (OakvilleWX.com}.

 
When you say 'roll back' did you uninstall/reinstall, or restore a backup of the skins/Belchertown directory, or something else ?


DaveStLou

unread,
Jan 20, 2022, 10:13:55 AM1/20/22
to weewx-user
On Wednesday, January 19, 2022 at 7:50:00 PM UTC-6 Mitchell Tuckness wrote:

I am far from an expert at updating, but I do know the mqtt settings can get erased if they are located in the skin.conf and not in the weewx.conf, maybe that is what happened? Have you checked the backup config it makes to see if the statements are there or erased?

I compared the skin.conf and weewx.conf before and after the update and the only change was the option for setting a username and password to read MQTT which mine does not require. By end of the day my whole site went offline. Some sort of issue between CloudFlare and my webhost so it may have been something else happening. I'm going to try again.
 

DaveStLou

unread,
Jan 20, 2022, 10:18:54 AM1/20/22
to weewx-user
On Wednesday, January 19, 2022 at 8:21:31 PM UTC-6 vince wrote:
 
Not without seeing your logs.
 
When you say 'roll back' did you uninstall/reinstall, or restore a backup of the skins/Belchertown directory, or something else ?
 
My weewx logs were normal. I turned on MQTT write success messages to confirm the loop messages were being recorded. I rolled back by copying weewx.conf and Belchertown folder files from backup.

I'm going to try again and see if I can find anything else. My current theory is that there may have been an issue with my webhost and CloudFlare. I'm going to do further testing before I post logs.

DaveStLou

unread,
Jan 21, 2022, 9:42:56 AM1/21/22
to weewx-user
Turns out it was these two lines:
     mqtt_websockets_username = ""
     mqtt_websockets_password = ""

I do not need either of these and thought leaving them blank caused them to be ignored but found out I had to comment them out. All is well.
Reply all
Reply to author
Forward
0 new messages