# General

**URL:** https://discourse.nodered.org/c/general/7.md?page=778

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

**Page:** 779

---

## [\[solved\] Payload volume control onkyo help](https://discourse.nodered.org/t/solved-payload-volume-control-onkyo-help/23475)

<div class="topic-metadata">

**Author:** [@dbgnu76](https://discourse.nodered.org/u/dbgnu76)\
**Replies:** 2\
**Last updated:** [23 March 2020 07:03 UTC](https://discourse.nodered.org/t/solved-payload-volume-control-onkyo-help/23475 "2020-03-23T07:03:31Z")

</div>

Need some help with volume control with onkyo node. i can\`t get the format right with this code, {msg.payload = {"master-volume=":msg.payload} } return msg; Debug shows: master-volume=: "17" but i need it to be: …

---

## [Controlling Youtube App on Samsung NU8000](https://discourse.nodered.org/t/controlling-youtube-app-on-samsung-nu8000/22434)

<div class="topic-metadata">

**Author:** [@ahakobyan](https://discourse.nodered.org/u/ahakobyan)\
**Replies:** 1\
**Last updated:** [23 March 2020 01:28 UTC](https://discourse.nodered.org/t/controlling-youtube-app-on-samsung-nu8000/22434 "2020-03-23T01:28:55Z")

</div>

Now that we know how to control the NU8000 Samsung TV thanks to this topic: https://discourse.nodered.org/t/controlling-samsung-tv-nu8000/22419/9 I'm wondering if there is a way to request a specific channel on Youtube,…

---

## [Alexa with node red](https://discourse.nodered.org/t/alexa-with-node-red/11555)

<div class="topic-metadata">

**Author:** [@Thewaver](https://discourse.nodered.org/u/Thewaver)\
**Replies:** 3\
**Last updated:** [22 March 2020 23:53 UTC](https://discourse.nodered.org/t/alexa-with-node-red/11555 "2020-03-22T23:53:20Z")

</div>

I have a simple flow of an alexa home node connected directly to a mqtt input node (sonoff basic). Both show connected. when i ask alexa to turn on sonoff2, the green light comes on OK but alexa says that its not respond…

---

## [Modbus Flex Getter/can't connect](https://discourse.nodered.org/t/modbus-flex-getter-cant-connect/14476)

<div class="topic-metadata">

**Author:** [@petrdolejs](https://discourse.nodered.org/u/petrdolejs)\
**Replies:** 2\
**Last updated:** [22 March 2020 23:20 UTC](https://discourse.nodered.org/t/modbus-flex-getter-cant-connect/14476 "2020-03-22T23:20:30Z")

</div>

Hello guys, I've got problem with node Modbus Flex Getter. When I put nodes like this Inject-\>function-\>Modbus Flex Getter( node-red-contrib-modbus )-\>Modbus Response it just give me 2 errors "SyntaxError: Unexpected to…

---

## [Telegrambot with multiple chatID](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711)

<div class="topic-metadata">

**Author:** [@holazit](https://discourse.nodered.org/u/holazit)\
**Replies:** 3\
**Last updated:** [22 March 2020 21:25 UTC](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711 "2020-03-22T21:25:07Z")

</div>

Hello, I need to send the same message to two users on telegram, is it possible to use multiple chatids in the same payload with node-red-contrib-telegrambot? I have tried with this function but does not work msg.payl…

---

## [Controlling Samsung TV](https://discourse.nodered.org/t/controlling-samsung-tv/23387)

<div class="topic-metadata">

**Author:** [@drumstick77](https://discourse.nodered.org/u/drumstick77)\
**Replies:** 9\
**Last updated:** [22 March 2020 20:46 UTC](https://discourse.nodered.org/t/controlling-samsung-tv/23387 "2020-03-22T20:46:43Z")

</div>

Hi, I've installed node-red-contrib-samsung-tv-control I'm trying to get the turn on node to work but doesn't seems to be working I've put the IP, MAC, and token in, other functions such as changing channel seems to wo…

---

## [Msg property not persisting](https://discourse.nodered.org/t/msg-property-not-persisting/23443)

<div class="topic-metadata">

**Author:** [@mrSidX](https://discourse.nodered.org/u/mrSidX)\
**Replies:** 3\
**Last updated:** [22 March 2020 20:32 UTC](https://discourse.nodered.org/t/msg-property-not-persisting/23443 "2020-03-22T20:32:09Z")

</div>

I've got a nagging issue with a msg property not persisting after being passed to the next node. My scenario is grabbing a Stripe payment web-hook... I get the web-hook with much needed metadata attached coming in fine…

---

## [Use vcgencmd within a docker node-red container](https://discourse.nodered.org/t/use-vcgencmd-within-a-docker-node-red-container/23050)

<div class="topic-metadata">

**Author:** [@DannyBoyKN](https://discourse.nodered.org/u/DannyBoyKN)\
**Replies:** 18\
**Last updated:** [22 March 2020 17:10 UTC](https://discourse.nodered.org/t/use-vcgencmd-within-a-docker-node-red-container/23050 "2020-03-22T17:10:24Z")

</div>

I have node-red docker container running on my Pi4B and configured several dashboards successfully. For showing the raspberry temperature usually the vcgencmd is used. Directly under the Pi that works out of the box, but…

---

## [Problem in showing results in python](https://discourse.nodered.org/t/problem-in-showing-results-in-python/23440)

<div class="topic-metadata">

**Author:** [@tarahi](https://discourse.nodered.org/u/tarahi)\
**Replies:** 27\
**Last updated:** [22 March 2020 18:45 UTC](https://discourse.nodered.org/t/problem-in-showing-results-in-python/23440 "2020-03-22T18:45:40Z")

</div>

Hi friends, I have a problem in showing my sensor results after using pythonshell node. my output result in sys-python is : 29.00 But the output after node-pythonshell is as below : msg.payload : string\[46\] string\[…

---

## [From a mqtt message extract and modify two parameters to create a new one](https://discourse.nodered.org/t/from-a-mqtt-message-extract-and-modify-two-parameters-to-create-a-new-one/23363)

<div class="topic-metadata">

**Author:** [@megamarco83](https://discourse.nodered.org/u/megamarco83)\
**Replies:** 30\
**Last updated:** [22 March 2020 18:01 UTC](https://discourse.nodered.org/t/from-a-mqtt-message-extract-and-modify-two-parameters-to-create-a-new-one/23363 "2020-03-22T18:01:39Z")

</div>

hi, i have a mqtt messge object that is like this: switch light off {"Battery":255,"RSSI":12,"description":"topic=tasmota\_mcp\\npayload=MCPINT\_D0=","dtype":"Light/Switch","hwid":"6","id":"000140FE","idx":174,"name":"mcp…

---

## [Fibaro hc2 heating](https://discourse.nodered.org/t/fibaro-hc2-heating/23457)

<div class="topic-metadata">

**Author:** [@oddmn](https://discourse.nodered.org/u/oddmn)\
**Replies:** 0\
**Last updated:** [22 March 2020 17:07 UTC](https://discourse.nodered.org/t/fibaro-hc2-heating/23457 "2020-03-22T17:07:46Z")

</div>

Hello all. trying to get my heating working on sheldue. Using z wave. 2 fibaro wall plug connected to heating wall panel. 1 evergreen 814 thermostat. and using node-red-contrib-heater-controller. Any who can explain…

---

## [Get mqtt topic data on demand?](https://discourse.nodered.org/t/get-mqtt-topic-data-on-demand/6572)

<div class="topic-metadata">

**Author:** [@shellian.systems](https://discourse.nodered.org/u/shellian.systems)\
**Replies:** 61\
**Last updated:** [22 March 2020 16:32 UTC](https://discourse.nodered.org/t/get-mqtt-topic-data-on-demand/6572 "2020-03-22T16:32:56Z")

</div>

Hi Folks, I've searched the forums and I'm not seeing an obvious solution to my issue and wondering if anyone can help out... I have a use case in which I will receive an mqtt event from one topic that I have subscribe…

---

## [Writing KNX Sensordata to AWS Dynamo DB](https://discourse.nodered.org/t/writing-knx-sensordata-to-aws-dynamo-db/23452)

<div class="topic-metadata">

**Author:** [@webmagier](https://discourse.nodered.org/u/webmagier)\
**Replies:** 0\
**Last updated:** [22 March 2020 12:48 UTC](https://discourse.nodered.org/t/writing-knx-sensordata-to-aws-dynamo-db/23452 "2020-03-22T12:48:20Z")

</div>

I'm trying to write the ouput from my KNX sensor into a DynamoDB in the Amazon AWS cloud. I get the data as an ouput with the debug node. I'm pretty new to Node Red and JSON and I have no idea how to reference the messag…

---

## [How to stop a timestamp with delay](https://discourse.nodered.org/t/how-to-stop-a-timestamp-with-delay/23430)

<div class="topic-metadata">

**Author:** [@LourdHD](https://discourse.nodered.org/u/LourdHD)\
**Replies:** 5\
**Last updated:** [22 March 2020 11:22 UTC](https://discourse.nodered.org/t/how-to-stop-a-timestamp-with-delay/23430 "2020-03-22T11:22:54Z")

</div>

Hi to all, i need help for a very simple code but i don't find a solution. i've a RGB matrix display and a motion sensor in a room. I need to stop a timestamp with a delay 1 sec if if is motion sensor is safe. Can any …

---

## [Changing Host IP address modbusTcp](https://discourse.nodered.org/t/changing-host-ip-address-modbustcp/14678)

<div class="topic-metadata">

**Author:** [@ajaymn](https://discourse.nodered.org/u/ajaymn)\
**Replies:** 4\
**Last updated:** [22 March 2020 09:51 UTC](https://discourse.nodered.org/t/changing-host-ip-address-modbustcp/14678 "2020-03-22T09:51:54Z")

</div>

Hello, I have implemented a Modbus TCP Master application using Node-Red. I am able to establish the read properly if I go to the flow settings and enter the Host IP address to the Server settings page. However now I wa…

---

## [How to move multiple files with \`fs-ops\` nodes?](https://discourse.nodered.org/t/how-to-move-multiple-files-with-fs-ops-nodes/23394)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [22 March 2020 00:13 UTC](https://discourse.nodered.org/t/how-to-move-multiple-files-with-fs-ops-nodes/23394 "2020-03-22T00:13:03Z")

</div>

I have (yet) another problem when I am wanting to move multiple files from a to b. I have these files in a directory (I just realised there is a better way of doing it, but it will still require the same mechanics to wo…

---

## [Get number from Alexa](https://discourse.nodered.org/t/get-number-from-alexa/23138)

<div class="topic-metadata">

**Author:** [@dbrownpu](https://discourse.nodered.org/u/dbrownpu)\
**Replies:** 15\
**Last updated:** [21 March 2020 23:45 UTC](https://discourse.nodered.org/t/get-number-from-alexa/23138 "2020-03-21T23:45:04Z")

</div>

I'm trying to get numbers from Alexa to set things like my TV channel and Stereo volume using an IR Blaster. The only way I've found so far is to set up a "thermostat" called "channel" using the node-red-contrib-alexa-ho…

---

## [(SOLVED) Jsonata Change Node: inconsistent behaviour](https://discourse.nodered.org/t/solved-jsonata-change-node-inconsistent-behaviour/23419)

<div class="topic-metadata">

**Author:** [@JayNaire](https://discourse.nodered.org/u/JayNaire)\
**Replies:** 0\
**Last updated:** [21 March 2020 15:36 UTC](https://discourse.nodered.org/t/solved-jsonata-change-node-inconsistent-behaviour/23419 "2020-03-21T15:36:01Z")

</div>

Using: NR v1.0.3 on RPi4 Raspbian Buster I'm trying to correct some data in a global object (energy.dailyLog.usage) which is an array of 676 objects. The attached flow shows a Jsonata Change node (Fix usage) which work…

---

## [Which node do I use to get the "Week number" (of the year)](https://discourse.nodered.org/t/which-node-do-i-use-to-get-the-week-number-of-the-year/23391)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [21 March 2020 22:35 UTC](https://discourse.nodered.org/t/which-node-do-i-use-to-get-the-week-number-of-the-year/23391 "2020-03-21T22:35:56Z")

</div>

Today's problem: I need the week number. I'm sure I have seen it mentioned somewhere. Someone - please.

---

## [Copy/paste email node loses credentials](https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 2\
**Last updated:** [21 March 2020 21:34 UTC](https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426 "2020-03-21T21:34:05Z")

</div>

I find that if I copy/paste an email node (even into the same flow) then the user and pwd fields are emptied. Is that by design? I can't see an open Issue about it. node red 1.0.4, nodejs 12.16.1

---

## [Blinking LED in function](https://discourse.nodered.org/t/blinking-led-in-function/23322)

<div class="topic-metadata">

**Author:** [@StevenRott](https://discourse.nodered.org/u/StevenRott)\
**Replies:** 12\
**Last updated:** [21 March 2020 21:24 UTC](https://discourse.nodered.org/t/blinking-led-in-function/23322 "2020-03-21T21:24:56Z")

</div>

Hi there, I want to have a blinking LED.....how can i Do this in a function ??? I have already the following: abs = msg.payload.abstand; alarmon = msg.payload.alarm; if (abs \< 20){ do {return {payload:1}; } while(a…

---

## [How to retry ID from MySQL of last INSERT INTO](https://discourse.nodered.org/t/how-to-retry-id-from-mysql-of-last-insert-into/23433)

<div class="topic-metadata">

**Author:** [@rex](https://discourse.nodered.org/u/rex)\
**Replies:** 3\
**Last updated:** [21 March 2020 20:40 UTC](https://discourse.nodered.org/t/how-to-retry-id-from-mysql-of-last-insert-into/23433 "2020-03-21T20:40:33Z")

</div>

I'm able to store int MySQL compiling msg.topics with insert into ... SQL command, but I need to get the ID of this transaction. How to do? Thanks, Fabrizio

---

## [Paid Nodes Question](https://discourse.nodered.org/t/paid-nodes-question/23093)

<div class="topic-metadata">

**Author:** [@mtoko](https://discourse.nodered.org/u/mtoko)\
**Replies:** 47\
**Last updated:** [21 March 2020 19:25 UTC](https://discourse.nodered.org/t/paid-nodes-question/23093 "2020-03-21T19:25:43Z")

</div>

A regular contributor to Node Red has provided a significant number of very useful additional nodes to the project. They cannot continue to develop and support these nodes indefinitely without some financial support. I u…

---

## [To update or not to update](https://discourse.nodered.org/t/to-update-or-not-to-update/23367)

<div class="topic-metadata">

**Author:** [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Replies:** 11\
**Last updated:** [21 March 2020 18:52 UTC](https://discourse.nodered.org/t/to-update-or-not-to-update/23367 "2020-03-21T18:52:37Z")

</div>

That's the question. No it's not. Just experienced bad example of holding back the nodejs based home automation system partials updates until something and then another something. It is bad idea. Update all and alwa…

---

## [TypeError: node.scope.forEach is not a function](https://discourse.nodered.org/t/typeerror-node-scope-foreach-is-not-a-function/23412)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 3\
**Last updated:** [21 March 2020 17:34 UTC](https://discourse.nodered.org/t/typeerror-node-scope-foreach-is-not-a-function/23412 "2020-03-21T17:34:50Z")

</div>

Is there a known issue when creating a subflow from selected nodes and then restarting getting the error TypeError: node.scope.forEach is not a function at Subflow.start (/usr/lib/node\_modules/node-red/node\_modules/…

---

## [Multiple text fields in one UI Template](https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287)

<div class="topic-metadata">

**Author:** [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Replies:** 2\
**Last updated:** [21 March 2020 15:51 UTC](https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287 "2020-03-21T15:51:36Z")

</div>

Hi, The following ui template displays a name and a picture. But how do i add more text fields eg msg.text msg.time ? \<div ng-bind-html="msg.topic"\> \</div\> \<img ng-src={{msg.image}} height="50" width="50" /\>

---

## [Dev and Production node-red environment in bluemix : best practices?](https://discourse.nodered.org/t/dev-and-production-node-red-environment-in-bluemix-best-practices/23401)

<div class="topic-metadata">

**Author:** [@etawyy](https://discourse.nodered.org/u/etawyy)\
**Replies:** 1\
**Last updated:** [21 March 2020 13:34 UTC](https://discourse.nodered.org/t/dev-and-production-node-red-environment-in-bluemix-best-practices/23401 "2020-03-21T13:34:13Z")

</div>

I am setting up a full IOT APP in IBM environment. I guess I am not the only one. This is how I have done it so far, which is not ideal and would like to share and gather best practice ideas... I have several ressources…

---

## [If with two variables](https://discourse.nodered.org/t/if-with-two-variables/23405)

<div class="topic-metadata">

**Author:** [@StevenRott](https://discourse.nodered.org/u/StevenRott)\
**Replies:** 1\
**Last updated:** [21 March 2020 11:54 UTC](https://discourse.nodered.org/t/if-with-two-variables/23405 "2020-03-21T11:54:48Z")

</div>

Hello, I have the follwing flow.....so I want to have that the function with "Heizungssteuerung" prove, if the temperaturedifference is 2or lower AND if the servo ist still on the degree that it should be.....and if so,…

---

## [Help this beginner :)](https://discourse.nodered.org/t/help-this-beginner/23359)

<div class="topic-metadata">

**Author:** [@lubbe5](https://discourse.nodered.org/u/lubbe5)\
**Replies:** 5\
**Last updated:** [21 March 2020 10:17 UTC](https://discourse.nodered.org/t/help-this-beginner/23359 "2020-03-21T10:17:31Z")

</div>

Hello my Name is James. 16 years old, and today I make my first node-red project. I'am a beginner, and got my first Arduino from my mom :slight\_smile: . I think you al start just like me, or you bought your first arduin…

---

## [Help with node-red-contrib-dsm and timeout](https://discourse.nodered.org/t/help-with-node-red-contrib-dsm-and-timeout/22609)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 10\
**Last updated:** [21 March 2020 10:03 UTC](https://discourse.nodered.org/t/help-with-node-red-contrib-dsm-and-timeout/22609 "2020-03-21T10:03:57Z")

</div>

I am trying to get my head round node-red-contrib-dsm and in particular a case where I have a simple situation that the machine cycles through states based on incoming signals, but on one of them I want a timeout such th…

[Previous page](https://discourse.nodered.org/c/general/7.md?page=777)

[Next page](https://discourse.nodered.org/c/general/7.md?page=779)
