Hi,
I'm not sure if this is the right area for posting this. But I'm trying to roughly follow this mkr1000/app.js at master · ryanjgill/mkr1000 · GitHub tutorial. I have already developed my own web app using node and express. I'm trying to incorporate this plant monitoring on it's own page using johnny-five. But I cannot even get an led to even start blinking. I have followed all the simple getting started tutorials I could find, but I think the fact that I'm using c9 IDE has some part in causing the issues.
Here is a the portion of my code dealing with this:
var EtherPortClient = require("etherport-client").EtherPortClient;
var five = require('johnny-five');
let firmata = require('firmata')
var board = new five.Board({
port: new EtherPortClient({
host: process.env.IP, //Your IP goes here
port: process.env.PORT
}),
timeout: 1e5,
repl: false
});
board.on("ready", function() {
console.log("READY!");
var led = new five.Led(6);
led.blink(500);
});
The code above is from: DigitalOcean Community | DigitalOcean
If anyone has some insight on getting started, I'd really appreciate it!