--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Andreas--
EXTRAS = { | ||
|
class DS2408(OneWire, GPIOExpander): |
def __init__(self, slave=None): |
OneWire.__init__(self, slave, 0x29, "2408", "DS2408") |
def __input__(self, chanel): |
raise NotImplementedError |
|
def __output__(self, chanel, value): |
raise NotImplementedError |
--
DS2438Z+ 2 Smart Battery Monitor DS2482S-100+ 2 Single-Channel 1-Wire Master DS2482S-800+ 2 Eight-Channel 1-Wire Master DS2408S+ 2 1-Wire 8-Channel Addressable Switch DS2438AZ+ 2 Smart Battery Monitor
I am a software guy and not much for electronics so hoping this will make putting the chips on the breadboard easy. The battery monitors are interesting as they basically give an A/D voltage and current monitor that can be used for anything as well as a temp sensor.
Will be a few weeks until I get the adapter from china but assuming it all fits and I can get it to play I will add drivers for webiopi.
Just checked the specs form TMP102 looks like its config and default settings are different (12 bits) but some compatibility is maintained with TMP075 and TMP275. As resulution cannot be set for TMP102 this will have to be specific to TMP075 and TMP275.
Andreas
--
Andreas--
Andreas--
andreas
--
Ok I have seen that. Just give me a short note when you have finished/stabilized reorganizing the devices packages so that it makes sense to finish TSL2561 and plug it into the final device classes/structure the right way and test the driver before submitting it.
andreas
--
def setTime(self, time):
self.time = time
self.__setTime__()
return self.__getTime__()
Andreas
Andreas
--
def __family__(self): |
return [Luminosity.__family__(self), Distance.__family__(self)]
Then the webapp will automatically display both information, just like the BMP085. |
Andreas--
FYI, received my TSL4531 breakout today and will be able to finish and test its driver inside tslxxxx within the next days so that it can make it into the next release (assuming this breakout functions better than the vcnl4000 one ...)
Andreas--
Andreas--
Andreas
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.5.4-py3.2-linux-armv6l.egg/webiopi/devices/digital/__init__.py", line 118, in readAllvalues[i] = {f: func, v: int(self.input(i))}TypeError: int() argument must be a string or a number, not 'NoneType'
--
--
Andreas--
http://code.google.com/p/pi4home/
I don't have so much time and probably also skill as you for coding, but when looking at some of the help searching posts in the Google group I think I can help a lot by providing more documentation or documented experience over time.
I just see it as an addition to what you provide. If things like the driver documentation are ok for you, you just can copy them into your wiki and we use my side as something like a working copy.
Andreas
Andreas
Its absolutely clear that the original GPIO native mapping has to be kept . With gpio I meant the devices pcf8574 and mcp23... which did Not exist before 0.6 and may use a device/pcf8574/gpio/3/input like mapping which does Not break any thing that existed before.
Andreas
Andreas--
--
bmp = BMP085(altitude=100, external:tmp)
should be
bmp = BMP085(altitude=100, external=tmp)
Andreas
zm3n79, you have to wire MCP CS to RPi CE0 (Pin #24), pin 25 is a ground.Give up a try then please report here.
def getPascalAtSea(self): |
pressure = self.__getPascal__() |
if self.external != None: |
k = self.external.getKelvin() |
return float(pressure) / (1.0 / (1.0 + 0.0065 / k * self.altitude)**5.255) |
return float(pressure) / (1.0 - self.altitude / 44330.0)**5.255 If for some reason k is 0 (maybe due to some sensors errors or default responses that deliver 0) we will get a division by zero error. So you could add some check against k != 0 to prevent this and fallback to the calculation without k. Good luck with your last steps to 0.6 and I'm really curious to see which impact 0.6 with its now really broad device driver suite and very easy installation comfort will have on the Raspi community. Andreas |