From df3bcbf0ad1dad69c2a616da4fc092aa64d72430 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Mon, 16 Oct 2023 19:47:37 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- README-google.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README-google.md diff --git a/README-google.md b/README-google.md new file mode 100644 index 00000000..127e3591 --- /dev/null +++ b/README-google.md @@ -0,0 +1,32 @@ +Before you enable the gdrivesync plugin follow these guidelines. + +# Authentication +Drive API requires OAuth2.0 for authentication. PyDrive2 makes your life much easier by handling complex authentication steps for you. + +Go to APIs Console and make your own project. + +Search for ‘Google Drive API’, select the entry, and click ‘Enable’. + +Select ‘Credentials’ from the left menu, click ‘Create Credentials’, select ‘OAuth client ID’. + +Now, the product name and consent screen need to be set -> click ‘Configure consent screen’ and follow the instructions. Once finished: + +Select ‘Application type’ to be Web application. + +Enter an appropriate name. + +Input http://localhost:8080/ for ‘Authorized redirect URIs’. + +Click ‘Create’. + +Click ‘Download JSON’ and copy the contents to /root/client_secrets.json. + +Then copy your client_id and client_secret to /root/settings.yaml + +# Login to google + +When you have done this please run the following command in your ssh shell: + +`sudo pwnagotchi google login` + +And follow the steps, after which you can enable the plugin and let the magic begin. \ No newline at end of file