diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..d821048
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..94c7289
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/pnook-device.iml b/.idea/pnook-device.iml
new file mode 100644
index 0000000..c956989
--- /dev/null
+++ b/.idea/pnook-device.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml
new file mode 100644
index 0000000..922003b
--- /dev/null
+++ b/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 79c70a0..95738db 100644
--- a/README.md
+++ b/README.md
@@ -1,42 +1,3 @@
-pi-steroid
-##########
+## pi-nook
-pi-steroid is a client for [Asteroid][asteroid] aka [pijs.io][pijs], a cloud framework for JavaScript development and deployment on the Raspberry Pi.
-
-## What does it do?
-
-pi-steroid runs on your Raspberry Pi and connects it to an [asteroid] server. Once your Raspberry Pi is connected, you can program it in javascript in the cloud. Your code is updated on the device in realtime.
-
-## How to install?
-
-The easiest way to install pi-steroid on a Raspberry Pi is to use the auto-installation script described in [pijs.io documentation][pijsdoc].
-
-You can also try pi-steroid on any computer that has nodejs and npm installed. Just install this package and run pijs-client:
-
- $ sudo npm install -g pi-steroid
- $ pi-steroid
-
-## How does it work?
-
-pi-steroid uses the [node-ddp-client][node-ddp-client] library to connect to an asteroid server. It subscribes to a feed from the server that describes this device and the code it is supposed to run.
-
-## Author
-
- * Thomas Sarlandie - @sarfata
-
-## License
-
-MIT License
-
-Copyright (c) 2013 TBideas
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-[asteroid]: http://github.com/tbideas/asteroid/
-[pijs]: http://www.pijs.io/
-[pijsdoc]: http://pijs.io/gettingstarted
-[node-ddp-client]: http://github.com/oortcloud/node-ddp-client
\ No newline at end of file
+A Raspberry Pi pos printer server. Epson POS Protocal on port 9000
\ No newline at end of file
diff --git a/package.json b/package.json
index cb1667f..4d5dac5 100644
--- a/package.json
+++ b/package.json
@@ -1,8 +1,8 @@
{
- "name": "pi-steroid",
- "description": "A Raspberry Pi client for Asteroid (aka pijs.io) written in nodejs",
- "author": "Thomas Sarlandie ",
- "version": "0.1.1",
+ "name": "pi-nook",
+ "description": "A Raspberry Pi pos printer server. Epson POS Protocal on port 9000",
+
+ "version": "0.1.2",
"dependencies": {
"ddp": "0.3.3",
"underscore": "1.4.x",
@@ -16,18 +16,11 @@
"mocha": "1.9.x",
"chai": "1.5.x"
},
- "repository": {
- "type": "git",
- "url": "https://github.com/tbideas/pi-steroid.git"
- },
- "bugs": {
- "url" : "https://github.com/tbideas/pi-steroid/issues"
- },
+
"engines": {
"node": "*"
},
"bin": {
- "pi-steroid": "./pi-steroid.js"
- },
- "licence": "MIT"
+ "pi-steroid": "./pi-nook.js"
+ }
}
diff --git a/pi-steroid.js b/pi-nook.js
similarity index 100%
rename from pi-steroid.js
rename to pi-nook.js
diff --git a/pijs-boot.sh b/pijs-boot.sh
index 28b3a12..0d26b2a 100755
--- a/pijs-boot.sh
+++ b/pijs-boot.sh
@@ -19,7 +19,7 @@ NAME=pijs
SCRIPTNAME=/etc/init.d/$NAME
DESC="Client for pijs.io cloud platform"
-DAEMON=/usr/local/bin/pi-steroid
+DAEMON=/usr/local/bin/pi-nook
DAEMON_ARGS=""
USER=pi
@@ -57,16 +57,7 @@ case "$1" in
status)
su - $USER -c "$FOREVER list $FOREVER_ARGS"
;;
- update)
- echo "pijs.io: Checking for and installing updates ..."
- npm -g update pi-steroid
- su - $USER -c "$FOREVER restart $FOREVER_ARGS $DAEMON"
- ;;
- updategit)
- echo "pijs.io: Installing latest development snapshot from Git repository"
- npm -g install git://github.com/tbideas/pi-steroid.git
- su - $USER -c "$FOREVER restart $FOREVER_ARGS $DAEMON"
- ;;
+
logs)
tail $LOGS/pijs.log
;;
diff --git a/release/README.md b/release/README.md
deleted file mode 100644
index 86ccdfa..0000000
--- a/release/README.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# How to release a new version of pijs
-
- * Prepare a new version on github
- ** Develop in a branch and when done merge the new version onto the master branch
- ** To test on a Raspberry Pi, run:
- $ sudo /etc/init.d/pijs updategit
- This will download and install the latest version from git. (If you tweak the script, you can also use that to test a specific branch or a fork).
- ** Make sure everything works ok
-
- * Release the new version on npm
- ** Run
- $ npm publish
- ** Tag in github:
- $ git tag -as && git push --tags
-
- * Prepare a new pre-compiled image for easy install
- ** Clean things up:
- $ rm -fr /usr/local/lib/node_modules/pi-steroid
- ** Install from npm:
- $ npm install -g pi-steroid
- ** Make a new image of the pi-steroid package:
- $ tar -zcf ~/pi-steroid-precompiled-.tar.gz usr/local/bin/pi-steroid usr/local/lib/node_modules/pi-steroid/
- or
- $ ssh rpi-lan tar -zcf - /usr/local/bin/pi-steroid /usr/local/lib/node_modules/pi-steroid/ > release/pi-steroid-precompiled-0.1.0.tar.gz
-
- ** Copy this new version onto your computer in the folder release/
- ** Run the release script to package this version and the dependencies (pijs, forever, etc) in one tar.gz:
- $ release/release.sh
-
- * Update the precompiled image on Amazon webservices
- ** Push the new version to amazon web services hosting:
- $ aws put pijs pijs-precompiled-.tar.gz
diff --git a/release/release.sh b/release/release.sh
deleted file mode 100755
index 55439c6..0000000
--- a/release/release.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-WORKDIR=`mktemp -d pijs-precompiled.XXXX`
-
-VERSION="$1"
-
-if [ -z "$VERSION" ]; then
- echo "$0: "
- exit -1
-fi
-
-PISTEROID="pi-steroid-precompiled-$VERSION.tar.gz"
-DEPS="node-precompiled-0.10.0.tar.gz forever-precompiled-0.10.0.tar.gz serialport-precompiled-1.1.0.tar.gz $PISTEROID"
-
-for i in $DEPS; do
- if [ ! -f $i ]; then
- echo "$i does not exist. Aborting."
- exit -1
- fi
-done
-
-cd $WORKDIR
-for i in $DEPS; do
- echo "Adding $i ..."
- tar -zxf ../$i
-done
-
-echo "Generating archive ..."
-tar -zcf ../pijs-precompiled-$VERSION.tar.gz *
-cd ..
-rm -fr $WORKDIR
-
-echo "Done: pijs-precompiled-$VERSION.tar.gz"
\ No newline at end of file