This is a step by step manual for getting started with shiftr.io (desktop application), shiftr.io pocket and Processing. The goal is to collect data via shiftr.io Pocket and to store this in an .csv file.
Step 1 – Set up shiftr.io
Create an acount on shiftr.io, and follow the instructions on the getting started page to create a new namespace and a new token.
...
Step 2 – Set up Processing
Also you need to make sure that you're running the latest version of Processing. If you have an old version or haven’t Processing installed at all, get it from their website.
Afterwards, download the processing-mqtt library from the GitHub repository. When the download has finished, move the library to your sketch folders libraries
directory. More information about installing a library can be found here.
...
Run the example and check the console for the following line: [MQTT] connected to: broker.shiftr.io
. If you see the connected client and the messages flowing in the real-time graph, you are ready to go!
Step 3 – Shiftr.io Desktop
Please choose your device by clicking on the Shiftr.io icon in your menu bar. In this example it's pocket (p11). Make sure your Bluetooth is switched on.
...
Parameters:
Here you can choose which sensors should be activated. Remember that having multiple sensors active can make your battery unload faster.
Step XX – Store data (draft)
Once you've managed to have the sensor sending data, you can use the following Processing script to store the received data in an .csv file.
...