Git Product home page Git Product logo

Comments (6)

johnboyle87 avatar johnboyle87 commented on July 25, 2024

Same thing happens to me! Here's text from my log:

`C:\Users\John\Desktop\kelvin-windows-amd64-v0.0.8>kelvin.exe > log.txt
2017/03/29 20:02:05 Kelvin v0.0.8 starting up... 🚀
2017/03/29 20:02:05 Looking for updates...
2017/03/29 20:02:05 ⚙ Configuration config.json loaded
2017/03/29 20:02:05 ⌘ Initializing bridge from configuration
2017/03/29 20:02:05 ⌘ Connection to bridge established
2017/03/29 20:02:05 💡 Devices found on current bridge:
2017/03/29 20:02:05 | Name | ID | Reachable | On | Dimmable | Temperature | Color | Cur. Temp | Cur. Bri |
2017/03/29 20:02:05 | living couch lamp | 4 | true | true | true | true | true | 2314K | 79 |
2017/03/29 20:02:05 | living reading | 5 | true | true | true | true | true | 2314K | 79 |
2017/03/29 20:02:05 | kitchen white | 7 | true | true | true | false | false | - | 79 |
2017/03/29 20:02:05 | living room corner lamp | 9 | true | true | true | true | true | 2314K | 79 |
2017/03/29 20:02:05 | Living Overhead | 10 | true | true | true | true | true | 2314K | 79 |
2017/03/29 20:02:05 | kitchen color | 6 | true | true | true | true | true | 2314K | 79 |
2017/03/29 20:02:05 | Hanging Table | 8 | true | true | true | true | true | 2314K | 79 |
2017/03/29 20:02:05 | John Room | 11 | true | true | true | true | false | 2298K | 79 |
2017/03/29 20:02:05 | Bathroom | 12 | false | true | true | true | false | 2732K | 100 |
2017/03/29 20:02:05 🌍 Working with location: 40.8504, -73.9369 from configuration
2017/03/29 20:02:05 💡 Starting cyclic update for Living Overhead
2017/03/29 20:02:05 Configuring intervals for Wednesday March 29 2017
2017/03/29 20:02:05 Managing lights for interval 20:00 to 22:00
2017/03/29 20:02:05 💡 Starting cyclic update for kitchen color
2017/03/29 20:02:05 💡 Starting cyclic update for kitchen white
2017/03/29 20:02:05 💡 Starting cyclic update for Hanging Table
2017/03/29 20:02:05 💡 Starting cyclic update for living room corner lamp
2017/03/29 20:02:05 💡 Starting cyclic update for John Room
2017/03/29 20:02:05 💡 Starting cyclic update for living couch lamp
2017/03/29 20:02:05 💡 Starting cyclic update for living reading
2017/03/29 20:02:05 💡 Starting cyclic update for Bathroom
2017/03/29 20:02:07 💡 Light Living Overhead just appeared. Initializing state to 2295K at 80%
2017/03/29 20:02:07 💡 Light kitchen color just appeared. Initializing state to 2295K at 80%
2017/03/29 20:02:07 💡 Light kitchen white just appeared. Initializing state to 2295K at 80%
2017/03/29 20:02:07 💡 Light living room corner lamp just appeared. Initializing state to 2295K at 80%
2017/03/29 20:02:07 💡 Light Hanging Table just appeared. Initializing state to 2295K at 80%
2017/03/29 20:02:07 💡 Light John Room just appeared. Initializing state to 2295K at 80%
2017/03/29 20:02:07 💡 Light living reading just appeared. Initializing state to 2295K at 80%
2017/03/29 20:02:07 💡 Light living couch lamp just appeared. Initializing state to 2295K at 80%
panic: runtime error: index out of range

goroutine 44 [running]:
panic(0x692c80, 0x10f3e008)
/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/runtime/panic.go:500 +0x331
main.(*LightState).equals(0x11138264, 0x8fa, 0x7dd8e8, 0x0, 0x0, 0x4f, 0x8fa)
/home/travis/gopath/src/github.com/stefanwichmann/kelvin/lightstate.go:36 +0x233
main.(*Light).update(0x11138230, 0x0, 0x0)
/home/travis/gopath/src/github.com/stefanwichmann/kelvin/light.go:150 +0x470
main.(*Light).updateCyclic(0x11138230, 0x11060840)
/home/travis/gopath/src/github.com/stefanwichmann/kelvin/light.go:71 +0x237
created by main.main
/home/travis/gopath/src/github.com/stefanwichmann/kelvin/kelvin.go:86 +0xc65`

from kelvin.

stefanwichmann avatar stefanwichmann commented on July 25, 2024

Thanks for reporting these.

My guess is this happens with lamps only supporting color temperature but no real colors. In this case the lightstate isn't initialized properly.

A fix is on the way...

from kelvin.

johnboyle87 avatar johnboyle87 commented on July 25, 2024

I do have two color temp only bulbs so that could definitely be the problem. Let me know when fixed and I'll test for you. Looking forward to an update!

from kelvin.

stefanwichmann avatar stefanwichmann commented on July 25, 2024

Ok, after some trouble with travis I finally pushed a new build with a fix. Please feel free to try again.

from kelvin.

johnboyle87 avatar johnboyle87 commented on July 25, 2024

downloaded and currently running, no crash, will keep you updated. thanks for the quick fix, looking forward to using it!

from kelvin.

MichaelDepner avatar MichaelDepner commented on July 25, 2024

Works for me too, nice work!

from kelvin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.