poinck / lampe

control for your Philips Hue lights from Terminal or Gnome
Creative Commons Zero v1.0 Universal
91 stars 4 forks source link

bridge discovery uses wrong subnet #4

Closed nylki closed 9 years ago

nylki commented 9 years ago

see:

2: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    inet 192.168.1.106/24 brd 192.168.1.255 scope global dynamic wlp4s0
       valid_lft 6903sec preferred_lft 6903sec
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
poinck commented 9 years ago

Thx, actually the script currently only supports just one network card. I'll add support to detect only the networks that are "UP" and iterate the scan for every class-C network that could be found.