IsacSvensson / Speedtest-Google-Sheets

A python script that logs internet connection to a google sheet
MIT License
0 stars 0 forks source link

Location/Definition of Project Folder in Instructions #1

Open esharksolutions opened 3 years ago

esharksolutions commented 3 years ago

I am a relative beginner about to embark on the use of your project.

The README.md states

"2. . . . Save credentials as "credentials.json" in project folder."

I have the OAuth Client ID saved in a .json file on my PC. My assumption is that I rename the file, then move it to the Pi (via WinSCP).

Question: If my assumption is correct, what will I identify as the "project folder"?

IsacSvensson commented 3 years ago

Hi! This project hasn't got the love it deserves, so it got some flaws. for example documentation ;).

in your project-directory you need these files. Skärmbild från 2020-11-17 15-49-22

and the oath client-id is in the credentials.json file.

And the json-file is using this format (where xx is your personal credentials): { "installed":{ "client_id":"xx", "project_id":"xx", "auth_uri":"https://accounts.google.com/o/oauth2/auth", "token_uri":"https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs", "client_secret":"xx", "redirect_uris":["urn:ietf:wg:oauth:2.0:oob", "http://localhost"] } }