Posts: 167
Threads: 45
Joined: Mar 2021
Reputation:
2
Hi guys,
I have a KNX weather station in Building A and I want to send that data to Building B
Is it possible two send data between two lm5 that are connected on the same network in "Zerotier"?
If yes, How could I do that?
Posts: 4721
Threads: 24
Joined: Aug 2017
Reputation:
214
First you have to enable remote services and export objects.
You can ether read value or write to other LM.
Code:
require('socket.http')
socket.http.TIMEOUT = 5
-- Read from object
local reply = socket.http.request('http://remote:remote@192.168.0.10/scada-remote?m=json&r=grp&fn=getvalue&alias=0/0/8')
grp.write('0/0/7', reply)
-- Write to object
value = grp.getvalue('0/0/7')
local reply = socket.http.request('http://remote:remote@192.168.0.10/scada-remote?m=json&r=grp&fn=write&alias=0/0/8&value=' .. value .. '')
------------------------------
Ctrl+F5
Posts: 4721
Threads: 24
Joined: Aug 2017
Reputation:
214
Use grp.checkwrite('0/0/7', reply)
------------------------------
Ctrl+F5
Posts: 107
Threads: 40
Joined: Sep 2017
Reputation:
0
When I use the URL for getvalue I receive the login request from the HL, what is the problem ?
http://remote:mypassword4remote@192.168....as=35/0/18
KNX Advanced Partner + Tutor
Posts: 138
Threads: 19
Joined: Apr 2018
Reputation:
0
Hello Admin,
We have 4 different locations where we read energy values via modbus tcp from multiple energy meters on each site and would like to create one whole visualization for the end user on one of the locations. What is the best practice to exchange data between the 4 LMs? This may expand in the future with more locations.
Currently the LMs share the same ZeroTier network. Is there an easy or direct way to allow the LMs to communicate with each other over the KNX multicast protocol (IP routing) using ZeroTier?
Thank you in advnace.
Posts: 4721
Threads: 24
Joined: Aug 2017
Reputation:
214
The easiest way is to use our cloud.
Option 1: Use Mosaic and in cloud settings Enable Mosaic for multipe networks. Once enabled you will have Mosaic admin icon where you can build project from multiple LMs added to this account.
Option2. Add all LMs to the same network in our cloud. Then tag all objects which you want to exchange data between LMs with tag 'lmcloud' Sync LM cloud app and data will go across all LMs using MQTT via broker on our cloud. You would need to have same objects on all LMs with the tag for it to work. When adding more then one LM to the same network(use same string) you will have to manually give it permissions in the cloud settings.
------------------------------
Ctrl+F5