Home/Support/Support Forum/How to set the rtc from Python on Xbee Gateway
New and improved user forum site going live on 12/6 (All users will need to reset their password when the new forum is active)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to set the rtc from Python on Xbee Gateway

0 votes
I am porting Python code from a Connectport x4 to a Xbee Gateway and I need to set the RTC. On the Connectport it used a function from the digicli module but this is not supported on the Xbee Gateway. I tried os.system('date -s "2016-10-24 16:00:00"') but it says Operation not permitted.
Can anyone point me in the right direction?
asked Oct 24, 2016 in Python by mike.mccusker New to the Community (9 points)
How did you finally solve it? I have same issue than you. I need to set the system date and time and I do not have rights to do it.

Please log in or register to answer this question.

1 Answer

+1 vote
From everything I am reading, you can only set the RTC (real time Clock) on the X4, X8, Connect WAN 3G and Connectport WAN VPN.
answered Oct 24, 2016 by mvut Veteran of the Digi Community (15,515 points)