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 
import json, os, strutils
import tradfri

let tradfriGateway = newTradfriGateway(
    host = "192.168.100.225",
    port = 5684,
    user = "ctucx",
    pass = "JrSGx6WkAVJUl53b"
  )

let groups = %* tradfriGateway.getGroups()

echo pretty groups