Set Clock

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
LarsK
Posts: 2
Joined: 17 Feb 2016 07:22

Set Clock

Post by LarsK » 17 Feb 2016 07:33

Hello,

it is possible to set the clock with automagic?
In my case the android tablet has no connection to the internet, so the clock goes sometime wrong. My idea is to trigger automagic from a server with timeinformation and automagic set the time on tablet. Everythink i found are examples with alarmtime and not the default clock.

Greets

Lars

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Set Clock

Post by Martin » 17 Feb 2016 20:25

Hi,

I think this requires a rooted device. You could execute a command like date 021721132016.00 using action Execute Root Command. Please check the exact syntax of the command by executing date --help since the command seems to have changed between different versions of Android.

Regards,
Martin

LarsK
Posts: 2
Joined: 17 Feb 2016 07:22

Re: Set Clock

Post by LarsK » 17 Feb 2016 22:05

Hi Martin,

thanks for your reply, I would test it. A "normal" user can set the clock, so I thought it gives in automagic a function that i don't see :-)
A rooted device is also not the problem in my case.

Lars

Post Reply