Uzenet REST API

From Uzebox Wiki
Revision as of 01:45, 24 October 2015 by Uze (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This page describes the Uzenet REST API. This API allows Uzenet functions to be performed by tools, programs or games over the common HTTP protocol.


Obtain Universal Coordinated Timestamp

Obtain a UTC Unix timestamp representing the current date and time. This timestamp can be processed using regular C functions.

GET http://uzebox.org/uzenet/time.php

Response: 32-bit Integer

Response example: 1445650798

Description

To set time use avr-libc function: set_system_time(timestamp-UNIX_OFFSET);

To set local time and account for timezone, use C function ex: set_zone(-4 * ONE_HOUR).