diff --git a/README.md b/README.md index d150f87..b385a10 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,18 @@ # raspberry-pi-camera -nodejs camera application to connect to server via socket.io +nodejs camera application to upload images to server Server software https://github.com/pcnate/raspberry-pi-camera-server -# basic setup on raspberry pi +# Standalone Install - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - - sudo apt-get install -y nodejs build-essential - - git clone https://github.com/pcnate/raspberry-pi-camera.git +1) setup a server +2) `npm install -g @pcnate/raspberry-pi-camera` +3) enter url to upload to +4) leave GUID blank +5) leave image path alone, (stores in RAM to save SD card) - npm update - npm install - - node configure.js +# Automatic startup with pm2 - -# Installing nodejs - -``` --#! /bin/bash -- --# source: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions -- --curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - --sudo apt-get install -y nodejs build-essential -- -- --node -v --npm -v -- --npm cache clean -f --npm install -g n --sudo n stable -- --echo 'now exit and reconnect and run node -v && npm -v' -``` \ No newline at end of file +1) `npm install -g pm2` +2) `pm2 startup` +3) `pm2 install @pcnate/raspberry-pi-camera` diff --git a/package-lock.json b/package-lock.json index bbc6560..630b07f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "raspberry-pi-camera", - "version": "0.0.5", + "version": "0.0.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cba5b24..d97fe44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pcnate/raspberry-pi-camera", - "version": "0.0.5", + "version": "0.0.6", "description": "nodejs camera application to connect to server via socket.io", "scripts": { "dev": "cross-env NODE_ENV=development nodemon emulate.js",