The Remote Gateway driver creates a proxy/replica of a gateway running on another Weble device. It connects to a remote Weble gateway over the network (HTTP/HTTPS via WebSocket) and synchronizes all addresses bidirectionally — values written locally are forwarded to the remote gateway, and values changing on the remote side are reflected locally.
This is essential for:
Prefer a dedicated account with only the rights needed, rather than an administrator account.
http://192.168.1.99:8080 or https://192.168.1.99).Once the gateway is started:
The local gateway appears and behaves exactly like the remote one — same addresses, same values, same driver type. Routes can be created to/from the remote addresses just like any local address.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name for this remote gateway instance. |
| Cluster ID | cluster | Cluster identifier. |
| Description | description | Optional description. |
| URL | url | URL of the remote Weble device's web server (e.g. http://192.168.1.99:8080, https://192.168.1.99). |
| Username | username | Login username on the remote device. |
| Password | password | Login password on the remote device. |
| Remote Gateway | gateway | The remote gateway to replicate. Click the search button to list available gateways on the remote device. In the JSON, gateway is the numeric id of the gateway on the remote device. |
| Push initial values | pushInitialValues | At connection, the local values are written to the remote gateway for every address whose value was not just taken from the remote side. Used alone, the remote value still wins wherever the remote address already has a different value; enable Ignore initial values as well to make the local gateway the master for all addresses. |
| Ignore initial values | ignoreInitialValues | At connection, the values already present on the remote gateway are not copied into the local addresses; only later changes are mirrored. |
| Push | Ignore | Result at connection |
|---|---|---|
| off | off | Remote values are copied locally (default). |
| off | on | Nothing is copied; both sides keep their values until the next change. |
| on | off | Remote values are copied locally where they exist and differ; local values fill the remote addresses that have no value. |
| on | on | Local values are written to the remote gateway. |
The pushed values are real writes: at every connection they go through the driver of the remote gateway to the field devices.
{
"url": "https://192.168.1.99",
"username": "remote-link",
"password": "your-password",
"gateway": 18,
"pushInitialValues": false,
"ignoreInitialValues": false
}
The Remote Gateway driver imports all addresses from the remote gateway automatically. The addresses keep the same names, descriptions, and types as on the remote side.
For example, if the remote gateway is a Modbus master with addresses %M1, %M2, %M3, the local remote gateway will have the exact same addresses with synchronized values.
The address list is created automatically from the remote gateway, but the mirror works in both directions. While the gateway is connected, an address that you insert, modify or delete locally is inserted, modified or deleted on the remote gateway as well, and the other way round.
Warning: deleting an address in the local replica deletes it on the remote device.
While the gateway is not connected, the system refuses to insert, delete or modify its addresses, because the change could not reach the other device and would be overwritten at the next connection. Only the local Log setting can still be changed.
| Property | Value |
|---|---|
| Readable | Yes (forwarded to remote gateway) |
| Writable | Yes (forwarded to remote gateway) |
| Routable | Yes |
| Loggable | Yes |
remoteLog in the local address JSON.LOST: ... the link was still synchronising (make the change again).LOST: ... more than 5 changes of this address in 20 s).
| Message in the gateway log | Cause and action |
|---|---|
login/connect to remote <url> failed |
Wrong URL, device unreachable, or wrong username / password. |
unknown remote gateway |
The selected gateway no longer exists on the remote device: select it again with the search button. |
remote gateway is not connected |
The gateway is stopped or disconnected on the remote device. |
lost connection with supervision / lost connection with remote driver |
Network cut, or the remote gateway was restarted. The driver reconnects by itself. |
The saved password can only be used with the saved URL: enter the password again |
Shown by the search button after the URL was changed: type the password again. |
... can only be added / deleted / changed while it is connected |
An address was edited while the link was down. |