sparkfun / phant

the data logging engine behind data.sparkfun.com
700 stars 99 forks source link

How can I see streams stored on local Phant server to my web browser ? #83

Closed SilisRom closed 10 years ago

SilisRom commented 10 years ago

I managed to install Phant server on my UG802 android player (I have installed picuntu / ubuntu 12.10). I can create streams, input data and output the data into csv and json files.

I guess I had to type: http://192.168.1.10:8080/streams/MQxY9Oo09EF6aXOWNGG4TJ8M8rQ on my web browser to see the captured data such as your web site data.sparkfun.com. But that didn't work.

Can you tell me please how I can see the data streams on my web browser ?

toddtreece commented 10 years ago

@SilisRom you can only access the raw data if you installed phant using npm install -g phant. if you'd like to download the data, try this: http://192.168.1.10:8080/output/MQxY9Oo09EF6aXOWNGG4TJ8M8rQ.csv for CSV http://192.168.1.10:8080/output/MQxY9Oo09EF6aXOWNGG4TJ8M8rQ.json JSON

If you'd like the same interface as data.sparkfun.com, then you'll need to configure a new instance of phant with the HTTP manager using the new configuration tool located at https://data.sparkfun.com/config.

SilisRom commented 10 years ago

Thanks! Can you tell me please in which path should I extract the content of phantconfig-custom.tar.gz file ?

toddtreece commented 10 years ago

You can extract it wherever you would like to. Once you have it extracted, cd into the directory and run npm install and then npm start to start the server.

toddtreece commented 10 years ago

I'm going to close this one, please reopen if you are unable to get the custom server config running.