# General

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

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

**Page:** 636

---

## [Node to detect keyboard input?](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [20 December 2020 10:14 UTC](https://discourse.nodered.org/t/node-to-detect-keyboard-input/37781 "2020-12-20T10:14:47Z")

</div>

Yes, I have searched the library, but not really had any luck. There are some nodes which claim to do it, but I think are way too old. I am looking for a node which will see keys pressed on the keyboard and send the re…

---

## [Pull line number from text](https://discourse.nodered.org/t/pull-line-number-from-text/37783)

<div class="topic-metadata">

**Author:** [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Replies:** 5\
**Last updated:** [20 December 2020 10:11 UTC](https://discourse.nodered.org/t/pull-line-number-from-text/37783 "2020-12-20T10:11:45Z")

</div>

Hi all, Im sure this is really simple but I couldn't find anything in search that was helpful. I have a string returned from a solar inverter 1 1 EAB961770026 QRGQQBWVVXSTTVYP M11 17511-708R+17511-707R 11:45 20/…

---

## [Context value question](https://discourse.nodered.org/t/context-value-question/37755)

<div class="topic-metadata">

**Author:** [@gschmidt](https://discourse.nodered.org/u/gschmidt)\
**Replies:** 2\
**Last updated:** [20 December 2020 08:38 UTC](https://discourse.nodered.org/t/context-value-question/37755 "2020-12-20T08:38:43Z")

</div>

Hi, In a function node I store the "nvalue" of an On/Off switch (domoticz) in a context variable. This function node is part of a flow which turns a TV on/off if the Switch is turned On/Off. if (msg.payload.idx == '35…

---

## [Get node-red-contrib-persist to restore chart](https://discourse.nodered.org/t/get-node-red-contrib-persist-to-restore-chart/37776)

<div class="topic-metadata">

**Author:** [@Tomadoggy](https://discourse.nodered.org/u/Tomadoggy)\
**Replies:** 7\
**Last updated:** [19 December 2020 23:44 UTC](https://discourse.nodered.org/t/get-node-red-contrib-persist-to-restore-chart/37776 "2020-12-19T23:44:54Z")

</div>

@DeanC Thank you for your persist nodes! I have read through the documentation many times and tried a number of different configurations to get one of my UI charts to restore after a reboot/refresh, but so far to no ava…

---

## [Function inserts '\[object Object\]' instead of it´s payload](https://discourse.nodered.org/t/function-inserts-object-object-instead-of-it-s-payload/37777)

<div class="topic-metadata">

**Author:** [@oma](https://discourse.nodered.org/u/oma)\
**Replies:** 2\
**Last updated:** [19 December 2020 23:00 UTC](https://discourse.nodered.org/t/function-inserts-object-object-instead-of-it-s-payload/37777 "2020-12-19T23:00:22Z")

</div>

Hi there, for whatever reason i fail inserting the value of a msg object into a topic - he only shows '\[object Object\]': I assume the error is within the "MakeSQL" function: var temp = {payload: msg.payload.temperat…

---

## [Cannot connect to MQTT broker on local network](https://discourse.nodered.org/t/cannot-connect-to-mqtt-broker-on-local-network/37743)

<div class="topic-metadata">

**Author:** [@crustaceanhate](https://discourse.nodered.org/u/crustaceanhate)\
**Replies:** 14\
**Last updated:** [19 December 2020 22:15 UTC](https://discourse.nodered.org/t/cannot-connect-to-mqtt-broker-on-local-network/37743 "2020-12-19T22:15:33Z")

</div>

Hey everybody, I currently have node-red running on a Raspberry Pi Zero and so far it's been great, but I've been running into some issues connecting to an MQTT broker on my lan. I have Mosquitto v1.6.7 running on a Fre…

---

## [Change a object to a msg for Telegram](https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 2\
**Last updated:** [19 December 2020 21:44 UTC](https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726 "2020-12-19T21:44:10Z")

</div>

hello i have a output like that msg.payload : Object object time: "2020-12-18 20:36:21" brand: "OS" model: "Oregon-THGR122N" id: 246 channel: 1 battery\_ok: 0 temperature\_C: 23.8 humidity: 37 i would like to s…

---

## [JSON Api weather data](https://discourse.nodered.org/t/json-api-weather-data/37506)

<div class="topic-metadata">

**Author:** [@Garrian](https://discourse.nodered.org/u/Garrian)\
**Replies:** 40\
**Last updated:** [19 December 2020 20:55 UTC](https://discourse.nodered.org/t/json-api-weather-data/37506 "2020-12-19T20:55:30Z")

</div>

Hello. I want to filter out some of the weather data from this api. https://api.met.no/weatherapi/locationforecast/2.0/complete?altitude=70&lat=59.023441&lon=6.041370 I am new to node red, and i dont know where to st…

---

## [Parsing only a body string from and object](https://discourse.nodered.org/t/parsing-only-a-body-string-from-and-object/37732)

<div class="topic-metadata">

**Author:** [@ibmlmjm](https://discourse.nodered.org/u/ibmlmjm)\
**Replies:** 2\
**Last updated:** [19 December 2020 20:42 UTC](https://discourse.nodered.org/t/parsing-only-a-body-string-from-and-object/37732 "2020-12-19T20:42:10Z")

</div>

Hey, I have payload object with a body property of string. I want to covert the body to json object. I'm trying to use the JSON node to convert the string to an object which works great. My problem is parsing out the bod…

---

## [Is it possible to see only /UI (dashboard) the flowchart will be hidden](https://discourse.nodered.org/t/is-it-possible-to-see-only-ui-dashboard-the-flowchart-will-be-hidden/35111)

<div class="topic-metadata">

**Author:** [@halukmy](https://discourse.nodered.org/u/halukmy)\
**Replies:** 3\
**Last updated:** [19 December 2020 20:21 UTC](https://discourse.nodered.org/t/is-it-possible-to-see-only-ui-dashboard-the-flowchart-will-be-hidden/35111 "2020-12-19T20:21:28Z")

</div>

Greetings, i am using frontend as nodered dashboard, after we publish on web, is it possible to secure nodered flows? only ui will be shared

---

## [Node RED - Home assistant - Homematic IP Basics](https://discourse.nodered.org/t/node-red-home-assistant-homematic-ip-basics/37673)

<div class="topic-metadata">

**Author:** [@dgtlptry](https://discourse.nodered.org/u/dgtlptry)\
**Replies:** 1\
**Last updated:** [19 December 2020 16:34 UTC](https://discourse.nodered.org/t/node-red-home-assistant-homematic-ip-basics/37673 "2020-12-19T16:34:26Z")

</div>

Hi, i´m a beginner trying to learn NodeRed basics by myself. I learn by creating simple flows first and need help with the following task: I want to set temperature of my HomematicIP thermostat to 24Celsius using NodeRe…

---

## [Can't connect websocket (disconnected)](https://discourse.nodered.org/t/cant-connect-websocket-disconnected/37590)

<div class="topic-metadata">

**Author:** [@MrWolff](https://discourse.nodered.org/u/MrWolff)\
**Replies:** 15\
**Last updated:** [19 December 2020 16:16 UTC](https://discourse.nodered.org/t/cant-connect-websocket-disconnected/37590 "2020-12-19T16:16:20Z")

</div>

Hi everyone, I have a problem to connect the websocket node. When is use the default adress (127.0.0.1.8080) the websocket still gets disconnected. When I search for the "node-red-contrib-websocket" I don't found it on…

---

## [Node Red E-mail Node Suddenly Timing Out](https://discourse.nodered.org/t/node-red-e-mail-node-suddenly-timing-out/37588)

<div class="topic-metadata">

**Author:** [@topcorner18](https://discourse.nodered.org/u/topcorner18)\
**Replies:** 1\
**Last updated:** [19 December 2020 14:23 UTC](https://discourse.nodered.org/t/node-red-e-mail-node-suddenly-timing-out/37588 "2020-12-19T14:23:55Z")

</div>

Been using the e-mail node for several months to report various alarm conditions on my vessel monitoring system. Have not changed nodes doring that time. Suddenly it is getting "Error: queryA ETIMEOUT smtp.office365.co…

---

## [Node-red on Fedora server](https://discourse.nodered.org/t/node-red-on-fedora-server/37750)

<div class="topic-metadata">

**Author:** [@desciplejustin](https://discourse.nodered.org/u/desciplejustin)\
**Replies:** 2\
**Last updated:** [19 December 2020 12:44 UTC](https://discourse.nodered.org/t/node-red-on-fedora-server/37750 "2020-12-19T12:44:22Z")

</div>

Hi guys I have just installed Fedora 33 on an old PC and all running well. I have also just installed Node-Red using the bash scrip HERE and i cannot seem to access Node-Red from another PC on a local network using the h…

---

## [Node-red-contrib-enocean](https://discourse.nodered.org/t/node-red-contrib-enocean/37409)

<div class="topic-metadata">

**Author:** [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Replies:** 6\
**Last updated:** [19 December 2020 10:52 UTC](https://discourse.nodered.org/t/node-red-contrib-enocean/37409 "2020-12-19T10:52:21Z")

</div>

I am using the above mentioned Node-red Flow and have some problems with a rocker 4 switch. How can I calculate the time between button pressed and button released. Actually I am not able to identify the resulting mess…

---

## [Problema node-red](https://discourse.nodered.org/t/problema-node-red/37747)

<div class="topic-metadata">

**Author:** [@Daniel2406](https://discourse.nodered.org/u/Daniel2406)\
**Replies:** 1\
**Last updated:** [19 December 2020 09:57 UTC](https://discourse.nodered.org/t/problema-node-red/37747 "2020-12-19T09:57:26Z")

</div>

C:\\Users\\Daniel\>npm install -g --unsafe-perm node-red npm WARN deprecated bcrypt@3.0.6: versions \< v5.0.0 do not handle NUL in passwords properly npm WARN deprecated request@2.88.0: request has been deprecated, see htt…

---

## [Projects and Git hub](https://discourse.nodered.org/t/projects-and-git-hub/37739)

<div class="topic-metadata">

**Author:** [@Paulf007](https://discourse.nodered.org/u/Paulf007)\
**Replies:** 1\
**Last updated:** [19 December 2020 09:17 UTC](https://discourse.nodered.org/t/projects-and-git-hub/37739 "2020-12-19T09:17:54Z")

</div>

I got the following email from Github after pushing changes from node red. Is there an update that I missed? Hi @MyInfo, You recently used a password to access the repository at MyInfo/NodeRed with git using git/\[2.20…

---

## [How To: Obtain a Bearer access token using Postman](https://discourse.nodered.org/t/how-to-obtain-a-bearer-access-token-using-postman/37742)

<div class="topic-metadata">

**Author:** [@mengelsen](https://discourse.nodered.org/u/mengelsen)\
**Replies:** 0\
**Last updated:** [19 December 2020 03:47 UTC](https://discourse.nodered.org/t/how-to-obtain-a-bearer-access-token-using-postman/37742 "2020-12-19T03:47:44Z")

</div>

I am trying to obtain an API token. I am using the following resource as a guide. I can successfully obtain the access token via the Terminal app. However, I cannot obtain the token while using Postman. (I am providi…

---

## [How many points in flow i can read](https://discourse.nodered.org/t/how-many-points-in-flow-i-can-read/37697)

<div class="topic-metadata">

**Author:** [@frozi2](https://discourse.nodered.org/u/frozi2)\
**Replies:** 1\
**Last updated:** [19 December 2020 02:03 UTC](https://discourse.nodered.org/t/how-many-points-in-flow-i-can-read/37697 "2020-12-19T02:03:10Z")

</div>

Hi everyone! Can you take my answer. Example: I'm reading 500 devises from ModbusTCP protocol. Only 10 registers from each devise. Does it is working, in one or more flows. And visualisation in to Node-Red Dashboard. …

---

## [Http request POST form data](https://discourse.nodered.org/t/http-request-post-form-data/37727)

<div class="topic-metadata">

**Author:** [@bbartling](https://discourse.nodered.org/u/bbartling)\
**Replies:** 4\
**Last updated:** [18 December 2020 21:39 UTC](https://discourse.nodered.org/t/http-request-post-form-data/37727 "2020-12-18T21:39:51Z")

</div>

Would anyone have a tip on how I can create an HTTP request with node red flow? This is Python code that I can trying to figure out how to recreate with node-red. Its an http POST with form data. import requests url =…

---

## [Running as a service on a windows OS](https://discourse.nodered.org/t/running-as-a-service-on-a-windows-os/37639)

<div class="topic-metadata">

**Author:** [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Replies:** 33\
**Last updated:** [18 December 2020 20:20 UTC](https://discourse.nodered.org/t/running-as-a-service-on-a-windows-os/37639 "2020-12-18T20:20:07Z")

</div>

Hi TotallyInformation, I know this is kinda old topic, but I appreciate if you can reply. I used your alternate-node-red-installer and it works really fine. But I don't know how am I going to create an automatic start …

---

## [Http request adds codes to the string](https://discourse.nodered.org/t/http-request-adds-codes-to-the-string/37681)

<div class="topic-metadata">

**Author:** [@ianlyonthomas](https://discourse.nodered.org/u/ianlyonthomas)\
**Replies:** 2\
**Last updated:** [18 December 2020 19:04 UTC](https://discourse.nodered.org/t/http-request-adds-codes-to-the-string/37681 "2020-12-18T19:04:08Z")

</div>

I have a http GET to which I pass the string - {"Lat=":gpslat,"Lon=":gpslon,"Date=":gpsdate,"Time=":0,"Device=":name,"timer=":gpsdate,"speed=":gpsspeed,"heading=":gpscourse,"&distance=":0}; However the string that arri…

---

## [Imported subflow does not work](https://discourse.nodered.org/t/imported-subflow-does-not-work/37716)

<div class="topic-metadata">

**Author:** [@Tombcat](https://discourse.nodered.org/u/Tombcat)\
**Replies:** 4\
**Last updated:** [18 December 2020 18:21 UTC](https://discourse.nodered.org/t/imported-subflow-does-not-work/37716 "2020-12-18T18:21:19Z")

</div>

Hello sometimes when I export and import subflow to my instance it just doesn't work. I Even connected the Debug node straight to the input of the subflow and nothing is passing to it. I have tried to delete the subflo…

---

## [Creating Tracking Dashboard](https://discourse.nodered.org/t/creating-tracking-dashboard/37715)

<div class="topic-metadata">

**Author:** [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Replies:** 0\
**Last updated:** [18 December 2020 17:05 UTC](https://discourse.nodered.org/t/creating-tracking-dashboard/37715 "2020-12-18T17:05:32Z")

</div>

i want to show truck history and travelled distance in my current use case in node red. secondly want to create a geofence which shows alarms when object moves outside the zone area. And displays the alarm in some win…

---

## [Retrieve the maximum temperature values for each month of the year](https://discourse.nodered.org/t/retrieve-the-maximum-temperature-values-for-each-month-of-the-year/37636)

<div class="topic-metadata">

**Author:** [@roro50](https://discourse.nodered.org/u/roro50)\
**Replies:** 50\
**Last updated:** [18 December 2020 14:58 UTC](https://discourse.nodered.org/t/retrieve-the-maximum-temperature-values-for-each-month-of-the-year/37636 "2020-12-18T14:58:50Z")

</div>

Hello, I am a beginner, and I am trying to memorize the temperature of my sensor (max value) for each month. example: January: max temp 6.5 ° c february: max temp 12.4 ° I found the way to get the month and the tempe…

---

## [Multiple cases with multiple actions](https://discourse.nodered.org/t/multiple-cases-with-multiple-actions/37704)

<div class="topic-metadata">

**Author:** [@danny20](https://discourse.nodered.org/u/danny20)\
**Replies:** 6\
**Last updated:** [18 December 2020 14:25 UTC](https://discourse.nodered.org/t/multiple-cases-with-multiple-actions/37704 "2020-12-18T14:25:20Z")

</div>

Hello everybody, I don't have programming experience and I need your help. I am using node-red to analyze a tcp-output string that includes this sequence: "00000000" (8 characters). This is sent by an electronic card t…

---

## [Can't communicate with postgres database](https://discourse.nodered.org/t/cant-communicate-with-postgres-database/37701)

<div class="topic-metadata">

**Author:** [@serry69](https://discourse.nodered.org/u/serry69)\
**Replies:** 0\
**Last updated:** [18 December 2020 11:14 UTC](https://discourse.nodered.org/t/cant-communicate-with-postgres-database/37701 "2020-12-18T11:14:11Z")

</div>

Hallo community, I have to make some query from node-red to postgres V12. I have done a very simple flow but it doesn't work at all. There is no query that exit from PC (PostGres in on other PC and firewall is down on bo…

---

## [Clone a previous configuration: restore flows\_raspberrypi.json is enough?](https://discourse.nodered.org/t/clone-a-previous-configuration-restore-flows-raspberrypi-json-is-enough/10791)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 3\
**Last updated:** [18 December 2020 11:07 UTC](https://discourse.nodered.org/t/clone-a-previous-configuration-restore-flows-raspberrypi-json-is-enough/10791 "2020-12-18T11:07:10Z")

</div>

Hi mates, yesterday for the first time I restored flow from a clipboard backup. All was fine exept one module, which communicates with Amazon Echo. After the restore Alexa couldn't control more the modules, I think beca…

---

## [How to time difference using CoAP](https://discourse.nodered.org/t/how-to-time-difference-using-coap/37656)

<div class="topic-metadata">

**Author:** [@sura45](https://discourse.nodered.org/u/sura45)\
**Replies:** 4\
**Last updated:** [18 December 2020 10:17 UTC](https://discourse.nodered.org/t/how-to-time-difference-using-coap/37656 "2020-12-18T10:17:10Z")

</div>

I want to get time1 which is the sending time(in milliseconds) and time2 for received time to calculate the time it takes to receive packet data. However, I am only getting one time(for received time) . Can anyone sugg…

---

## [Retrieve data in mysql and return this data in http repsonse](https://discourse.nodered.org/t/retrieve-data-in-mysql-and-return-this-data-in-http-repsonse/37606)

<div class="topic-metadata">

**Author:** [@LordLee123](https://discourse.nodered.org/u/LordLee123)\
**Replies:** 5\
**Last updated:** [18 December 2020 07:09 UTC](https://discourse.nodered.org/t/retrieve-data-in-mysql-and-return-this-data-in-http-repsonse/37606 "2020-12-18T07:09:07Z")

</div>

Hi, I made a http request endpoint to retrieve data in mysql and return this data in http repsonse. But seems like that it doesn't work. I can get data from mysql .But No way to reply .

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

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