gilestrolab / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://lab.gilest.ro/ethoscope/
GNU General Public License v3.0
17 stars 25 forks source link

How to obtain Index file? #148

Closed zzaidi148 closed 3 years ago

zzaidi148 commented 3 years ago

Hello,

I am terribly sorry for my incessant questions; I am totally new to all of this. I was just wondering how I could access the index files so as to input and analyze data in RStudio. I tried activating the script (make_index.py), however, it was not able to find my file of interest and create the index file for it. I also do not find it in my node interface. Any help would be appreciated!

IMG_1681

ggilestro commented 3 years ago

the script make_index.py is found in the folder /opt/ethoscope-node/node_src/scripts

To run it, you will have to first navigate to that folder.

cd /opt/ethoscope-node/node_src/scripts
./make_index.py

A good way to make the index automatically is to copy the script to /etc/cron.hourly/ and then activate the cronie service with systemctl enable cronie; systemctl start cronie

This will run the script for you automatically once every hour.