Are the spaces you're adding for the html_root, belchertown root url, and 
mqtt topic intentional for this forum post? If not, remove those extra 
spaces they as they will cause a problem. 

Do you need to run weewx on the vps host? I don't think you need to. weewx 
on your Pi will generate the webpages needed, then it can FTP or SCP those 
files to the VPS host automatically. Then MQTT on vps host will help broker 
the data. So the config you have will go on the weewx.conf on your Pi as 
that information will get processed into the webpage that weewx will build. 

Port 1883 is MQTT's port; not weewx. Read through this post on how to setup 
MQTT <https://go.obrienlabs.net/mqttbroker> and testing it for valid data 
and see if it helps you understand the difference between the two systems. 

Also read through this post on how weewx transfers 
<http://weewx.com/docs/usersguide.htm#If_the_server_is_on_a_different_machine>the
 
generated webpages to the remote web server (your vps)

On Wednesday, February 26, 2020 at 9:40:22 AM UTC-5, Gert Andersen wrote:
>
> Hi
>
> Thanks for your answer, I'll try that.
>
> I'm a little bit unsure about  the configuration and whether it's right.
>
> On the rpi / weewx I have installed the weewx / mqtt extension to send 
> data on port 1883.
>
> On vps_host I have installed weewx as well as Belchertown. I'm not 
> expecting to install weewx / mqtt here. This is what my weewx.conf looks 
> like on the vps_host:
>
> [[Belchertown]]
>          HTML_ROOT = / var / www / html
>          skin = Belchertown
>          [[[Extras]]]
>              belchertown_root_url = http: // My Server
>              earthquake_enabled = 1
>              forecast_enabled =
>              mqtt_websockets_enabled = 1
>              mqtt_websockets_host = xxx-xxx-xxx-xxx.vpsCloudServer
>              mqtt_websockets_port = 9001
>              mqtt_websockets_ssl = 0
>              mqtt_websockets_topic = weather / loop
>              disconnect_live_website_visitor = 1800000
>
> My question is also which weewx driver to install on the vps_host. In 
> principle, weewx should only receive data via port 1883 and not use any 
> driver (Vantage, etc) or am I wrong on it
>
> Gert
>
> On Wednesday, February 26, 2020 at 2:11:10 PM UTC+1, Pat wrote:
>>
>> Belchertown should get data as soon as there is a dateTime in the MQTT 
>> payload. Simulator should send this. What you have looks correct, but more 
>> validating needs to take place. Use another client to connect to the MQTT 
>> broker to validate you're seeing any data at all therethere. 
>>
>> Or run Belchertown in debug mode and check the Chrome logs to see what it 
>> says. To run debug, add /?debug=true to the end of your site, like 
>> https://belchertownweather.com/?debug=true - then open the Chrome 
>> console by going to Settings > More Tools > Developer Tools and open the 
>> Console tab. Almost everything the skin is doing is viewable in this debug 
>> mode, from chart generation to any and all MQTT payload data it's seeing.
>>
>>
>>
>> On Wednesday, February 26, 2020 at 3:56:02 AM UTC-5, Gert Andersen wrote:
>>>
>>> Hi there
>>> Is this scenario possible.
>>>
>>> Currently I have an Ecowitt GW1000 which sends data to a VPS Server 
>>> every 16 seconds with Weewx Interceptor, MQTT and Belchertowner installed 
>>> on the VPS Server. This works fine.
>>>
>>> I also have a Davis Vantage Pro2, which is connected to a Meetobridge 
>>> via Davis USB logger. This also works fine.
>>>
>>> Here's my new scenario:
>>> Davis USB logger connected to rpi/weewx. On rpi/weewx I want to install 
>>> mqtt with the following content:
>>>
>>> [[MQTT]]
>>>         server_url = mqtt: // user: password @ vps_host_name: 1883 /
>>>         topic = weather
>>>         binding = archive, loop
>>>         aggregation = aggregate
>>>         log_success = False
>>>         log_failure = True
>>>
>>> On <vps-host_name> I have installed Mosquitto which works fine with 
>>> upload via Interceptor. I want this to be able to upload every 2 seconds.
>>>
>>> I have not yet connected Davis to the rpi / weewx. but tried the 
>>> configuration with Simulator and the above MQTT configuration. Belchertown 
>>> on <vps_host_name> connects fine to MQTT, but is awaiting data. Is it 
>>> because Simulator does not send data via MQTT or because my configuration 
>>> is wrong.
>>>
>>> Gert
>>>
>>

-- 
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/0a6aee91-aad4-45a6-b692-ca17e268e1a1%40googlegroups.com.

Reply via email to