Read the statement by Michael Teeuw here.
read csv-data and put it in an array
-
shame on me, sorry for that. now it’s changed to:
if(birth_date_moment.startOf('month').isSameOrAfter(now.startOf('month')) && birth_date_moment.startOf('month').isSameOrBefore(birthday_time_window.startOf('month'))) {
nothing changed, i have configured the terminal-window to scroll about 3000 (!) lines, but can’t see the beginning …
-
@Perlchamp redirect the terminal window to a file and edit that
do this in the code
// if the date is the same or later, don't use time of day //if(birth_date_moment.startOf('day').isSameOrAfter(now.startOf('day')) && // birth_date_moment.startOf('day').isSameOrBefore(birthday_time_window.startOf('day'))) { */ if( birth_date_moment.month() == now.month() ){
-
done, it’s frozen now. must restart …
-
question:
in thesocketNotificationReceived: function(notification, payload) { if(notification === "HAVEDATA") { var self = this; ...
payload should be the variable in which the jsonString is saved ?
-
@Perlchamp it has the jsonObj from the node_helper
u can call it anything, its just a name
so, if you put a stop right on the var self = this
and then cursor over the work payload infunction(notification, payload)
it will show you that object content, and u can go up and click on parts to make them expand to examine the contents
-
ok, there is a light at the end of the tunnel:
-
code was changed to add ages
in getDom()
for(var name of this.active_birthdays[birthday]) { var m = document.createElement("div"); Log.log("BIRTHDAY >> " + birthday); Log.log("NAME >> " + name); m.innerText = birthday + " " + name; wrapper.appendChild(m); }
now is
for(var person of this.active_birthdays[birthday]){ var m=document.createElement('div') // create your table row here m.innerText=birthday+ ' '+ person.name+' age='+person.age wrapper.appendChild(m) }
-
great, thanks !
to your information:
there are NO semikolons in your posted code. within them it goes ! -
@Perlchamp end of line ; are not required… I cut/pasted that code out of the running module
-
without i have a black screen, with everythings fine.
another information:
age must be +1 but i think i will solve this alone. if not i’m too stuipid for this all :-)
so i can create my table now. but i see:
people who has birthday the same day:
date should be displayed once, and the names in the same, separated by