Skip to content

Commit

Permalink
Basic clean up #567
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianj98 committed Mar 18, 2015
1 parent 838b9c2 commit e3c59a4
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 131 deletions.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/pnook-device.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 2 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
A Raspberry Pi pos printer server. Epson POS Protocal on port 9000
21 changes: 7 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "pi-steroid",
"description": "A Raspberry Pi client for Asteroid (aka pijs.io) written in nodejs",
"author": "Thomas Sarlandie <[email protected]>",
"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",
Expand All @@ -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"
}
}
File renamed without changes.
13 changes: 2 additions & 11 deletions pijs-boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
;;
Expand Down
32 changes: 0 additions & 32 deletions release/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions release/release.sh

This file was deleted.

0 comments on commit e3c59a4

Please sign in to comment.