Set up the run environment/
This page is being updated
Lets start getting and storing data
you will need the following programs
On the terminal type the following:
-
- “cd ~” this will take you to your home directory /home/aranet
- “wget https://larry4u.com/data/getAranetData.py” data collection software”
- “wget https://larry4u.com/data/coPng.py” Ploting data software”
- “wget https://larry4u.com/data/clean_data_folder.py”
- “mkdir data_folder” folder for data collection”
Lets test to see if it works
You will need the devise MAC address
Here is how to find the MAC address: do the following commands: bluetoothctl paired-devices exit just do a copy of the address and past into the end of the aranetctl command.
Run the following python command. “python getAranetData.py usage (xx:xx:xx:xx:xx:xx )”
” if no errors we must have done somthing right.
now let us see if we have data. On the file listing page do a refresh and click on “data_folder” and see if the file exists. If yes good so fare. Now see if it has data by right cliking on it and select edit. If you have Microsoft excel you can just duble click on it to open it into excel. note that the tempiture is in Celsius.
If all is well let us contue:
We now need to just collect data so we can start ploting it. To do that we must run the program every minute or so. On the raspberry PI we have a function called “crontab” that will do that for us. cleck next at bottom of page to see how to collect data.
Next (crontab)