Re: [weewx-user] Multiple bindings when remote database is not on LAN

44 views
Skip to first unread message

Thomas Keffer

unread,
Dec 19, 2019, 6:55:02 AM12/19/19
to weewx-user
It's like any other IP connection: just use either the IP address, or a host name that can be resolved. Something like

host = 122.33.18.55

or


But, I think you'll find serious performance and reliability issues using a host located so far away. Better to use a local host, then replicate the database remotely. There have been a few threads about how to do that. 

-tk

On Wed, Dec 18, 2019 at 8:28 PM PJD <peter.d...@gmail.com> wrote:
I'm trying to bind two weewx databases and am following the "Using multiple bindings" section in the Customization Guide.  If I'm following the example correctly, the remote database being bound is on the same LAN, given that the hostname of the database is given as rpi-bug.

My question is about the syntax I would use if the remote database is 100km away, on its own LAN, sitting behind a router.  Using localhost isn't going to work in finding the remote database and I'm not sure how to name it correctly so that the binding can work.

I'm assuming I'll need to open port(s) on my remote router and forward requests to my remote weewx unit and know how to do that.

Thanks for any tips.

--
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/8d933621-e2f4-4dd2-9333-fc667eaf8e52%40googlegroups.com.

gjr80

unread,
Dec 19, 2019, 7:43:37 AM12/19/19
to weewx-user
Tom,

I think there are a few versions of this post around, the most recent I saw specifically mentioned a remote SQLite db. Suspect that will be more involved.

Gary

Thomas Keffer

unread,
Dec 19, 2019, 8:05:50 AM12/19/19
to weewx...@googlegroups.com
Oh. So the OP wants to use a remote sqlite database? That absolutely won’t work. 

Again, better to replicate the database. 

--
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.
--
-tk
Reply all
Reply to author
Forward
0 new messages