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

Installation help #3

Open
jotapmc opened this issue Jan 31, 2022 · 3 comments
Open

Installation help #3

jotapmc opened this issue Jan 31, 2022 · 3 comments

Comments

@jotapmc
Copy link

jotapmc commented Jan 31, 2022

Hello could you help me to install? I don't know how to use programming.
In which part and part of the line do I need to put the user and the token?
Do I need to fill in all the note ids I want to appear?

image
image
image

Grateful for the attention.

@PrOF-kk
Copy link
Owner

PrOF-kk commented Jan 31, 2022

Hey, thanks for asking. Keep in mind this is still an in-development skin so installation is quite difficult, sorry

No module named 'gkeepapi'

You're installing the gkeepapi module in the Anaconda prompt, which prevents rainmeter-gkeep from using the library.
I'm not sure if Anaconda also installs "normal" Python, try opening a standard command prompt (cmd) and running pip install gkeepapi from there.

If it says it doesn't recognize the command, you'll need to install "normal" Python either from the Microsoft Store or from the Python website (3.9)

Step-by-step installation guide (hard)
  1. Download the repository as .zip (on the Github main page go to the green button Code > Download ZIP)
  2. Unzip it to your Rainmeter skins folder (by default This PC/Documents/Rainmeter/Skins)
  3. Your folder should look something like this Imgur
  4. Open the Keep/Resources/Settings.inc file
    1. Modify USER_EMAIL and put your email there
    2. Modify NOTE_ID and put your desired note id there (rainmeter-gkeep only supports one note for now)
    3. Modify APP_PASSWORD and put your password there. If you have 2-factor authentication enabled you'll need to create an App Password from Google instead which is annoying but I can't do anything about
    4. Don't forget to save the file!
  5. Now enable the skin from Rainmeter (Rainmeter > Keep.ini > Right-click > Load)
  6. If it's working correctly you should see an ugly black square with your note's text

Now, if you want to make it also look decent:

  1. Choose a note-taking skin (I use Paper::Notes from Haitime but most other skins should also work)
  2. Reopen the Settings.inc file from before
    1. Set HIDE_OUTPUT_VIEWER to 1
    2. Set OUTPUT_FILE to the file your note-taking skin uses. For Paper::Notes it's ../Paper/Notes/Note 1/my.notes

Hope this helps! Don't hesitate to ask again if you're having other issues, I realize it's very clunky at the moment, but it does work
Imgur Imgur

@jotapmc
Copy link
Author

jotapmc commented Feb 2, 2022

Hi, thanks for the help. I uninstalled Anaconda and reinstalled Python and it worked.
I tried using Paper::Notes from Haitime, but the text didn't show up. So I used the Elegant 2.0 skin. But I decided to try something different, your skin pleased me too. I tried to change something just in the copy and paste, but it doesn't update to the site when I edit the txt. I put the keep code below that I made the changes.


[Rainmeter]
Update=1000
AccurateText=1
ContextTitle="Configurações"
ContextAction=!Execute ["notepad" "#@#Settings.inc"]
ContextTitle2=---
ContextTitle3="Edite Keep"
ContextAction3=["#CurrentPath##CurrentFile#"]
DynamicWindowSize=1
MiddleMouseUpAction=!Refresh

Note=#CURRENTPATH#Google Keep.txt

[Metadata]
Name=Keep Notes
Author=PrOF
Information=
Version=0.0.1_xoan
License=MIT

[Variables]
@include=#@#Settings.inc

[KeepGet]
Measure=Plugin
Plugin=RunCommand
Program=python
Parameter=./Keep.py get
UpdateDivider=#UPDATE_DIVIDER#
OutputFile=#OUTPUT_FILE#
OutputType=ANSI
OnUpdateAction=!CommandMeasure KeepGet Run
FinishAction=[!SetOption OutputViewer Text [&KeepGet]][!UpdateMeasure OutputViewer]

[KeepUpload]
Measure=Plugin
Plugin=RunCommand
Program=python
Parameter=./Keep.py upload
UpdateDivider=-1

[OutputViewer]
Meter=String
Text=Carregando notas do Google Keep...
Hidden=#HIDE_OUTPUT_VIEWER#
Disabled=#HIDE_OUTPUT_VIEWER#
BackgroundMode=2
W=320
ClipString=2
AntiAlias=1
SolidColor=0,0,0,25
FontColor=255,255,255
Padding=13,13,13,13
LeftMouseUpAction=["#CURRENTPATH#Google Keep.txt"]
UpdateDivider=1

[SyncButton]
Meter=Button
x=345
ButtonImage=#@#sync.png
ButtonCommand=!CommandMeasure KeepGet Run

[UploadButton]
Meter=Button
x=375
ButtonImage=#@#upload.png
ButtonCommand=!CommandMeasure KeepUpload Run


Thanks for the help

@PrOF-kk
Copy link
Owner

PrOF-kk commented Feb 2, 2022

I'm not sure what you're trying to do, does it work properly now with this Elegant skin? To update the note to the cloud you need to press the "upload" button
Imgur

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

No branches or pull requests

2 participants