Comments (8)
I would like a more explaining example with a specific device class for
instance.
Original comment by [email protected]
on 25 Feb 2013 at 1:41
- Added labels: Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from webiopi.
I checked VCNL, and I understand the problem...
First, are all arguments supposed to be tweak ?
Then, instead of using wildcard, we could use key/value pair :
light0 = VCNL4000 current=40
or
light0 = VCNL4000(current=40)
but I have to check how my config parser will handle multiple '=' in a line
Original comment by [email protected]
on 25 Feb 2013 at 1:58
from webiopi.
Some more examples:
TMPx75:
mytmp = TMP75 * 10
Set the resolution to 10 bit but keeping the default slave address
If we (may) add setting the upper and lower alert/thermostat registers of them
as parameter 3 and 4:
mytmpwithalerts = TMP75 * * 10 40
Set the temps to 10 deg low and 40 deg high but keep the default slave address
and default resulution
TSL2561 with high gain:
mytslhighgain = TSL2561T * * 16
Original comment by [email protected]
on 25 Feb 2013 at 2:04
from webiopi.
or
light0 = VCNL4000 current:40 as the ":" may be free to simplify parsing
Original comment by [email protected]
on 25 Feb 2013 at 2:09
from webiopi.
[deleted comment]
from webiopi.
Well I tried the two options :
1) passing None to a function override defaults. So defaults values has to be
handled manually in the code instead of __init__ declaration with wildcard
support.
2) key/value pair args cannot be mixed with simple value args in config file.
We always need to precise arg names.
giving this, I think opt. 2 is clearer and more consistent, so I committed in
r976. I let you try with TMPx75 or VCNL before closing the issue.
Original comment by [email protected]
on 25 Feb 2013 at 7:26
from webiopi.
I was able to test the new config option with tsl and vcnl and can confirm it
working perfect ok. Thanks for updating. I was also able to test
devices-monitor with all my sensors attached. See attached screenshots. This
also confirms the distance part of the vcnl driver mapping correct for
devices-monitor.
During my test I moved the vcnl adapter to another place on my breadboard and
.... what a wonder .... it started working. Assume the breakout has a bad smd
soldered chip that re-got the connection by moving. Not very solid as I moved
the beakout also sometimes before and this did not help, but as long as it
works now .... Anyway, that allowed me to final test also the distance part of
the vcnl driver and tweak the distance lookup table a bit so that I can confirm
now also the distance part of the vcnl driver to be final for now and tested.
As calibration seems to be necessary from time to time I added a return value
to the calibrate method that gives the current calibration offset. This way
from a macro someone can do local or remote calibration from time to time and
see the result. Don't think this should be done via REST so I did not add a
REST mapping for now. The final vcnl is also attached.
Original comment by [email protected]
on 26 Feb 2013 at 8:14
Attachments:
from webiopi.
Nice !
Thanks for feedback, and happy your VCNL is finally working.
I close the issue, and I'll update the VCNL driver later today.
Original comment by [email protected]
on 26 Feb 2013 at 1:49
- Changed state: Fixed
from webiopi.
Related Issues (20)
- Adafruit MCP9808 Temperature Sensor HOT 2
- PiFaceDigital driver has missing close() method
- Dont work on Raspberry 2 HOT 6
- Unable to grab Webiopi or to communicate the problem. HOT 1
- WebIOPi not working on Raspberry Pi 2 HOT 2
- NameError: global name 'GPIO' is not defined HOT 18
- Customzed HTML file is not loading HOT 1
- DAC MCP4921 HOT 1
- error 403
- Google Analytics enabled, not to be disabled (easily), not shown in documentation
- ~
- WebiOpi Tutorial_Basis don´t work for me
- rpi.gpio not working after installing webiopi HOT 2
- Saving matplotlib figure
- Webiopi is not working on Raspberry 2 HOT 1
- POST set function to PWM not working HOT 1
- Cannot install Webiopi on RPi 2
- Apache
- I cannot see all of the 40 raspberry pi pins on the Webiopi
- gpio boxes greyedout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webiopi.