# How to send to a variable list of Pushover receivers?

**URL:** <https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709>\
**Category:** General\
**Created:** [25 January 2021 12:29 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709 "2021-01-25T12:29:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gawan](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@Gawan](https://discourse.nodered.org/u/Gawan)\
**Post date:** [25 January 2021 12:29 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709/1 "2021-01-25T12:29:17Z")

</div>

Hi,

is it possible to send messages to a variable list of pushover receivers ?  
If I use node-red-contrib-pushover I am limited to only one specific and "hard-coded" receiver, but thats not what I want.

I want to send to different receivers - defined by a variable list of userkeys and applicationkeys.  
Is there a way to solve this using node-red-contrib-pushover ? or do I have to build a POST request using the official pushover API ?

BR  
Gawan

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [25 January 2021 12:55 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709/2 "2021-01-25T12:55:17Z")

</div>

Yes it is possible to set an array of receivers, then in a function node loop over array, create message and receiver and use node.send() to send the messages on each loop. Or  
I think msg.device can also hold a comma seperated list  
the available inputs are

- `msg.topic` : This will be used as the title of the notification if **Title** is not set
- `msg.image` : The URL of the image in notification. Local file path or http(s) url
- `msg.url` : Can add an url to your notification
- `msg.url_title` : Can set the title of the url
- `msg.priority` : -2/-1/1/2, [see explain](https://pushover.net/api#priority)
- `msg.device` : Default for all device if not provided. Separated by a comma
- `msg.sound` : Name of the notification sound, [see the list](https://pushover.net/api#sounds)
- `msg.timestamp` : An unix timestamp to specific the date time of your notification

---

<div class="post-metadata">

**Author:** ![Gawan](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@Gawan](https://discourse.nodered.org/u/Gawan)\
**Post date:** [25 January 2021 13:25 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709/3 "2021-01-25T13:25:58Z")

</div>

but there is no possibility to set the receiver, key or anything, at least I do not know where !?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [25 January 2021 13:40 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709/4 "2021-01-25T13:40:02Z")

</div>

If you want to send to different api keys, just add seperate nodes for each key, then with a function or switch node direct the output to the various pushover nodes.

---

<div class="post-metadata">

**Author:** ![Gawan](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@Gawan](https://discourse.nodered.org/u/Gawan)\
**Post date:** [25 January 2021 14:11 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709/5 "2021-01-25T14:11:30Z")

</div>

exactly thats not the way I want to solve it 🙂  
in this case I have to create receiver nodes for each and every new user

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [25 January 2021 15:04 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709/6 "2021-01-25T15:04:08Z")

</div>

Then as you say you will have to send a http request to the rest api.

---

<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:** [26 March 2021 15:04 UTC](https://discourse.nodered.org/t/how-to-send-to-a-variable-list-of-pushover-receivers/39709/7 "2021-03-26T15:04:59Z")

</div>

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