Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

healthkit-to-sqlite as a plugin #97

Open
simonw opened this issue Sep 11, 2021 · 4 comments
Open

healthkit-to-sqlite as a plugin #97

simonw opened this issue Sep 11, 2021 · 4 comments
Labels

Comments

@simonw
Copy link
Owner

simonw commented Sep 11, 2021

I'd love to start mixing the Dogsheep family of tools with Datasette Desktop to make them more accessible to a much wider audience.

I think https://datasette.io/tools/healthkit-to-sqlite is the perfect starting point because it has so little configuration - no need for API keys or anything like that, it just needs the path to a HealthKit export zip file on disk.

@simonw
Copy link
Owner Author

simonw commented Sep 11, 2021

Obviously this should be a plugin. Maybe I invent a plugin hook that is defined in datasette-app-support and specifies "I can accept a file, add me as a named menu item somewhere"?

@simonw
Copy link
Owner Author

simonw commented Sep 11, 2021

Then the plugin itself could fire up a subprocess that runs the existing tool (no need to even rewrite it) and attaches the resulting database to the interface.

It could even proxy through the progress bar from the CLI tool.

@simonw
Copy link
Owner Author

simonw commented Sep 11, 2021

Finally... the on boarding flow could offer this as an inviting illustrated icon as part of the default homepage - "Got an Apple Watch? Explore your health data in Datasette.. Get started" - which shows some documentation and offers a button to install the plugin.

@simonw simonw changed the title Figure out how to make healthkit-to-sqlite a feature healthkit-to-sqlite as a plugin Sep 15, 2021
@simonw
Copy link
Owner Author

simonw commented Sep 15, 2021

The easiest way to do this will be to Run the existing CLI tool in a subprocess, managed by a new Datasette plugin.

This could take advantage of a new plugin hook offered by datasette-app-support which provides access to a native file open shortcut of some kind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant