ctucx.git: nimtradfri

[nimlang] incomplete library to interact with ikea tradfri-gateways

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
type
  TradfriGatewayRef* = object 
    host*:            string
    port*:            int
    user*:            string
    pass*:            string

  TradfriUpdatePriority* = enum
    Normal = 0, Critical = 1, Required = 2, Forced = 5

  TradfriGatewayDetails* = object
    alexaPaired*:                bool
    googleHomePaired*:           bool
    currUnixTimestampUTC*:       int
    timeSource*:                 int
    ntpServer*:                  string
    version*:                    string
    otaUpdateRunning*:           bool
    otaUpdateProgress*:          int
    otaUpdatePriority*:          TradfriUpdatePriority
    otaUpdateAcceptedTimestamp*: int
    dstStartMonth*:              int
    dstStartDay*:                int
    dstStartHour*:               int
    dstStartMinute*:             int
    dstEndMonth*:                int
    dstEndDay*:                  int
    dstEndHour*:                 int
    dstEndMinute*:               int
    dstTimeOffset*:              int