github.com/stampzilla/stampzilla-go@v2.0.0-rc9+incompatible/pkg/hueemulator/debug.txt (about)

     1  
     2  [HANDLE] test
     3  [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
     4   - using env:	export GIN_MODE=release
     5   - using code:	gin.SetMode(gin.ReleaseMode)
     6  
     7  [GIN-debug] GET    /upnp/setup.xml           --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.upnpSetup.func1 (3 handlers)
     8  [GIN-debug] GET    /api/:userId              --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.getLightsList (3 handlers)
     9  [GIN-debug] PUT    /api/:userId/lights/:lightId/state --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.setLightState (3 handlers)
    10  [GIN-debug] GET    /api/:userId/lights/:lightId --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.getLightInfo (3 handlers)
    11  [GIN-debug] POST   /api                      --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.ListenAndServe.func1 (3 handlers)
    12  [UPNP] listening...
    13  [WEB] 192.168.13.124:52754 POST /api
    14  {"devicetype":"ap-local-actions#jetstream"}
    15  [GIN] 2016/11/24 - 23:46:46 | 200 |       7.481µs | 192.168.13.124 |   POST    /api
    16  [WEB] 192.168.13.124:52754 POST /api
    17  {"devicetype":"ap-local-actions#jetstream"}
    18  [GIN] 2016/11/24 - 23:46:52 | 200 |      10.414µs | 192.168.13.124 |   POST    /api
    19  [WEB] 192.168.13.124:52754 POST /api
    20  {"devicetype":"ap-local-actions#jetstream"}
    21  [GIN] 2016/11/24 - 23:46:58 | 200 |      16.467µs | 192.168.13.124 |   POST    /api
    22  [WEB] 192.168.13.124:52754 POST /api
    23  {"devicetype":"ap-local-actions#jetstream"}
    24  [GIN] 2016/11/24 - 23:47:04 | 200 |        4.87µs | 192.168.13.124 |   POST    /api
    25  [WEB] 192.168.13.124:52754 POST /api
    26  {"devicetype":"ap-local-actions#jetstream"}
    27  [GIN] 2016/11/24 - 23:47:10 | 200 |       5.531µs | 192.168.13.124 |   POST    /api
    28  [WEB] 192.168.13.124:52754 POST /api
    29  {"devicetype":"ap-local-actions#jetstream"}
    30  [GIN] 2016/11/24 - 23:47:16 | 200 |       4.678µs | 192.168.13.124 |   POST    /api
    31  [WEB] 192.168.13.124:52754 POST /api
    32  {"devicetype":"ap-local-actions#jetstream"}
    33  [GIN] 2016/11/24 - 23:47:22 | 200 |       6.089µs | 192.168.13.124 |   POST    /api
    34  [UPNP] discovery request from 192.168.13.124:43625
    35  [UPNP] discovery request from 192.168.13.86:38014
    36  
    37  
    38  After added to home:
    39  [sudo] password for jonaz: 
    40  [HANDLE] test
    41  [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
    42   - using env:	export GIN_MODE=release
    43   - using code:	gin.SetMode(gin.ReleaseMode)
    44  
    45  [GIN-debug] GET    /upnp/setup.xml           --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.upnpSetup.func1 (3 handlers)
    46  [GIN-debug] GET    /api/:userId              --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.getLightsList (3 handlers)
    47  [GIN-debug] PUT    /api/:userId/lights/:lightId/state --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.setLightState (3 handlers)
    48  [GIN-debug] GET    /api/:userId/lights/:lightId --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.getLightInfo (3 handlers)
    49  [GIN-debug] POST   /api                      --> github.com/stampzilla/stampzilla-go/nodes/stampzilla-server/hueemulator.ListenAndServe.func1 (3 handlers)
    50  [UPNP] listening...
    51  [UPNP] discovery request from 192.168.13.86:48251
    52  [UPNP] discovery request from 192.168.13.86:48251
    53  [WEB] 192.168.13.86:45270 GET /upnp/setup.xml
    54  [GIN] 2016/11/24 - 23:53:46 | 200 |      31.624µs | 192.168.13.86 |   GET     /upnp/setup.xml
    55  [UPNP] discovery request from 192.168.13.86:48251
    56  [UPNP] discovery request from 192.168.13.86:48251
    57  [WEB] 192.168.13.124:52765 POST /api
    58  {"devicetype":"ap-local-actions#jetstream"}
    59  [GIN] 2016/11/24 - 23:54:03 | 200 |      70.179µs | 192.168.13.124 |   POST    /api
    60  [WEB] 192.168.13.124:52765 GET /api/83b7780291a6ceffbe0bd049104df/lights
    61  [GIN] 2016/11/24 - 23:54:03 | 404 |       1.406µs | 192.168.13.124 |   GET     /api/83b7780291a6ceffbe0bd049104df/lights
    62  [WEB] 192.168.13.124:52765 GET /api/83b7780291a6ceffbe0bd049104df/lights
    63  [GIN] 2016/11/24 - 23:54:06 | 404 |       1.771µs | 192.168.13.124 |   GET     /api/83b7780291a6ceffbe0bd049104df/lights
    64  [WEB] 192.168.13.124:52765 GET /api/83b7780291a6ceffbe0bd049104df/lights
    65  [GIN] 2016/11/24 - 23:54:16 | 404 |       1.766µs | 192.168.13.124 |   GET     /api/83b7780291a6ceffbe0bd049104df/lights
    66  [UPNP] discovery request from 192.168.13.124:43625
    67  [WEB] 192.168.13.124:52765 GET /api/83b7780291a6ceffbe0bd049104df/lights
    68  [GIN] 2016/11/24 - 23:54:26 | 404 |       1.701µs | 192.168.13.124 |   GET     /api/83b7780291a6ceffbe0bd049104df/lights
    69  [WEB] 192.168.13.124:52765 GET /api/83b7780291a6ceffbe0bd049104df/lights
    70  [GIN] 2016/11/24 - 23:54:36 | 404 |       1.584µs | 192.168.13.124 |   GET     /api/83b7780291a6ceffbe0bd049104df/lights
    71  
    72  
    73  
    74  
    75  OUTPUT FROM REAL HUE BRIDGE:
    76  
    77  {
    78  	"1": {
    79  		"state": {
    80  			"on": false,
    81  			"bri": 254,
    82  			"alert": "select",
    83  			"reachable": true
    84  		},
    85  		"type": "Dimmable light",
    86  		"name": "Kitchen Table Lamp 1",
    87  		"modelid": "LWB014",
    88  		"manufacturername": "Philips",
    89  		"uniqueid": "00:17:88:01:02:7e:b5:8e-0b",
    90  		"swversion": "1.15.0_r18729",
    91  		"swconfigid": "D1D2055F",
    92  		"productid": "Philips-LWB014-1-A19DLv3"
    93  	},
    94  	"2": {
    95  		"state": {
    96  			"on": false,
    97  			"bri": 254,
    98  			"alert": "select",
    99  			"reachable": true
   100  		},
   101  		"type": "Dimmable light",
   102  		"name": "Kitchen Table Lamp 2",
   103  		"modelid": "LWB014",
   104  		"manufacturername": "Philips",
   105  		"uniqueid": "00:17:88:01:02:7f:87:d5-0b",
   106  		"swversion": "1.15.0_r18729",
   107  		"swconfigid": "D1D2055F",
   108  		"productid": "Philips-LWB014-1-A19DLv3"
   109  	},
   110  	"3": {
   111  		"state": {
   112  			"on": false,
   113  			"bri": 254,
   114  			"alert": "select",
   115  			"reachable": true
   116  		},
   117  		"type": "Dimmable light",
   118  		"name": "Kitchen Island Lamp 2",
   119  		"modelid": "LWB006",
   120  		"manufacturername": "Philips",
   121  		"uniqueid": "00:17:88:01:10:5c:ab:0c-0b",
   122  		"swversion": "5.38.1.15095"
   123  	},
   124  	"4": {
   125  		"state": {
   126  			"on": false,
   127  			"bri": 254,
   128  			"alert": "select",
   129  			"reachable": true
   130  		},
   131  		"type": "Dimmable light",
   132  		"name": "Kitchen Island Lamp 3",
   133  		"modelid": "LWB006",
   134  		"manufacturername": "Philips",
   135  		"uniqueid": "00:17:88:01:10:2c:ce:11-0b",
   136  		"swversion": "5.38.1.15095"
   137  	},
   138  	"5": {
   139  		"state": {
   140  			"on": false,
   141  			"bri": 254,
   142  			"alert": "select",
   143  			"reachable": true
   144  		},
   145  		"type": "Dimmable light",
   146  		"name": "Kitchen Island Lamp 1",
   147  		"modelid": "LWB006",
   148  		"manufacturername": "Philips",
   149  		"uniqueid": "00:17:88:01:10:2c:f4:4d-0b",
   150  		"swversion": "5.38.1.15095"
   151  	},
   152  	"6": {
   153  		"state": {
   154  			"on": true,
   155  			"bri": 254,
   156  			"alert": "select",
   157  			"reachable": false
   158  		},
   159  		"type": "Dimmable light",
   160  		"name": "Master Bedroom Lamp 1",
   161  		"modelid": "LWB006",
   162  		"manufacturername": "Philips",
   163  		"uniqueid": "00:17:88:01:10:40:49:bd-0b",
   164  		"swversion": "5.38.1.15095"
   165  	}
   166  }