A simple project to record and visualize data in your (checked) luggage when traveling.
This project is made with a Tessel (1), but could be done with lots of different hardware.
- Tessel parts
- MicroSD card
- Most cards come with the FAT filesystem on it, but do make sure this is the case.
- Power
- Make sure to read the Tessel power docs. Tessel will handle a maximum input voltage via the USB port of 5 V. But it will handle a maximum input voltage through the VIN headers of 15 V (and -15V).
- I personally used this 8 battery pack. Need to research how much voltage will last how long.
- If using on a plane, note that you are not supposed to check lithium-ion batteries.
The following command line commands are meant to be run from this directory.
- Plug in your Tessel to your computer via USB cable.
- Install NodeJS (or assumingly io.js should work as well)
- Install Tessel:
npm install tessel -g
- (optional) Update your Tessel to make sure the firmware is current:
npm update
- Install dependencies:
npm install
- (optional) Run the code on the Tessel once:
tessel run index.js
- Push code to the Tessel:
tessel push index.js
Put your luggage-tag
system in your luggage. Turn it on and it will create a new timestamped file on the SD card and start collecting data. The system, green light will turn on when it is saving to the SD card.
- Output some of all the
luggage-tag-XXX
files from the SD card and output to the console.tessel run reader.js
- Enable the Wifi since the main script disables it and it is kind of sticky.
tessel run enable-wifi.js
- Put the SD card into your computer and find the
.csv
file that you want to process. node process-flight.js xxxxxxxx.csv