Convert GENEActiv file to json for use in https://github.com/NLeSC/eEcology-Annotation-UI
R libraries:
- GENEAread
- littler
- docopt
pip install -r requirements.txt
./geneactiv2csv.r --start <start> --end <end> --file <file> | ./csv2json.py --bin 60 > data.jsonExample run:
./geneactiv2csv.r --start "2012-09-16 9:59:00" --end "2012-09-16 11:59:00" --file 804394_left\ wrist_013378_2012-10-01\ 13-19-51.bin | ./csv2json.py > 804394_2012-09-16T09:59:00_2012-09-16T11:59:00.jsonThis will
- group all accelerations per second
- put light value in altitude chart
- because input file is missing GPS, it generates GPS points around equator for each timepoint
Requires:
- tool zip file
- json data file with acceleration, gps, sensor data points
- Unpack tool zip file
- Run web server in root directory (directory with demo-liss.html file), for example using
# For Python2
python -m SimpleHTTPServer 8000
# For Python3
python3 -m http.server 8000- Open demo-liss.html in web browser by opening http://localhost:8000/demo-liss.html
- Configure classes by uploading new classifier labels
- Load annotations
You must have run the scripts as described in the Usage chapter to generate a new json data file.
You must edit the demo-liss.html file.
- Copy json data file to root directory (directory with demo-liss.html file)
- Set the second argument of the setupUrls method to the json data file
- Set the tracker id
- Set the from and to date in ISO8601 format
You must edit the liss-ids.json file, by setting the tracker id.