Error: Missing required parameters: calendarId
msg.payload.calendarId = "TheId"; return msg;--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/f8426064-f91e-4d63-9bf3-503bc974f609%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry I read google and assumed you meant this one http://flows.nodered.org/node/node-red-node-google
Which I use to retrieve calendar events every day.
With that function code, it will depend what msg.payload is coming into the function as to whether that will work.You will be better doing:msg.payload = { calendarId: "TheId"}; return msg;Nick
On 31 January 2017 at 20:39, Kristoffer Isaksson <kris.is...@gmail.com> wrote:
Thanks for the reply.I just got a reply from the creater of the node and he told me that the parameter should be passed with msg.payload. so in this case msg.payload.calendarId
But if i try this in a function node and then connect a debug node and try to read msg.payload.calendarId then it is undefinedmsg.payload.calendarId = "TheId"; return msg;
Den tisdag 31 januari 2017 kl. 21:19:17 UTC+1 skrev Mark Setrem:
It's not a parameter that you pass to the node therefore I think that's a Google error message rather than a Node-Red one.(although you can pass a calendar name with msg.calendar if you are creating a calendar event)Have you granted access to both the Google+API and the Google Calendar API?The Google API is a little bit fussy, I remember it being a bit of trial and error to initially set it up
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.