Skip to content

Latest commit

 

History

History
284 lines (139 loc) · 35.2 KB

INSTALL.md

File metadata and controls

284 lines (139 loc) · 35.2 KB

Install MMM-GoogleDocs-Notes

This guide will walk you through the installation process of MMM-GoogleDocs-Notes.

We will

  1. Create a Google Cloud Project and configure OAuth to access your Google Drive

  2. Authorize MMM-GoogleDocs-Notes via cli

  3. Setup the Google Docs Page

  4. Check the result

Prerequisite:

  1. Downloaded the MMM-GoogleDocs-Notes module from GitHub to your Magic Mirror modules directory

  2. nodejs installed

  3. you can open a cli (cmd, bash, shell or whatever you are running)

  4. you have a google account

Creation Date: September 9, 2023


1. Click on NEW PROJECT

Step 1 screenshot

2. Click on Project name

Step 2 screenshot

3. Click on CREATE

Step 3 screenshot

4. Click on SELECT PROJECT

Step 4 screenshot

5. Click on APIs & Services

Step 5 screenshot

6. Click on ENABLE APIS AND SERVICES

Step 6 screenshot

7. Click on Google Drive API…

Step 7 screenshot

8. Click on ENABLE

Step 8 screenshot

9. Click on OAuth consent screen

Step 9 screenshot

10. Select External

Step 10 screenshot

11. Click on CREATE

Step 11 screenshot

12. Type e.g. "Magic Mirror Project"

Step 12 screenshot

13. Click on "[email protected]"

Step 13 screenshot

Step 14 screenshot

15. Click on SAVE AND CONTINUE

Step 15 screenshot

16. Click on SAVE AND CONTINUE

Step 16 screenshot

17. Click on ADD USERS

Step 17 screenshot

Step 18 screenshot

19. Click on ADD

Step 19 screenshot

20. Click on SAVE AND CONTINUE

Step 20 screenshot

21. Click on Credentials

Step 21 screenshot

22. Click on CREATE CREDENTIALS

Step 22 screenshot

23. Click on OAuth client ID…

Step 23 screenshot

24. Click on Application type

Step 24 screenshot

25. Click on TVs and Limited Input devices

Step 25 screenshot

26. Type e.g. "Magic Mirror"

Step 26 screenshot

27. Click on CREATE

Step 27 screenshot

28. Click on DOWNLOAD JSON

Step 28 screenshot

29. Save the file to the MMM-GoogleDocs-Notes directory

Step 29 screenshot

30. Rename the client_secret_.json to client_secret.json

Step 30 screenshot

31. Authorize via cli

In the MMM-GoogleDocs-Notes directory open a cmd/shell and execute

  1. node authorize.mjs

  2. or if you run MM on a raspberry pi sudo -u pi -- node authorize.mjs (Change pi to the user that runs the Magic Mirror application).

Follow the instructions to authorize the Google account for which you want to display notes on your mirror. It must be one of the "Test users" previously configured in the consent screen.

Step 31 screenshot

32. Enter the code

Step 32 screenshot

33. Click on Continue

Step 33 screenshot

34. Select "[email protected]"

Step 34 screenshot

35. Click on Continue

Step 35 screenshot

36. Click on Allow

Step 36 screenshot

37. Authorization Done

Step 37 screenshot

38. Continue in the cli

Check for succeeded authorization status

Step 38 screenshot

The module created a new file in your google docs that is used to display.

39. Click on MMM Google Docs Note…

Step 39 screenshot

40. Click on File

Step 40 screenshot

41. Click on Page setup

Step 41 screenshot

42. Click on Page colour picker

Step 42 screenshot

43. Click on black

Step 43 screenshot

44. Click on OK

Step 44 screenshot

45. Click on Text colour

Step 45 screenshot

46. Click on white

Step 46 screenshot

47. Enter some text

Step 47 screenshot

48. (Optional) Click on Insert

Step 48 screenshot

49. Click on Emoji

Step 49 screenshot

50. Click on 😀

Step 50 screenshot

51. Install the module to Magic Mirror

Insert the config to your the Magic Mirror config.js (see readme)

{
  module: 'MMM-GoogleDocs-Notes',
  header: "Notes",
  ...........
}

52. Start the Magic Mirror Server

Check the result

Step 52 screenshot



Created with Tango.us