marcoschwartz / arduino-wifi-powerswitch Goto Github PK
View Code? Open in Web Editor NEWCode for the WiFi powerswitch project
Code for the WiFi powerswitch project
Hello,
I am following your wifi power switch tutorial and succeed until the very last part, the Interface. I installed the aRest module through the terminal. Once I installed node app.js and open my browser and saw on/off button with offline. Waited more than 10 minutes. I did not see the green"Device online" text. I checked my terminal and saw this " TypeError: arest.send is not a function"
Is that would be the problem? Please teach me how to resolve this issue ASAP
below is the copy of terminal:
matts-MacBook-Pro-2:interface dkim49$ node app.js
Listening on port 3700
express deprecated res.sendfile: Use res.sendFile instead app.js:16:7
TypeError: arest.send is not a function
at /Users/dkim49/Desktop/Arduino/arduino-wifi-powerswitch-master/interface/app.js:21:9
at Layer.handle as handle_request
at next (/Users/dkim49/Desktop/Arduino/arduino-wifi-powerswitch-master/interface/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/Users/dkim49/Desktop/Arduino/arduino-wifi-powerswitch-master/interface/node_modules/express/lib/router/route.js:112:3)
at Layer.handle as handle_request
at /Users/dkim49/Desktop/Arduino/arduino-wifi-powerswitch-master/interface/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/Users/dkim49/Desktop/Arduino/arduino-wifi-powerswitch-master/interface/node_modules/express/lib/router/index.js:330:12)
at next (/Users/dkim49/Desktop/Arduino/arduino-wifi-powerswitch-master/interface/node_modules/express/lib/router/index.js:271:10)
at SendStream.error (/Users/dkim49/Desktop/Arduino/arduino-wifi-powerswitch-master/interface/node_modules/express/node_modules/serve-static/index.js:120:7)
at emitOne (events.js:77:13)
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
Binary sketch size: 32,342 bytes (of a 32,256 byte maximum)
processing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
at processing.app.Sketch.size(Sketch.java:1653)
at processing.app.Sketch.build(Sketch.java:1586)
at processing.app.Sketch.build(Sketch.java:1562)
at processing.app.Editor$DefaultRunHandler.run(Editor.java:1899)
at java.lang.Thread.run(Thread.java:619)
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.