-
Notifications
You must be signed in to change notification settings - Fork 50
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
Missing age calculation in 5.1.3 #190
Comments
Hey, thank you for filing this issue. Unfortunately, I am not certain if I understood you correctly. You said that you receive emails, which means that you have setup the script correctly. The age calculation can be wrong if an incorrect javascript engine is set. Could you go to the script -> click the gear icon on the top left -> and ensure that the Chrome V8-Runtime is activated? |
Thanks Michael,
First a small correction.
It seems the version 5.1.3 did correctly send me also the anticitaped
events (for today, and for in 2 days and in 7 days)
But it did NOT give the years
Nor (as I see now) did it give the teleplhone number (for the anticitated
events)
I did set the anticipateDays correctly on 0, 2, 7:
![reply - 1](https://user-images.githubusercontent.com/42167787/203793749-a9700366-283c-4232-ba59-a9bd89316e3d.png)
And the V8-runtime was already activated:
![reply - 2](https://user-images.githubusercontent.com/42167787/203793746-a248c1af-9b99-40db-9c12-2c800cc2a058.png)
"Strange" thing is that I kept the old version (5.0.1) alive and that one
works fine (although in another gmail account I have the same problem (no
years) for this version)
*version 5.0.1:*
![reply - 3 - version 5 0 1](https://user-images.githubusercontent.com/42167787/203793744-6ecbc646-a101-43cb-a749-aa55c9545131.png)
*version 5.1.3:*
As you can see for Marc Roels (birthday tomorrow 25/11) the e-mails addres
is there, but not his telephone number
And for non the "years" is calculated (the "91 jaar" you see is part of the
contact's name. It is his age at the moment she passed away (then 91 years,
today she would have been 98 years)
![reply - 4 - version 5 1 3](https://user-images.githubusercontent.com/42167787/203793741-2e5b5c2c-0aa3-4235-9bde-dc207335d58a.png)
Groeten,
Jaap
Op do 24 nov. 2022 om 11:08 schreef Michael Plainer <
***@***.***>:
… Hey, thank you for filing this issue. Unfortunately, I am not certain if I
understood you correctly. You said that you receive emails, which means
that you have setup the script correctly.
Regarding the email notifications prior to the events, you have to set
anticipateDays in the script accordingly. Did you do that?
The age calculation can be wrong if an incorrect javascript engine is set.
Could you go to the script -> click the gear icon on the top left -> and
ensure that the Chrome V8-Runtime is activated?
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBW32Z5DE2GMAJ6DDJGBFDWJ45DFANCNFSM6AAAAAASKA5PO4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Does somebody why I do get the reminder emails, but the age is missing? |
I think that I was able to reproduce this issue. Will keep you posted here. The issue seems to be GoogleContactsEventsNotifier/code.gs Lines 443 to 445 in ff969c9
|
Could you check if the changes proposed here: #191 resolve your issues? After updating the script, you can verify it by selecting "test" instead of "notifStart" in the dropdown at the top. When ran, this will execute the script for the set test date. GoogleContactsEventsNotifier/code.gs Line 163 in ff969c9
to a date where some of your contacts have a birthday. If this does not solve your problem, please share your settings (line 12-173). |
No.
No change.
Still not a calculated age
Have I made the correct changes??
- changed the version number on line 169
- the lines 325 - 330 were already there
- added a questionmark "?" in line 438 (or 444)
Op ma 28 nov. 2022 om 22:20 schreef Michael Plainer <
***@***.***>:
… Could you test if the code here:
#191 <#191>
resolves your issues?
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBW324AU4NBNSO5QLAS4CLWKUO2RANCNFSM6AAAAAASKA5PO4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Lines 325-330 were deleted. |
no, still no age calculation How do I share my "config" ??? |
The settings can be found from line 12-173 of your script. With them I can see whether the same issue persists for me. But as said above, please delete your email from the script. |
var settings = { |
Great, thank you. I will look into it. |
This is my execution log: 23:06:40 Mededeling Uitvoering gestart |
What I don't understand is, while I use as a testDate: new Date('2022/11/24 00:00:00') The log says: 23:06:41 Informatie I: Date used: Fri Dec 02 2022 00:00:00 GMT+0100 (Central European Standard Time) |
Yes, this seems odd to me too. Just to get the obvious out of the way: You saved the script, right? Secondly, |
Yes I saved the script.
I don't know about the integration of the people API, but **I do get the
emails**, only in after version 5.0.2 no longer the calculated age (and in
some of my accounts even in version 5.0.2 the calculated age is gone).
- What would be practical, is that the e-mail reminder resulted from the test function, would have a special code, so that you can filter on it .
- Or that the testing e-mail optional can be sent to another e-mail address.
(I forward my e-mail reminders to my family, and now they get also these test e-mails. With a "special code" perhaps I could filter them out and not forward these test emails to my family)
Op di 29 nov. 2022 22:52 schreef Michael Plainer ***@***.***>:
… Yes, this seems odd to me. Just to get the obvious out of the way: You
saved the script, right?
Secondly, 23:06:44 Informatie W: People is not defined seems weird. Maybe
there is something wrong with the people api integration.
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBW325BGJORBV2IGI3FZSDWKZ3LHANCNFSM6AAAAAASKA5PO4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I had to add People API to make it working, althought it is not mentioned in the Installation and setup |
I actually think that does make a difference....
But it helps only partially (I get some with the calculated date, some
without and some double)
But for some odd reason I get now 1 contact with a special event (date of
death) mentioned two times:
- once without the calculated years since his decease
- and one with the calcutaled years
The only thing still missing (which was there in the previous versions) is
the "nickname" of the contact added to the body
(as I have an extended family, sometimes in the "nickname" I have put
information who is who. eg. "daughter of ...". or "son of .....")
Groeten,
Jaap
Op wo 30 nov. 2022 om 16:41 schreef ekos2001 ***@***.***>:
… I had to add People API to make it working, althought it is not mentioned
in the Installation and setup
<https://github.com/GioBonvi/GoogleContactsEventsNotifier/blob/master/docs/install-and-setup.md>
[image: image]
<https://user-images.githubusercontent.com/12628077/204842275-6cfeca27-c58c-4cca-ba07-49f488b84fec.png>
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBW32ZIBGWKNHOR6YMICK3WK5YT5ANCNFSM6AAAAAASKA5PO4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks @ekos2001, I have it also activated. But when I implemented the feature in #177, it seemed like we don't need to manually activate it. That might have changed, or was not working properly for new users. @JaapAntwerp regarding this issue:
|
I have re-started everything, re-copied the original code, made the
changes, activated the People API and YES, IT WORKS !!!
And I even copied it to my other gmails accounts, and (again) YES, IT WORKS
!!!!
Thanks
Groeten,
Jaap
Op wo 30 nov. 2022 om 18:18 schreef Michael Plainer <
***@***.***>:
… Thanks @ekos2001 <https://github.com/ekos2001>, I have it also activated.
But when I implemented the feature in #177
<#177>, it
seemed like we don't need to manually activate it. That might have changed,
or was not working properly for new users.
@JaapAntwerp <https://github.com/JaapAntwerp> regarding this issue:
1. Have you included the changes from #191
<#191>?
Because those should also resolve the duplicate / missing code calculations.
2. Regarding the nick names, lets create a second issue
3. I will document the people api and also create a separate issue for
that.
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKBW323T3AQMIBFZYSSGLDDWK6D5FANCNFSM6AAAAAASKA5PO4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Steps to reproduce
I have followed the set-up file and try to add an Google Cloud Project number
But helas, it tells me I don't have sufficient rights (I need to configurate the "OAuth consent screen")
I do receive the reminder e-mail, but
What action or series of actions is the cause of the issue?
Expected behavior
What should happen?
Current behavior
What happens instead?
Context
Version of the script: x.x.x - look for a line near the top of the code which
reads:
Any other details which might be related to the context;
Extended description
Try to describe the problem in the most complete way. You can add images,
error messages, hypothesis and observations regarding the problem here.
Possible solution
If you think you know what causes the problem or if you know a solution for it
write it here.
The text was updated successfully, but these errors were encountered: