Page 4 of 4

Re: JSMeter10

Posted: January 2nd, 2022, 1:29 am
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.

Re: JSMeter10

Posted: January 2nd, 2022, 1:36 am
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

Re: JSMeter10

Posted: January 2nd, 2022, 10:28 pm
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]

Re: JSMeter10

Posted: January 2nd, 2022, 10:32 pm
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]

Re: JSMeter10

Posted: January 2nd, 2022, 11:18 pm
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.

Re: JSMeter10

Posted: September 27th, 2023, 10:10 am
by George Mi
Hi guys.
I would like some help!
I tried everything, including what is described here, but none of the email icons indicate anything. I entered the password and username correctly several times. What could be my problem??? Can't it be that my firewall doesn't allow the program? I already set it up.
Thank you very much if anyone can help!

Image

Re: JSMeter10

Posted: September 27th, 2023, 10:56 am
by Yincognito
George Mi wrote: September 27th, 2023, 10:10 am Hi guys.
I would like some help!
I tried everything, including what is described here, but none of the email icons indicate anything. I entered the password and username correctly several times. What could be my problem??? Can't it be that my firewall doesn't allow the program? I already set it up.
Thank you very much if anyone can help!

Image
Personally, I don't use email featured skins at all, but apparently a potentially related issue has been recently encountered by someone else, see the discussion here:
https://forum.rainmeter.net/viewtopic.php?t=39000#p218335

Re: JSMeter10

Posted: September 27th, 2023, 1:49 pm
by balala
George Mi wrote: September 27th, 2023, 10:10 am Hi guys.
I would like some help!
I tried everything, including what is described here, but none of the email icons indicate anything. I entered the password and username correctly several times. What could be my problem??? Can't it be that my firewall doesn't allow the program? I already set it up.
Thank you very much if anyone can help!

Image
Follow the link posted by Yincognito above. There I described exactly what did I do, to get the once working, but in meantime stopped skin, to work again. It's a Google related setting you have to do.
Please let me know if you succeeded into getting your skin(s) to work. Hope you did get it, but would be extremely curious if you indeed did.