AdamMagaluk on spdy-upgrade
Add osx to travis (compare)
This link from Sep 2014 mentions Zetta integrating with Z-Wave devices, but I don't see any driver or documentation mentioning it anymore, was the support removed for some reason?
zetta()
.use(runtime => {
appsEmitter.on(‘ready’, app => {
app.call(null, runtime);
});
})
.listen(process.env.PORT || 1337);
seems there is a delta between code and docs: I tried to set 2 parameters (a, b) via map():
.map('thresh', this.setThresh, [
{'type':'Number','name':'thresh'}
,{'type':'text','name':'config'}
] )
seems my callback gets called as setThresh(threshValue, configValue, cb()) instead of setThresh(propertiesMap, cb())
also, is there a way to set an initial value? I’d like to specify something like
{'type':'Number','name':’thresh’, ‘value’: this.threshold }
?
setThresh(threshValue, configValue, cb)
. Can you point to the broken docs?
Ok, I replayed my search; I started looking at https://github.com/zettajs/zetta/wiki/Device at the config.map() docs, which explains how stuff works with one argument; the documentation is consistent here with the behaviour, but adding an example with 2 could clarify the situation
In order to find out what happens (because my callback failed ( with a ‘cb is not a function prototype’), I tripped over the config.remoteUpdate(handler) which does pass a properties object, so I assumed the callback could do the same thing..
as for value: It’s used as a default value right now: When I leave a field in the web browser empty, the function gets called with this value.