# General

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

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

**Page:** 703

---

## [Manipulating Data form Global Object](https://discourse.nodered.org/t/manipulating-data-form-global-object/31206)

<div class="topic-metadata">

**Author:** [@thomas](https://discourse.nodered.org/u/thomas)\
**Replies:** 10\
**Last updated:** [6 August 2020 09:49 UTC](https://discourse.nodered.org/t/manipulating-data-form-global-object/31206 "2020-08-06T09:49:27Z")

</div>

Hello everyone, I have got a strange issue. I would like to take data (array) from a global variable object. Replace the null values with another value and send the result to another node by msg.payload. Sounds easy. …

---

## [Wierd display in debug pane (no styles ?)](https://discourse.nodered.org/t/wierd-display-in-debug-pane-no-styles/29819)

<div class="topic-metadata">

**Author:** [@T0T4R4](https://discourse.nodered.org/u/T0T4R4)\
**Replies:** 3\
**Last updated:** [6 August 2020 09:36 UTC](https://discourse.nodered.org/t/wierd-display-in-debug-pane-no-styles/29819 "2020-08-06T09:36:48Z")

</div>

Hi, We're running 1.0.1 and somewhat the debug pane looks like missing some styling. There are not Javascript errors nor Network errors in the developer tools (F12)... Any idea what could cause this ?

---

## [Write and read from global context every time a sensor reading is received](https://discourse.nodered.org/t/write-and-read-from-global-context-every-time-a-sensor-reading-is-received/31195)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 5\
**Last updated:** [6 August 2020 08:02 UTC](https://discourse.nodered.org/t/write-and-read-from-global-context-every-time-a-sensor-reading-is-received/31195 "2020-08-06T08:02:19Z")

</div>

Is this considered bad practice, or could it be a bad idea to do this? Every time I receive a sensor reading from one of many Arduinos around the home, I write the sensor data to a global context object, then read all o…

---

## [CANbus payload filtering](https://discourse.nodered.org/t/canbus-payload-filtering/31191)

<div class="topic-metadata">

**Author:** [@Robsky](https://discourse.nodered.org/u/Robsky)\
**Replies:** 10\
**Last updated:** [6 August 2020 07:00 UTC](https://discourse.nodered.org/t/canbus-payload-filtering/31191 "2020-08-06T07:00:05Z")

</div>

Hi, how can I filter CANbus messages based on message ID and byte im interested in to be displayed (1 of 8). thats what I'm getting as sample message. it has its ID and 8 bytes of data.

---

## [Combine two arrays based on line number](https://discourse.nodered.org/t/combine-two-arrays-based-on-line-number/31071)

<div class="topic-metadata">

**Author:** [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Replies:** 13\
**Last updated:** [6 August 2020 01:37 UTC](https://discourse.nodered.org/t/combine-two-arrays-based-on-line-number/31071 "2020-08-06T01:37:38Z")

</div>

Hi All, I have two arrays that i've created from a string. What I would like to do is join them back together based on their line number or array ID. I see there is ZIP json expression but i'm lost on how to use it. Fir…

---

## [Firestick and alexa.remote2 palette](https://discourse.nodered.org/t/firestick-and-alexa-remote2-palette/31074)

<div class="topic-metadata">

**Author:** [@sneakynuts](https://discourse.nodered.org/u/sneakynuts)\
**Replies:** 8\
**Last updated:** [6 August 2020 00:16 UTC](https://discourse.nodered.org/t/firestick-and-alexa-remote2-palette/31074 "2020-08-06T00:16:13Z")

</div>

Has anyone got the firestick to work with alexa.remote2 palette?

---

## [httpNodeCors setting issue](https://discourse.nodered.org/t/httpnodecors-setting-issue/31197)

<div class="topic-metadata">

**Author:** [@cgesbocker](https://discourse.nodered.org/u/cgesbocker)\
**Replies:** 0\
**Last updated:** [5 August 2020 21:24 UTC](https://discourse.nodered.org/t/httpnodecors-setting-issue/31197 "2020-08-05T21:24:32Z")

</div>

I am using the following setting in my runtime settings file httpNodeCors: { origin: 'http://localhost:8080', methods: "POST", credentials: true, } However, from the frontend when I request the get the data at the …

---

## [Modbus Serial In Test File](https://discourse.nodered.org/t/modbus-serial-in-test-file/31181)

<div class="topic-metadata">

**Author:** [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Replies:** 4\
**Last updated:** [5 August 2020 19:32 UTC](https://discourse.nodered.org/t/modbus-serial-in-test-file/31181 "2020-08-05T19:32:40Z")

</div>

Hi All, So I\`ve been reading data through the serial modbus node. I then connected it directly to a write text file node hoping that I could use the data later. Only issue is - the data comes through as a raw format lik…

---

## [If console.log in NR module?](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 3\
**Last updated:** [5 August 2020 18:37 UTC](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192 "2020-08-05T18:37:58Z")

</div>

If you have console.log() or such in code executed by NR, where does the out of the such end up? I have a NR module calling a class I previously created for just node, and wondered where console output directive end up?…

---

## [Switch all lights in a room](https://discourse.nodered.org/t/switch-all-lights-in-a-room/31093)

<div class="topic-metadata">

**Author:** [@tonydarby](https://discourse.nodered.org/u/tonydarby)\
**Replies:** 4\
**Last updated:** [5 August 2020 18:05 UTC](https://discourse.nodered.org/t/switch-all-lights-in-a-room/31093 "2020-08-05T18:05:22Z")

</div>

Hello, sorry for a probably really stupid question, but having tried for hours I cannot get whole room switching working. I am a complete novice with node-red. I am using Node-red in a home assistant setting. Have got …

---

## [Win7 vs Raspbian](https://discourse.nodered.org/t/win7-vs-raspbian/30949)

<div class="topic-metadata">

**Author:** [@RASelkirk](https://discourse.nodered.org/u/RASelkirk)\
**Replies:** 20\
**Last updated:** [5 August 2020 16:18 UTC](https://discourse.nodered.org/t/win7-vs-raspbian/30949 "2020-08-05T16:18:53Z")

</div>

Hi All, I'm really new to N-R (and very old). Having problems sitting at my desk with the pi, but I have a Win7 laptop in a more comfortable setting. Can I use the Win7 version to build an app, then put on my pi? How do…

---

## [Count Pulses from Hall Effect Sensor](https://discourse.nodered.org/t/count-pulses-from-hall-effect-sensor/30863)

<div class="topic-metadata">

**Author:** [@oncdastan](https://discourse.nodered.org/u/oncdastan)\
**Replies:** 6\
**Last updated:** [5 August 2020 15:18 UTC](https://discourse.nodered.org/t/count-pulses-from-hall-effect-sensor/30863 "2020-08-05T15:18:45Z")

</div>

Hi. The original discussion started here. As the conversation went on, we decided that the package was not usable, and decided to count pulses from the sensor with this timed-counter node. Now, I am trying to count the…

---

## [Changing Data without changing Variable](https://discourse.nodered.org/t/changing-data-without-changing-variable/31183)

<div class="topic-metadata">

**Author:** [@thomas](https://discourse.nodered.org/u/thomas)\
**Replies:** 1\
**Last updated:** [5 August 2020 15:02 UTC](https://discourse.nodered.org/t/changing-data-without-changing-variable/31183 "2020-08-05T15:02:52Z")

</div>

Hello, I have got a problem with global variables. The global variable changes its value even when I don't apply global.set(). How does it come and how can I prevent it. It looks like the variable in the flow is still …

---

## [SmartThings Motion Sensor Trigger](https://discourse.nodered.org/t/smartthings-motion-sensor-trigger/31146)

<div class="topic-metadata">

**Author:** [@scottriggle](https://discourse.nodered.org/u/scottriggle)\
**Replies:** 2\
**Last updated:** [5 August 2020 13:00 UTC](https://discourse.nodered.org/t/smartthings-motion-sensor-trigger/31146 "2020-08-05T13:00:19Z")

</div>

Sorry I'm thick, but I can't figure out how to trigger something like a like with a motion sensor. Do I check the status like every second with an interval or does it somehow send it from smartThings to node-red.

---

## [When you do update or install via npm, does everything reload from scratch?](https://discourse.nodered.org/t/when-you-do-update-or-install-via-npm-does-everything-reload-from-scratch/31154)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 2\
**Last updated:** [5 August 2020 12:42 UTC](https://discourse.nodered.org/t/when-you-do-update-or-install-via-npm-does-everything-reload-from-scratch/31154 "2020-08-05T12:42:06Z")

</div>

I did an npm install, then edited the html, fixed a typo, etc., then renamed the node names... not the registered type references, and did another npm install. This should have reloaded everything right? Stopped and st…

---

## [Weird Function Output](https://discourse.nodered.org/t/weird-function-output/30773)

<div class="topic-metadata">

**Author:** [@oncdastan](https://discourse.nodered.org/u/oncdastan)\
**Replies:** 41\
**Last updated:** [5 August 2020 11:25 UTC](https://discourse.nodered.org/t/weird-function-output/30773 "2020-08-05T11:25:10Z")

</div>

Hi. I wrote a function to compare temperature values. This function was connected to a trigger, and trigger was connected to a button. I learned that this part must be running at all times, without the button press. So, …

---

## [Display timer in hasio](https://discourse.nodered.org/t/display-timer-in-hasio/31171)

<div class="topic-metadata">

**Author:** [@Vlak](https://discourse.nodered.org/u/Vlak)\
**Replies:** 0\
**Last updated:** [5 August 2020 11:07 UTC](https://discourse.nodered.org/t/display-timer-in-hasio/31171 "2020-08-05T11:07:49Z")

</div>

Dear Folks, does anyone have an idea how to make a delay timer visible in home assistant. I am starting a delay timer for my irrigation and I would like to see in hassio how long it will take before it expires.

---

## [Delay Node is it the "Wrong Way Round?"](https://discourse.nodered.org/t/delay-node-is-it-the-wrong-way-round/31163)

<div class="topic-metadata">

**Author:** [@Diez66](https://discourse.nodered.org/u/Diez66)\
**Replies:** 8\
**Last updated:** [5 August 2020 10:50 UTC](https://discourse.nodered.org/t/delay-node-is-it-the-wrong-way-round/31163 "2020-08-05T10:50:19Z")

</div>

Yes, Maybe, No? I have had a brief look and see nothing like this, but I did miss that bus! The "Delay Node" woks well but looks rubbish in a flow, why? When I see a flow with a delay that feeds back the flow looks me…

---

## [Hide entire menu](https://discourse.nodered.org/t/hide-entire-menu/31169)

<div class="topic-metadata">

**Author:** [@tiagoslg](https://discourse.nodered.org/u/tiagoslg)\
**Replies:** 1\
**Last updated:** [5 August 2020 10:26 UTC](https://discourse.nodered.org/t/hide-entire-menu/31169 "2020-08-05T10:26:00Z")

</div>

Helo, I want to hide entire menu. Is it possible? I saw in the docs that I can hide menu options, but I can't find the file (editor/js/main.js:loadEditor) indicated in the wiki: menu: { // Hide unwanted menu items by …

---

## [How do I find "who" sent a message?](https://discourse.nodered.org/t/how-do-i-find-who-sent-a-message/31153)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [5 August 2020 07:06 UTC](https://discourse.nodered.org/t/how-do-i-find-who-sent-a-message/31153 "2020-08-05T07:06:44Z")

</div>

I thought I had my bases covered, but it seems I don't. Today I was looking at a log and it has all these invalid enterys. This is the message received: {"topic":"CONTROL","\_msgid":"e56a1d18.43cc1","\_event":"node:a1ee…

---

## [Context not working for name](https://discourse.nodered.org/t/context-not-working-for-name/31155)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 3\
**Last updated:** [5 August 2020 06:46 UTC](https://discourse.nodered.org/t/context-not-working-for-name/31155 "2020-08-05T06:46:50Z")

</div>

It caught me for a while then I remembered the device name is set in the settings.js file. So, when I look at my \`context on a new machine I see this: I'm confused. This is what the settings.js file looks like: W…

---

## [When installing new nodes, I see this error/message](https://discourse.nodered.org/t/when-installing-new-nodes-i-see-this-error-message/31156)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [5 August 2020 06:30 UTC](https://discourse.nodered.org/t/when-installing-new-nodes-i-see-this-error-message/31156 "2020-08-05T06:30:01Z")

</div>

I have the nodes installed on other machines. New machine: 2020-08-05T01:39:14.444Z Install : node-red-contrib-samsung-tv-control 1.3.12 2020-08-05T01:39:14.540Z npm install --no-audit --no-update-notifier --no-fund -…

---

## [Debug messages disappear](https://discourse.nodered.org/t/debug-messages-disappear/18859)

<div class="topic-metadata">

**Author:** [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Replies:** 7\
**Last updated:** [5 August 2020 06:25 UTC](https://discourse.nodered.org/t/debug-messages-disappear/18859 "2020-08-05T06:25:16Z")

</div>

I have 2 flows: flow 1 spits a large number of messages. flow 2 not so much In editor, I select "current flow" I select flow 2, spits 2 messages, waiting 5 seconds, they disappear. Is the "current flow" only a visua…

---

## [Flow documentation](https://discourse.nodered.org/t/flow-documentation/31121)

<div class="topic-metadata">

**Author:** [@Roland](https://discourse.nodered.org/u/Roland)\
**Replies:** 5\
**Last updated:** [5 August 2020 05:29 UTC](https://discourse.nodered.org/t/flow-documentation/31121 "2020-08-05T05:29:37Z")

</div>

Hi, I migrate my own developed home-automation based on node.js to node-red. Thank you guys for your excellent work. I use homematic, webcams, e-mail, feeds and much more components deployed in multiple node-red-instance…

---

## [Flows not loading through Zero Tier](https://discourse.nodered.org/t/flows-not-loading-through-zero-tier/31041)

<div class="topic-metadata">

**Author:** [@Paulf007](https://discourse.nodered.org/u/Paulf007)\
**Replies:** 12\
**Last updated:** [5 August 2020 04:33 UTC](https://discourse.nodered.org/t/flows-not-loading-through-zero-tier/31041 "2020-08-05T04:33:54Z")

</div>

Here is a new one. I have Zero Tier running to connect to my Node-red setup remotely. It was working fine but I had to clear my cache in Chrome and now node-red does not load the flows. If I connect to node-red on the l…

---

## [Get data from Schedex "info"](https://discourse.nodered.org/t/get-data-from-schedex-info/31140)

<div class="topic-metadata">

**Author:** [@classic](https://discourse.nodered.org/u/classic)\
**Replies:** 1\
**Last updated:** [4 August 2020 21:54 UTC](https://discourse.nodered.org/t/get-data-from-schedex-info/31140 "2020-08-04T21:54:02Z")

</div>

I am using the Schedex schedule and it works great. I would like to see the on and off settings on my dashboard, The command "info" send data to paylod like this: {"ontime":"07:00","ontopic":"setting/tid","onpayload":…

---

## [How to compare 2 values](https://discourse.nodered.org/t/how-to-compare-2-values/31138)

<div class="topic-metadata">

**Author:** [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Replies:** 6\
**Last updated:** [4 August 2020 20:22 UTC](https://discourse.nodered.org/t/how-to-compare-2-values/31138 "2020-08-04T20:22:04Z")

</div>

Hello, can someone please help me. i would like to compare 2 values. Unfortunately I am too stupid and cannot manage it. \[{"id":"c74b60cf.0feba8","type":"ui\_led","z":"f4339f33.43893","group":"2c48b410.e40854","order"…

---

## [Add line breaks to function, HTML](https://discourse.nodered.org/t/add-line-breaks-to-function-html/31143)

<div class="topic-metadata">

**Author:** [@mikewoodld](https://discourse.nodered.org/u/mikewoodld)\
**Replies:** 2\
**Last updated:** [4 August 2020 20:10 UTC](https://discourse.nodered.org/t/add-line-breaks-to-function-html/31143 "2020-08-04T20:10:21Z")

</div>

Returns (after the msg was passed along into a flow variable) I want to drop this flow variable onto a HTML page But when I do, my line breaks don't appear: (ignore the fact that the names don't match, I hadn…

---

## [Energy consumption of raspberry pi connected led](https://discourse.nodered.org/t/energy-consumption-of-raspberry-pi-connected-led/31139)

<div class="topic-metadata">

**Author:** [@usmanEmder](https://discourse.nodered.org/u/usmanEmder)\
**Replies:** 3\
**Last updated:** [4 August 2020 19:49 UTC](https://discourse.nodered.org/t/energy-consumption-of-raspberry-pi-connected-led/31139 "2020-08-04T19:49:58Z")

</div>

Hi everyone. I want to calculate the energy consumption of led which is connected with raspberry. Can anyone suggest to me, how can it be done?

---

## [Example of boolean input type in node html file?](https://discourse.nodered.org/t/example-of-boolean-input-type-in-node-html-file/31135)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 14\
**Last updated:** [4 August 2020 19:16 UTC](https://discourse.nodered.org/t/example-of-boolean-input-type-in-node-html-file/31135 "2020-08-04T19:16:46Z")

</div>

Developing a node, where I need to have boolean value selected. I have seen this in a few nodes, and in various places in NR editor and such. But not sure where a 'good' example of implementing this is? I figure it is…

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

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