summaryrefslogblamecommitdiffstats
path: root/listGroups.nim
blob: 0975b9d2caa1ed02b71df008d9760c6ec5db2bbb (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                       


                                          
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