Community

You need to log in to create posts and topics.

Setting your Oboo's Time and Date

There's two steps that need to be taken to update your Oboo's Time and Date

Setting the Linux Time and Date

We'll need a software update so run

opkg update

opkg upgrade onion-script

Once that's done, you'll need to find your timezone. Run

onion time list

And it will output a huge list of all available timezones.

...

America/Thule AST4ADT,M3.2.0,M11.1.0
America/Thunder Bay EST5EDT,M3.2.0,M11.1.0
America/Tijuana PST8PDT,M3.2.0,M11.1.0
America/Toronto EST5EDT,M3.2.0,M11.1.0
America/Tortola AST4
America/Vancouver PST8PDT,M3.2.0,M11.1.0

...

When you find your timezone, you'll want to copy the entire line.

To set your timezone:

onion time set <timezone> <timezone string>

So to set for Toronto:

onion time set America/Toronto EST5EDT,M3.2.0,M11.1.0

Run the command date to see the system time.

If your time is incorrect, try to synchronize with online NTP servers:

onion time sync

Updating the Oboo Time Display

Now that the Linux time and date is correct, we'll want to update the Oboo's display. Run the following command to force the coprocessor to update it's time and date:

sh /usr/bin/mcu/setMcuTime.sh

thank you, the setup for the time-zone has work well. But how can you set 24h time display? Not AM and PM but display eg: 17:25 format

Quote from beat on July 19, 2018, 7:12 am

thank you, the setup for the time-zone has work well. But how can you set 24h time display? Not AM and PM but display eg: 17:25 format

try:

mosquitto_pub -t /set -m '{"cmd":"hour mode", "value":"24"}' # 24 hour use 12 for 12 hour format

Going through these instructions and want to add:

If your time zone has a space in it, such as America/New York EST5EDT,M3.2.0,M11.1.0 then you must put double quotes around the time zone name. I got an error without it and it worked with the quotes.

onion time set "America/New York" EST5EDT,M3.2.0,M11.1.0

(I'm not sure how to get the code-like formatting on this forum, but blockquote was not what I was looking for so I used preformatted.)

Will setting the clock to be in 24 hour display mode be part of the app? If not can it be added to a configure file. I've been manually using the setting in this thread by ihermit2.

Yep, this will be configurable through the app!