Hi Felix, and my fellow LowPowerLabbers!
So update to the previous post. I was having trouble connecting to my Razzy Pi through another computer on my network to get to the SSL warning page.
- I was able to ping the address of my Razzy pi
- Made sure the nginx service was running
- I was stuck on the "sudo service nginx restart" portion and was coming back with this error:
"Restarting nginx: nginx: [emerg] "worker_processes" directive is duplicate in /etc/nginx/nginx.conf:30"
However, I dug into the forums and found your Github repo with a working nginx.conf file and copied over its contents and was successful in moving on.
I'm currently on the "Raspberry Pi home automation gateway - Hardware and Demo page (page4)
and am super excited, but have run into a small snag with the gateway.js file.
If I use the gateway.js material on the webpage itself, it will throw an error with the following:pi@raspberrypi ~/moteino $ node gateway.js &
[2] 3088
pi@raspberrypi ~/moteino $
/home/pi/moteino/gateway.js:8
io.configure(function () {
^
TypeError: Object #<Server> has no method 'configure'
at Object.<anonymous> (/home/pi/moteino/gateway.js:8:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
If I use the gateway.js output from the Github repo I get the following error:pi@raspberrypi ~/moteino $ node gateway.js &
[2] 3091
pi@raspberrypi ~/moteino $
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at Server.listen.Server.attach (/home/pi/moteino/node_modules/socket.io/lib/index.js:214:9)
at new Server (/home/pi/moteino/node_modules/socket.io/lib/index.js:51:17)
at Function.Server (/home/pi/moteino/node_modules/socket.io/lib/index.js:39:41)
at Object.<anonymous> (/home/pi/moteino/gateway.js:1:93)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
I'm not sure how to proceed from this point and I don't want to do it as tired as I am (heck I didn't think I would get this far so I'm keeping positive
).
If you guys have some insight on how to correct this I would be very much obliged / thankful to hear from the more knowledgeable folks here Cheers,
Noble7ven