zzolo / luggage-tag

A simple project to record and visualize data in your (checked) luggage when traveling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Luggage tag

A simple project to record and visualize data in your (checked) luggage when traveling.

Hardware

This project is made with a Tessel (1), but could be done with lots of different hardware.

  1. Tessel parts
  2. MicroSD card
    • Most cards come with the FAT filesystem on it, but do make sure this is the case.
  3. 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.

Tessel code

The following command line commands are meant to be run from this directory.

  1. Plug in your Tessel to your computer via USB cable.
  2. Install NodeJS (or assumingly io.js should work as well)
  3. Install Tessel: npm install tessel -g
  4. (optional) Update your Tessel to make sure the firmware is current: npm update
  5. Install dependencies: npm install
  6. (optional) Run the code on the Tessel once: tessel run index.js
  7. Push code to the Tessel: tessel push index.js

Use

Put your luggage-tagsystem 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.

Utilities

  • 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

Data visualization

Process data

  1. Put the SD card into your computer and find the .csv file that you want to process.
  2. node process-flight.js xxxxxxxx.csv

About

A simple project to record and visualize data in your (checked) luggage when traveling.


Languages

Language:JavaScript 85.6%Language:HTML 9.5%Language:CSS 4.9%