Logic Machine Forum
KNX GPS receiver with W4K - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: KNX GPS receiver with W4K (/showthread.php?tid=1542)



KNX GPS receiver with W4K - Ruslan25 - 18.08.2018

Hello
Is it possible to send from KNX GPS receiver to W4K the actual time, date and GPS coordinates ? I dont have internet connection to W4K.


RE: KNX GPS receiver with W4K - Erwin van der Zwart - 18.08.2018

Hi,

Try this:
Code:
date = grp.getvalue('date_object')
time = grp.getvalue('time_object')

cmd = string.format("date -s '%d-%d-%d %d:%d:%d'", date.year, date.month, date.day, time.hour, time.minute, time.second)
os.execute(cmd)
BR,

Erwin


RE: KNX GPS receiver with W4K - Ruslan25 - 19.08.2018

(18.08.2018, 20:37)Erwin van der Zwart Wrote: Hi,

Try this:
Code:
date = grp.getvalue('date_object')
time = grp.getvalue('time_object')

cmd = string.format("date -s '%d-%d-%d %d:%d:%d'", date.year, date.month, date.day, time.hour, time.minute, time.second)
os.execute(cmd)
BR,

Erwin
Thanks

Is it only for time and date? What will happen if I use astro time switch function without internet connection?

Skickat från min S41 via Tapatalk


RE: KNX GPS receiver with W4K - Erwin van der Zwart - 19.08.2018

Hi,

There is no need for internet when using astro functions, just set the correct timezone in the time settings and alternative set the lon-lat in the time settings to have a slightly better precision on the location.

BR,

Erwin


RE: KNX GPS receiver with W4K - Ruslan25 - 19.08.2018

(19.08.2018, 07:02)Erwin van der Zwart Wrote: Hi,

There is no need for internet when using astro functions, just set the correct timezone in the time settings and alternative set the lon-lat in the time settings to have a slightly better precision on the location.

BR,

Erwin
I have one more question:
Is it possible to have the same visualisation on the knx panel or other panel as on w4k without internet connection?

Skickat från min S41 via Tapatalk


RE: KNX GPS receiver with W4K - Daniel - 20.08.2018

Hi
As long it is on the same local network then yes.
BR


RE: KNX GPS receiver with W4K - Ruslan25 - 20.08.2018

(20.08.2018, 07:30)Daniel. Wrote: Hi
As long it is on the same local network then yes.
BR
Its mean I need panel with rj45 connection. Does anybody have some idea?

Skickat från min S41 via Tapatalk


RE: KNX GPS receiver with W4K - Erwin van der Zwart - 20.08.2018

Hi,

You can use a 100% KNX based panel, but then the project configuration is done by the panel itself and KNX (TP) will control and update the status of your buttons.

If you want to use the embedded web based visu from the controller then yes you will off course need to connect it over IP.

BR,

Erwin


RE: KNX GPS receiver with W4K - Ruslan25 - 20.08.2018

(20.08.2018, 09:37)Erwin van der Zwart Wrote: Hi,

You can use a 100% KNX based panel, but then the project configuration is done by the panel itself and KNX (TP) will control and update the status of your buttons.

If you want to use the embedded web based visu from the controller then yes you will off course need to connect it over IP.

BR,

Erwin
Exactly, I want want to use the embedded web based visu from the controller. But it's difficult to find panel with rj45 connection.
I want control all astro/time switches from panel. The normal knx panel have own time switch function and w4k have own. How to sync between devices?

Skickat från min S41 via Tapatalk


RE: KNX GPS receiver with W4K - Erwin van der Zwart - 20.08.2018

Hi,


There are plenty panels with IP connection, any PC panel can be used as long as it supports a HTML5 browser.. You can also use panels with WiFi connection like iPad or Android Tablets in combination with a WiFi access point.

I don't think you can sync the KNX schedulers from a KNX panel to the controller and vice versa.. 

Depending on the panel there might be options but mostly it's closed in the panel system.

BR,

Erwin


RE: KNX GPS receiver with W4K - Ruslan25 - 21.08.2018

(20.08.2018, 12:19)Erwin van der Zwart Wrote: Hi,


There are plenty panels with IP connection, any PC panel can be used as long as it supports a HTML5 browser.. You can also use panels with WiFi connection like iPad or Android Tablets in combination with a WiFi access point.

I don't think you can sync the KNX schedulers from a KNX panel to the controller and vice versa.. 

Depending on the panel there might be options but mostly it's closed in the panel system.

BR,

Erwin
Thanks a lot for all answers. I forgot to say that even WiFi its not allowed

Skickat från min S41 via Tapatalk


KNX GPS receiver with W4K - Ruslan25 - 16.10.2018

Hi again
Is it possible to send the right time and date to Knx bus from wiser?

Skickat från min S41 via Tapatalk


RE: KNX GPS receiver with W4K - Daniel - 16.10.2018

(16.10.2018, 08:16)Ruslan25 Wrote: Hi again
Is it possible to send the right time and date to Knx bus from wiser?

Skickat från min S41 via Tapatalk

Copy paste from w4k manuals


Code:
-- get current data as table
now = os.date('*t')
-- system week day starts from sunday, convert it to knx format
wday = now.wday == 1 and 7 or now.wday - 1
-- time table
time = {
day = wday,
hour = now.hour,
minute = now.min,
second = now.sec,
}
-- date table
date = {
day = now.day,
month = now.month,
year = now.year,
}
-- write to bus
grp.write('1/1/2', time, dt.time)
grp.write('1/1/1', date, dt.date)