Replies: 7 comments 4 replies
-
Hi, As per the example share here #75 the json files can be very nested i.e. target fields are buried many layers into the json. Should the file then be processed inside the python class? I wouldn't mind doing this in sqlite, but I am not sure if it supports json. In other database systems, I'd just cast the document as Json and create a view that explodes/flattens the nested structure. Apologies if this is a solved problem, I am just starting to get familiar with the code. |
Beta Was this translation helpful? Give feedback.
-
SQLite isn't a document DB so putting the whole JSON document into the DB isn't an option. I'm looking at adding two configurable systems:
Do you have a example FIT file and the developer fields you would like in a table? The JSON file you linked in the other thread is not accessible. I'd like a FIT file so I can runt he code against it and see it populate a table. |
Beta Was this translation helpful? Give feedback.
-
That makes sense and both options would work, albeit with different trade-offs. I have shared a dummy version of the json content in the other thread but I will also share fit files. |
Beta Was this translation helpful? Give feedback.
-
@mkffl First pass of plugin support with example plugin for HRV is checked in to the develop branch. Please check it out and give feedback. Copy hrv_plugin.py from GarminDB\Plugins to ~/HealthData/Plugins/. and run some of your files through. Look in the activities DB for new tables hrv_records and hrv_sessions. |
Beta Was this translation helpful? Give feedback.
-
Yes, it's another plug-in for sqlite using another custom app
that creates FIT files. I am assessing another HRV app that includes more
information.
The plug-in interface makes sense at first sight but I will probably have
to delve into other parts of the code to make it work. If the plug-in
interface is relatively stable I may write some documentation for any
future usage / other users. Otherwise I will hold off until you merge with
the master branch.
Thanks
…On Fri, Jan 8, 2021 at 2:11 AM Tom Goetz ***@***.***> wrote:
I just pushed the next version to develop. Some general cleanup of the
plugin code and the hrv plugin now creates a db view.
I have some more to do before I push it to the master branch and release
it.
What type of plugin do you want to write? For another App with dev fields
that creates activity FIT files? IF so, then your good to start with the
understanding that things may still change some. I haven't added the hooks
for other types of plugins yet. If this is a different kind of plugin, what
are you looking to do?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#95 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOSDR3VQDJDZQHOZ43CSW3SYZSV7ANCNFSM4VR6TBCA>
.
--
Michel Kiffel
+44 7918 936 319
|
Beta Was this translation helpful? Give feedback.
-
I have a couple more things to do:
|
Beta Was this translation helpful? Give feedback.
-
@mkffl It's ready for you to try out. Feedback welcome. Instructions here: https://github.com/tcgoetz/GarminDbPlugins/tree/develop |
Beta Was this translation helpful? Give feedback.
-
I'm looking into adding a custom DB class with a CustomTable class that can take its table layout from a JSON file and can be used to make tables from develop (actually any) fields.
Beta Was this translation helpful? Give feedback.
All reactions