makecademy / home-automation-course

Code for the Building Home Automation Systems video course
11 stars 7 forks source link

module 1 code #1

Open brianwilson2 opened 6 years ago

brianwilson2 commented 6 years ago

Hi Marco

Just getting started with your home automation course.

Continuously having problems. Just teething problems hopefully.

latest is - I can't find the code for the sketches in module 1. Specifically I'd like to find the correct code for the sketch that uses aREST library, as I'm getting an error from the code I've typed in. Could just be I've entered an error while copying from the screen.

hope you can help.

Brian

marcoschwartz commented 6 years ago

Hi Brian, sorry to hear you are having issues with the code!

For the aREST sketch, did you install the library? There are examples in the library.

Also don't hesitate to contact our support at any time: contact@openhomeautomation.net

wrcoyle commented 5 years ago

this must be an on going problem, because I can not load npm arest --unsafe-perm errors!!! I need help, I did use contact@openhomeautomation.net but have not heard back from you.

pi@raspberrypi:~/MyClass/home-automation-course/module_3 $ sudo npm install arest --unsafe-perm (node:2176) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade npm ERR! tar.unpack untar error /root/.npm/jade/1.11.0/package.tgz npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/MyClass/home-automation-course/module_3/node_modules/arest/node_modules/util/node_modules/inherits' npm ERR! error rolling back arest@0.3.0 { Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/MyClass/home-automation-course/module_3/node_modules/arest/node_modules/util/node_modules/inherits' npm ERR! error rolling back errno: -39, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back syscall: 'rmdir', npm ERR! error rolling back path: '/home/pi/MyClass/home-automation-course/module_3/node_modules/arest/node_modules/util/node_modules/inherits' } npm ERR! Error: Method Not Allowed npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10) npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12 npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7) npm ERR! at FSReqWrap.oncomplete (fs.js:135:15) npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.19.42-v7+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "arest" "--unsafe-perm" npm ERR! cwd /home/pi/MyClass/home-automation-course/module_3 npm ERR! node -v v8.11.1 npm ERR! npm -v 1.4.21 npm ERR! code E405 npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/MyClass/home-automation-course/module_3/node_modules/arest/node_modules/util/node_modules/is-arguments' npm ERR! error rolling back util@0.12.0 { Error: ENOTEMPTY: directory not empty, rmdir '/home/pi/MyClass/home-automation-course/module_3/node_modules/arest/node_modules/util/node_modules/is-arguments' npm ERR! error rolling back errno: -39, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back syscall: 'rmdir', npm ERR! error rolling back path: '/home/pi/MyClass/home-automation-course/module_3/node_modules/arest/node_modules/util/node_modules/is-arguments' } npm ERR! tar.unpack untar error /root/.npm/is-generator-function/1.0.7/package.tgz npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/MyClass/home-automation-course/module_3/npm-debug.log npm ERR! not ok code 0