amatelin / iot.me Goto Github PK
View Code? Open in Web Editor NEWMake your own data platform for the Internet of Things using Node.js and Express.js
Home Page: http://digitaljunky.io/
Make your own data platform for the Internet of Things using Node.js and Express.js
Home Page: http://digitaljunky.io/
Can you provide a mirror to access the tutorial for this repo? Or a github.io page may be?
mongod -version
db version v3.0.14
node -v
v7.2.1
The error is both traced and untraced and appears after you try to save or edit dataset fields
TypeError: req.body.hasOwnProperty is not a function
at /home/dan/Documents/IoT.me-master/routes/datasets.js:143:22
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at next (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/route.js:131:13)
at authenticate (/home/dan/Documents/IoT.me-master/utils.js:4:9)
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at next (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at /home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:330:12)
at next (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:271:10)
at Function.handle (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:176:3)
at router (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:46:12)
at Layer.handle [as handle_request] (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:312:13)
at /home/dan/Documents/IoT.me-master/node_modules/express/lib/router/index.js:280:7
Your work is great and i'd like it.
I have a suggestion for developing a new platform based on mqtt+expressjs+mongodb and passportjs.
Would you like to contribute in this IoT platform?
Hi,
Anyone can help me,I have been struggling to add new data set through API request in postman "http://localhost:3002/datasets/update?key=4c0f98819761fd6b31e7b128de53f64d&var1=11".
I could not get the idea how to add new data set from API or how device will write new data in the data set for visulaiztion . @amatelin Please Help
Hey,
Congrats on a great article. It has quite an exhaustive coverage of technologies. Jade isnt my favorite and maybe the error I got was due to a typo or some such. But I am not able to move forward. After following up with your code and typing it up (mostly), and removing basic errors, I am getting the following stack trace in the browser,
TypeError: Cannot read property 'error' of undefined
at router.get.errorMessage (G:\angular\iot.me\IoT.me\routes\index.js:88:32)
at Layer.handle [as handle_request] (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\layer.js:95:5)
at next (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\route.js:131:13)
at Route.dispatch (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\layer.js:95:5)
at G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:277:22
at Function.process_params (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:330:12)
at next (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:271:10)
at Function.handle (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:176:3)
at router (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:46:12)
at Layer.handle [as handle_request] (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:312:13)
at G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:280:7
at Function.process_params (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:330:12)
at next (G:\angular\iot.me\IoT.me\node_modules\express\lib\router\index.js:271:10)
at SendStream.error (G:\angular\iot.me\IoT.me\node_modules\express\node_modules\serve-static\index.js:120:7)
I also started the app in debug mode using
set DEBUG=express:* & nodemon bin/www
I get following lines with pink color in my command prompt
express:view lookup "error.jade" +6ms
express:view stat "G:\angular\iot.me\IoT.me\views\error.jade" +1ms
express:view render "G:\angular\iot.me\IoT.me\views\error.jade" +1ms
GET / 500 124.358 ms - 2293
Typically, I would fire up my webstorm at this point, but am trying to explore other options at debugging this. I must also mention that I am suing Windows 7 in place of Ubuntu as you do, and I have a mongod instance running.
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.