Using 2 (two, multiple) [[RSYNC]] Sections in weewx.conf?

74 views
Skip to first unread message

radi...@gmail.com

unread,
Jun 3, 2023, 10:27:53 AM6/3/23
to weewx-user
I'm phasing my weather station hosting to another domain.  For a time, I would like to upload to 2 different (virtual) web hosts to make sure I have everything transitioned properly.

From https://weewx.com/docs/usersguide.htm#If_the_server_is_on_a_different_machine it appears this may be supported.  There is an example given for FTP which surprised me a little.  It seems to say the name within the [[ ... ]] for the section can be anything (I assume unique) and what governs the function for the section is the value for "skin =".

As an aside, perhaps my lack of clarity on this is that in https://weewx.com/docs/usersguide.htm#config_RSYNC doesn't not mention "skin" as an option taht I can see.  If my understanding above is correct, the skin option is required, no?  (Perhaps it is assumed, and was in the default weewx.conf.)

Appreciate the help / clarification-
Bob



Tom Keffer

unread,
Jun 3, 2023, 10:33:32 AM6/3/23
to weewx...@googlegroups.com
You have it right. Your [StdReport] section would look something like this:

[StdReport]

    ...

    [[RSYNC1]]
        skin = Rsync

        enable = true
        server = destination_1
        user = username_on_1
        path = path_on_1

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = public_html

    [[RSYNC2]]
        skin = Rsync

        enable = true
        server = destination_2
        user = username_on_2
        path = path_on_2

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = public_html

As you note, the names RSYNC1 and RSYNC2 can be anything, so long as they are unique. The "skin" they use is "Rsync", each with a different server and, possibly, user name.

-tk


--
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/ec628d1c-fa4a-4c34-bb64-4f65c0c973a5n%40googlegroups.com.

radi...@gmail.com

unread,
Jun 3, 2023, 10:45:45 AM6/3/23
to weewx-user
Thanks Tom!

The extensibility of WeeWx continues to impress - even though I've done very little tweaking so far.  (I'm one of those retired guys who has no clue how I had time to work... and my WX is always on the backburner.)

Thanks for taking the time to write out an example!!

Bob

Reply all
Reply to author
Forward
0 new messages