poinck / lampe

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

division by 0 on redshift set #45

Closed bserem closed 7 years ago

bserem commented 7 years ago

I am starting lampe and I get:

    redshift_options="-1 37.98:23.73 -t 6500:2700"

Which I have configured in ~/.lamperc like this:

bridgeip="192.168.2.2"                                                           
redshift_options="-1 37.98:23.73"                                                
redshift_options="${redshift_options} -t 6500:2700"

And when I press t I get:

 5 /usr/bin/lampe: line 230: 1000000 / kelvin : division by 0 (error token is "kelvin ")

(where 5 is the lamp id).

Something wrong with my config or something going on with lampe?

poinck commented 7 years ago

I will look in to it. One thing I noticed in your redshift_options: it should be -l instead -1 for location. lampe should be more robust in such a case.

bserem commented 7 years ago

Changing the typo to -l fixed the problem. Thanks!