ni-c / node-rasp2c-example Goto Github PK
View Code? Open in Web Editor NEWExample node.js app to control the I2C-Bus of a Raspberry PI.
License: Other
Example node.js app to control the I2C-Bus of a Raspberry PI.
License: Other
Thank you for writing this lib. I installed the example app in order to see it everything is working. After npm install for node_modules, I had to explicity run npm install rasp2c, as the directory was empty.
Then when starting as node app.js, I get an exception when express is checking if all callbacks are a function, in index.js. This is happening due to var routes not getting an object returned when trying to include the /routes dir.
Here is what I am getting:
pi@coder ~/build/rasp2c/node-rasp2c-example-master $ node app
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0/home/pi/build/rasp2c/node-rasp2c-example-master/node_modules/express/lib/router/index.js:290
throw new Error(msg);
^
Error: .get() requires callback functions but got a [object Undefined]
at /home/pi/build/rasp2c/node-rasp2c-example-master/node_modules/express/lib/router/index.js:290:11
at Array.forEach (native)
at Router.route (/home/pi/build/rasp2c/node-rasp2c-example-master/node_modules/express/lib/router/index.js:286:13)
at Router.(anonymous function) as get
at Function.app.(anonymous function) as get
at /home/pi/build/rasp2c/node-rasp2c-example-master/app.js:44:6
at Object.context.execCb (/home/pi/build/rasp2c/node-rasp2c-example-master/node_modules/requirejs/bin/r.js:1876:33)
at Object.Module.check (/home/pi/build/rasp2c/node-rasp2c-example-master/node_modules/requirejs/bin/r.js:1110:51)
at Object.Module.enable (/home/pi/build/rasp2c/node-rasp2c-example-master/node_modules/requirejs/bin/r.js:1381:22)
at Object.Module.init (/home/pi/build/rasp2c/node-rasp2c-example-master/node_modules/requirejs/bin/r.js:1018:26)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.