roccomuso / iot-433mhz

:globe_with_meridians: IoT System to control 433 MHz RC power sockets, PIR, Door Sensors and much more.
Other
332 stars 47 forks source link

Error message when running "npm install" on Raspberry Pi 2B (Jessie) #12

Open intel66 opened 8 years ago

intel66 commented 8 years ago

Error message when running "npm install" in the "server" directory: npm WARN package.json iot-433mhz@1.0.0 No README data

roccomuso commented 8 years ago

Yours is not an Error, just a Warning (http://stackoverflow.com/questions/18057466/npm-how-to-fix-no-readme-data) because of a missing README file. You can ignore it, just make sure that the ./node_modules dir was created without npm error log file.

NB. The package was not yet published on npm. I did it today. But watch out: we're still in Alpha. There's something that gotta be fixed and implemented yet, as you can see here: https://github.com/roccomuso/iot-433mhz/issues/3

Switch works great. In the next days I'll commit for the Alarm sensors too.

roccomuso commented 8 years ago

I've just refactor the entire directory. No more need to cd server. Anyway you better install with npm.

npm install iot-433mhz -g --unsafe-perm
intel66 commented 8 years ago

Hi, thanks for reply. I deleted iot-433mhz-folder and tried "npm install iot-433mhz" but got permission issues. Tried "sudo npm install iot-433mhz --unsafe-perm" Got endless lines of: \

serialport@2.0.6 install /home/pi/node_modules/iot-433mhz/node_modules/serialport node-pre-gyp install --fallback-to-build

make: Entering directory '/home/pi/node_modules/iot-433mhz/node_modules/serialport/build' make: Warning: File '../binding.gyp' has modification time 2693962 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693948 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693946 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693945 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693943 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693942 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693940 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693939 s in the future ACTION Regenerating Makefile make: Warning: File '../binding.gyp' has modification time 2693937 s in the future .......and so on.....

roccomuso commented 8 years ago

Ok, let's try to debug together executing this commands.

Which node.js version do you have? node -v Are you logged in as root or pi user? whoami Moreover your system time is correct? date

NB. I just did another upgrade 1.0.11 and updated the documentation. Now you gotta install it with the -g flag.

sudo npm install iot-433mhz -g --unsafe-perm

and then to execute:

iot-433mhz
intel66 commented 8 years ago

Thank you for answer. Had an old version of node, upgraded to 5.4.1, user: root, date was wrong too, now corrected. My bad.. Install went great, rebooted, but I am unable to connect via browser (192.168.2.251:8080) when executing iot-433mhz, I must enter a port number, what port should I enter?

root@raspberrypi:~/iot-433mhz# iot-433mhz


| || | | || ||__ / /| \/ | | __ | |/ | |____| || | | \ | | |\/| | ' | / | | () | || |) |) | | | | | | |/ / |_**/|| |_||**/__/|| ||| |/___|

Debug Mode: true Running on RPi platform Using external Arduino: true Choose a port: (1) /dev/ttyAMA0 prompt: port:

roccomuso commented 8 years ago

@intel66 You must use an arduino with a 433mhz radio receiver/transmitter, connected through USB to your RPi. As shown in this scheme: https://github.com/roccomuso/iot-433mhz#a-computer-with-arduino-connected-and-a-433-mhz-transmitter-and-receiver

roccomuso commented 8 years ago

The project is updated to a quite stable version (1.0.22).

sudo npm install iot-433mhz -g --unsafe-perm

remains the best way to install it on RPi.