[#350] Merged google.fit backend and plugin #354

Merged
blacklight merged 6 commits from 350-migrate-google-fit into master 2024-01-19 00:31:07 +01:00

6 Commits

Author SHA1 Message Date
Fabio Manganiello 988e6fb92d Merge branch 'master' into 350-migrate-google-fit
continuous-integration/drone/push Build is passing Details
2024-01-19 00:29:45 +01:00
Fabio Manganiello 6009b94b87
Fixed minor docstring typo.
continuous-integration/drone/push Build is passing Details
2024-01-19 00:27:44 +01:00
Fabio Manganiello 8d89c50e55
[#350] Merge `google.fit` backend and plugin.
continuous-integration/drone/push Build is passing Details
Closes: #350.
2024-01-19 00:26:06 +01:00
Fabio Manganiello c827325e09
Fixed bullet points indentation in Google plugins docstrings. 2024-01-18 23:58:16 +01:00
Fabio Manganiello 6b89ede091
[Google] Updated authorization flow for Google plugins.
The new authorization flow also requires the user to input a code
returned on the browser's authorization page.

Since the Google authentication libraries seem to use a simple `input()`
to read this code, things are likely to fail quite badly if Platypush is
run in non-interactive mode - e.g. through a systemd service or in a
Docker container.

Thus we need to go with Google's automatic flow only if `DISPLAY` or
`BROWSER` are set (thus the interactive flow can proceed), and throw an
`AssertionError` with the command to execute if no display/browser are
detected.
2024-01-18 23:48:28 +01:00
Fabio Manganiello 0d7ac9da78
[Google] Updated documentation of Google plugins.
Expanded explanation of the desktop vs. headless authentication process
and where the credential files are supposed to be copied if the user
opts for a non-automatic authentication flow.
2024-01-18 23:46:30 +01:00