Linux/phant

From Omnia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

phant.io

http://phant.io/

Github

https://github.com/sparkfun/phant

Install

Install node:

$ sudo apt-get install nodejs npm nodejs-legacy

Install from node.js:

$ npm install -g phant

Start the server:

$ phant

Connect to the telnet manager:

$ telnet localhost 8081

Uninstall

npm remove -g phant
sudo apt-get remove nodejs

Server

PHANT_PORT=9005 PHANT_TELNET_PORT=9006 phant
PHANT_PORT=9090 PHANT_TELNET_PORT=9091 phant

Keep Phant Running

ONCE YOU HAVE PHANT DATA you can now run it forever:

sudo npm install -g forever
# npm install -g phant forever
forever start /usr/local/bin/phant
PHANT_PORT=9090 PHANT_TELNET_PORT=9091 forever start /usr/local/bin/phant
PHANT_PORT=9090 PHANT_TELNET_PORT=9091 forever \
 --minUptime 1000ms --spinSleepTime 1000ms --workingDir /home/phant \
 start /usr/local/bin/phant

Google Chart Graphing

Graphing Live Data With Google Charts - http://phant.io/graphing/google/2014/07/07/graphing-data/

Boiler example (with page 1, 24 hour, all data) - http://bobodyne.com/boiler

Tutorial

Installing Phant on a BeagleBone Black - http://phant.io/beaglebone/install/2014/07/03/beaglebone-black-install/