Two things I might add to Pat's great tutorial:

   1. Mosquitto not only hates extra spaces at the end of lines in config 
   files, it also hates not having a newline at the end of each config file. 
   Also, if Mosquitto exits due to a config file format issue, it doesn’t 
   respond to a systemctl start command properly. I think that when it 
   tries to restart, it sees that there is a PID file in existence and just 
   exits. Even restarting the server (ugh) didn’t help me. What I found to get 
   by that is to issue a systemctl stop command first. I think that clears 
   the PID file. Then I issue the systemctl start command.
   2. I set up an Nginx webserver on my external website (which is running 
   Ubuntu) to serve the pages. I used Let’s Encrypt to set up my certs (used 
   for both Mosquitto and Nginx web pages). Rather than use the certbot 
   certonly command as suggested by Pat, I used the Nginx plug-in for 
   Ubuntu:

     sudo apt-get update

        sudo apt-get install software-properties-common

        sudo add-apt-repository ppa:certbot/certbot

        sudo apt-get update

        sudo apt-get install python-certbot-nginx 

                      sudo certbot --nginx

            This really automates the cert installs. It edits the Nginx 
config files, sets up the cron job for renewing the certs and even 
automates redirecting http://URL’s to https:// ones if you want it to. Very 
cool. 

phil

On Wednesday, January 2, 2019 at 11:49:49 AM UTC-5, [email protected] wrote:
>
> Check out Pat's tutorial on doing this on his website (
> https://obrienlabs.net/how-to-setup-your-own-mqtt-broker/). That's what I 
> used to set up MQTT for my website.
> phil
>
> On Wednesday, January 2, 2019 at 9:55:22 AM UTC-5, WILWetter25 wrote:
>>
>> Ive got some questions: I read about MQTT in your readme. The 
>> weatherstation I use, is a Ambient Weather WS 2902. I am using the 
>> Interceptor Driver that sniffs the data, when the weatherstation sends data 
>> to Wundergound. The skin will be uploaded via FTP to my Website.
>>
>> My questions: Which Soft- and Hardware do I need to create a 
>> MQTT-Live-Website?
>>
>> Is it possible for me?
>>
>>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to