-
Couldn't load subscription status.
- Fork 105
examples
One useful way of exploring streamtools is via its examples. You can find them on github at https://github.com/nytlabs/streamtools/tree/master/examples. To use them you need to import them into streamtools. For this, you need to have an already running streamtools instance - see the install instructions in the README.
One way to import the examples goes as follows:
-
Open a terminal.
-
Download the example to the current directory. You can do this however you like. A quick
wgetwill suffice:wget https://raw.github.com/nytlabs/streamtools/master/examples/citibike.json -
Import the pattern. To do this you must use streamtools'
importendpoint. Assuming you are running streamtools on the default port, runcurl http://localhost:7070/import [email protected]All this does is POST the citibike JSON file to the streamtools import endpoint. Now, if you visit your streamtools interface you should see live citibike data!