.. warning:: 
	For developers only

**Highly experimental code. For developers only**

The script **mygh_import_readings.py** imports into the database a 
the different recordings it finds in the CSV file passed as
an argument.

The file "sample_reading.csv" serves as a template to enter the values.
It is important to respect the format of each field.

We are at the Point of Concept stage, where the recordings currently 
implemented are:

* Weight
* Blood pressure
* Heart rate

In the coming days we'll integrate the rest of the parameters.

The use the *height* field to calculate the Body Mass Index (BMI). Instead 
of picking it up from the current profile value, we use the column due to
possible changes of height during a particular timespan (eg, teenagers).

Running the script:
* **Make a backup** of your $HOME/mygh directory before running the import
  script.
* Go to the directory "scripts"
* Make a copy of the template "sample_reading.csv" to your import file, adapt
  it and enter the data.
* execute python3 ./mygh_import_readings.py the_name_of_your_datafile.csv

Known caveats:
* Please test the import right after initializing MyGNUHealth, without data
* There might be an issue with how matplotlib is loading / plotting the
  dataset, and it might just be taking it sequentially from the DB without
  sorting it chronologically.

GNU Health hackers, please report on this channel health-dev@gnu.org and
our #gnu-health room in Matrix.
 

