Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
The jeelux command
Synopsispackage require jeelux
jeelux subcommand ?arg ...?
The jeelux command lets you interact with TSL2561 based devices, like the jeelabs lux plug. The legal values of subcommand are listed below. Note that you can abbreviate the subcommands.
- jeelux luxplug bus ?number?
- Open a channel to a jeelabs lux plug and power up the device. There can be a maximum of two lux plugs on the same i2c bus. The number argument selects which of the two devices to access. The command returns the channel handle.
- jeelux close handle
- Close the channel to a jeelabs lux plug. Contrary to the regular Tcl close command, this will also power down the device.
- jeelux id handle
- Read the product ID of the device
- jeelux channel handle channel
- Read the individual light value of the specified channel. There are two channels available: Channel 0 for visable and IR light, and channel 1 for IR only. Comparing the two can give an indication of whether the light source is natural or artificial.
- jeelux lux handle
- Read the light level expressed in lux.