This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

KNX GPS receiver with W4K
#3
(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
Reply


Messages In This Thread
KNX GPS receiver with W4K - by Ruslan25 - 18.08.2018, 14:47
RE: KNX GPS receiver with W4K - by Ruslan25 - 19.08.2018, 04:34
RE: KNX GPS receiver with W4K - by Ruslan25 - 19.08.2018, 11:02
RE: KNX GPS receiver with W4K - by Daniel - 20.08.2018, 07:30
RE: KNX GPS receiver with W4K - by Ruslan25 - 20.08.2018, 09:31
RE: KNX GPS receiver with W4K - by Ruslan25 - 20.08.2018, 10:04
RE: KNX GPS receiver with W4K - by Ruslan25 - 21.08.2018, 16:19
KNX GPS receiver with W4K - by Ruslan25 - 16.10.2018, 08:16
RE: KNX GPS receiver with W4K - by Daniel - 16.10.2018, 08:28

Forum Jump: