It is currently July 7th, 2022, 4:29 am

JSMeter10

A package of skins with a "theme" or by a single author
User avatar
CodeWitch
Posts: 3
Joined: January 2nd, 2022, 1:22 am

Re: JSMeter10

Post by CodeWitch »

I love this suite. I have been able to get everything to work except the gmail skin. I have the proper user and password set up because when I click on the skin, it opens my account online. What I can't get to work is for it to show me how many unread emails I have. It just shows "searching" infinitely. Any assistance you can provide would be appreciated. Thank you.
User avatar
jsmorley
Developer
Posts: 22527
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: JSMeter10

Post by jsmorley »

CodeWitch wrote: January 2nd, 2022, 1:29 am I love this suite. I have been able to get everything to work except the gmail skin. I have the proper user and password set up because when I click on the skin, it opens my account online. What I can't get to work is for it to show me how many unread emails I have. It just shows "searching" infinitely. Any assistance you can provide would be appreciated. Thank you.
https://forum.rainmeter.net/viewtopic.php?t=39000
User avatar
CodeWitch
Posts: 3
Joined: January 2nd, 2022, 1:22 am

Re: JSMeter10

Post by CodeWitch »

I still can't seem to get it to work. This is the code I have. For the Gmail ID, I have used both with and without the gmail.com at the end, and neither works. I have also used an app password because of dual-step authentication.

Code: Select all

[MeasureMail]
Measure=WebParser
Flags=Resync | NoCookies
URL=https://#mj@gmail.com#:#************#@mail.google.com/gmail/feed/atom/
RegExp="(?siU)(.*)$"
UpdateRate=120
DecodeCharacterReference=1
DynamicVariables=1
FinishAction=[!UpdateMeasure MeasureScript]
Last edited by SilverAzide on January 2nd, 2022, 10:35 pm, edited 1 time in total.
Reason: Please use code tags when posting code; it's the </> button.
User avatar
SilverAzide
Rainmeter Sage
Posts: 1929
Joined: March 23rd, 2015, 5:26 pm

Re: JSMeter10

Post by SilverAzide »

CodeWitch wrote: January 2nd, 2022, 10:28 pm I still can't seem to get it to work. This is the code I have. For the Gmail ID, I have used both with and without the gmail.com at the end, and neither works. I have also used an app password because of dual-step authentication.
I think you might have misunderstood the instructions. You don't need the "#" signs unless you are using variables to hold your username/password; the sample code assumes you are. Since you are hard-coding the URL, you need to use a valid string (i.e., remove the hashes)

Code: Select all

URL=https://****:************@mail.google.com/gmail/feed/atom/
To use variables as described in the post, use this (but check the skin to see if they are already defined first):

Code: Select all

[Variables]
GMailID=<your email>
GMailPassword=<your app password>

...

[MeasureMail]
Measure=WebParser
Flags=Resync | NoCookies
URL=https://#GMailID#:#GMailPassword#@mail.google.com/gmail/feed/atom/
RegExp="(?siU)(.*)$"
UpdateRate=120
DecodeCharacterReference=1
DynamicVariables=1
FinishAction=[!UpdateMeasure MeasureScript]
Gadgets Wiki GitHub More Gadgets...
User avatar
CodeWitch
Posts: 3
Joined: January 2nd, 2022, 1:22 am

Re: JSMeter10

Post by CodeWitch »

SilverAzide wrote: January 2nd, 2022, 10:32 pm I think you might have misunderstood the instructions. You don't need the "#" signs unless you are using variables to hold your username/password; the sample code assumes you are. Since you are hard-coding the URL, you need to use a valid string (i.e., remove the hashes)

Code: Select all

URL=https://****:************@mail.google.com/gmail/feed/atom/
To use variables as described in the post, use this (but check the skin to see if they are already defined first):

Code: Select all

[Variables]
GMailID=<your email>
GMailPassword=<your app password>

...

[MeasureMail]
Measure=WebParser
Flags=Resync | NoCookies
URL=https://#GMailID#:#GMailPassword#@mail.google.com/gmail/feed/atom/
RegExp="(?siU)(.*)$"
UpdateRate=120
DecodeCharacterReference=1
DynamicVariables=1
FinishAction=[!UpdateMeasure MeasureScript]

:rofl: :rofl: :rofl: OMG. Thank you. Can you tell I'm new at this? I finally got it to work.