Giter VIP home page Giter VIP logo

golight's People

Contributors

erichhansen avatar wwsean08 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

wojo wwsean08

golight's Issues

Create Bootstrap

Create a bootstrap app to run through all the lights in sequence. This would aid in quick debugging on new machines/environments.

Error after long running use (HID open error)

Not sure what is causing this. The defer leds.Close() should be fine as it will close the device when the scope of the parent function ends. Hmm.

I recommend that sendCommand is run rapidly in a loop and monitor file/resource usage in Linux and see if we can get it to crash fast.

I double we are hitting a ulimit/file handle limit -- those seem very high and with the 10s polling that would take FOREVER to hit. The limit can be seen with ulimit -n, see files with lsof and the max files with cat /proc/sys/fs/file-max.

Support non-fatal errors in sendCommand

In order to support recovery of the Delcom light unplugged and plugged back in, it would be nice if sendCommand returned an err so the caller can retry.

Or... perhaps a way to test if the device exists? Could present race conditions on when the device is unplugged during a post-test sequence of commands, though.

Seems like returning an err is the best way so the caller can handle these situations?

Add instructions for non-root usage in Linux

Include a sample of /etc/udev/rules.d rules to allow r/w access to the Delcom HID device as non-root. Ideally include instructions to reload udev (seems weird, search SO) with rebooting as well.

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.