# Node-red-contrib-ical-events to mqtt

**URL:** https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022
**Category:** General
**Created:** [9 April 2022 09:42 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022 "2022-04-09T09:42:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![trombose009](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trombose009/32/30787_2.png) [@trombose009](https://discourse.nodered.org/u/trombose009)
#### Post date: [9 April 2022 09:42 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022/1 "2022-04-09T09:42:26Z")

</div>

Hey guys,

I have made an automatic fish feeder which is controlled via mqtt. I want to use a google calendar to execute the events.  
So, my gogle calendar connection is working as you can see in my first attempt.

 ![screen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d758f4493aa112f09d3c6eee0311e68ef3f32192.png)

now I need some help.  
1.) how to make a function which convert the object in a way that the text of the description is send as a string via mqtt to my broker (mqtt connection is still working; i am using it in some other cases)  
2.) how can I make that such an event is only send one time and not several times? I want to make an appointment in my calendar, it should be recognized by node-red and send ONE mqtt message to initiate ONE feeding event.

greeting

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [9 April 2022 10:01 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022/2 "2022-04-09T10:01:59Z")

</div>

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

For your second question take a look at the `trigger` node

---

<div class="post-metadata">

### Author: ![trombose009](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trombose009/32/30787_2.png) [@trombose009](https://discourse.nodered.org/u/trombose009)
#### Post date: [9 April 2022 12:19 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022/3 "2022-04-09T12:19:37Z")

</div>

thank you very much. first I thought I can't make it. but then I was able to solve my first question. Everytime a mqtt messages with the description contant as string is send now.

but I still don't know how I could make it, that this happens only once and not again and again. 😕

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [9 April 2022 12:27 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022/4 "2022-04-09T12:27:10Z")

</div>

Blocking multiple msgs is easy but how do you determine when to send another?

---

<div class="post-metadata">

### Author: ![trombose009](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trombose009/32/30787_2.png) [@trombose009](https://discourse.nodered.org/u/trombose009)
#### Post date: [9 April 2022 12:30 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022/5 "2022-04-09T12:30:46Z")

</div>

hm, only one message a day maybe?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [9 April 2022 12:40 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022/6 "2022-04-09T12:40:09Z")

</div>

You're asking the wrong person, you're the only one who can answer that. Why are so many msgs coming into the flow?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 April 2022 12:40 UTC](https://discourse.nodered.org/t/node-red-contrib-ical-events-to-mqtt/61022/7 "2022-04-23T12:40:13Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
