Linux/phant

From Omnia
Revision as of 17:15, 16 December 2017 by Kenneth (talk | contribs) (→‎Keep Phant Running)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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/