Hi,
Does anyone know if its possible to export the health data like weight, body fat etc...in xml file? Or xls file?
I would like to export data as one batch...last 9 months..
Please let me know.
Thanks,
Paolo
-f healthHistory.xml
But I get the error:ValueError: No JSON object could be decoded
I also tried to run your script without any option, but I get this error: IOError: [Errno 2] No such file or directory: 'healthHistory.json'
What am I missing?
[...] python health_history_to_csv.py -f healthHistory
Traceback (most recent call last):
File "health_history_to_csv.py", line 50, in <module>
main()
File "health_history_to_csv.py", line 46, in main
writer.writeheader(sample_list)
AttributeError: DictWriter instance has no attribute 'writeheader'
My script was written to work with python 2.7.x, and you're using python 3.x. I've updated my script. You just have to download it again and it should work. I just verified with my data and a python 3.3.3 interpreter.
Travis