-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi!
I got a GreenBean and bought an oven to drive with it, but I'm having some trouble getting started. When I run the start-cooking.js sample it asks me to "enable remote", which I don't know how to do on my oven (there's no button to that effect; maybe it's a combo, but I don't know what it is). I tried doing a few writes without subscribing to remote control enable, and those didn't turn the oven on either. I subscribed to the oven state, and I can then see that when I try to write the state, I get called back with a state change where everything is zeroed out (i.e.: the write failed).
What do I need to do to get cooking remotely?
Here's my current test, derived from start-cooking.js:
var gea = require("gea-sdk");
var adapter = require("gea-adapter-usb");
var app = gea.configure({
address: 0xcb
});
app.plugin(require("gea-plugin-range"));
app.bind(adapter, function (bus) {
bus.once("range", function (range) {
console.log("range version:", range.version.join("."));
range.ovenConfiguration.subscribe(function(value) {
console.log("oven configuration changed:", value);
});
range.upperOven.currentState.subscribe(function(value) {
console.log("upper oven current state changed:", value);
});
range.upperOven.cookMode.subscribe(function(value) {
console.log("upper oven cook mode changed:", value);
});
range.upperOven.cookMode.write({
mode: 18, // convection bake no option
cookTemperature: 350, // degrees in fahrenheit
cookHours: 1, // number of hours
cookMinutes: 0 // number of minutes
});
});
});
Here's the output it generates:
ralpht@darkstar:~/home/oven/node_modules/green-bean$ sudo node start-cooking.js
range version: 0.5.2.0
upper oven cook mode changed: { mode: 0,
cookTemperature: 0,
cookHours: 0,
cookMinutes: 0,
probeTemperature: 0,
delayHours: 0,
delayMinutes: 0,
twoTempTemperature: 0,
twoTempHours: 0,
twoTempMinutes: 0 }
upper oven cook mode changed: { mode: 0,
cookTemperature: 0,
cookHours: 0,
cookMinutes: 0,
probeTemperature: 0,
delayHours: 0,
delayMinutes: 0,
twoTempTemperature: 0,
twoTempHours: 0,
twoTempMinutes: 0 }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels