# General

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

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

**Page:** 366

---

## [Need help with converting a Timestring to a readable format](https://discourse.nodered.org/t/need-help-with-converting-a-timestring-to-a-readable-format/63732)

<div class="topic-metadata">

**Author:** [@Marv21](https://discourse.nodered.org/u/Marv21)\
**Replies:** 6\
**Last updated:** [10 June 2022 21:40 UTC](https://discourse.nodered.org/t/need-help-with-converting-a-timestring-to-a-readable-format/63732 "2022-06-10T21:40:21Z")

</div>

Hello, it seemed like an easy Task but i cant get it to work. This are my first footsteps with js or Nodered so be nice, please ^^. Iam getting a Timestring vom a thirdparty tool over MQTT. 10.6.2022, 16:23:35\[node: …

---

## [Roller Shutter close at specific time](https://discourse.nodered.org/t/roller-shutter-close-at-specific-time/63638)

<div class="topic-metadata">

**Author:** [@NeXrom](https://discourse.nodered.org/u/NeXrom)\
**Replies:** 3\
**Last updated:** [10 June 2022 21:35 UTC](https://discourse.nodered.org/t/roller-shutter-close-at-specific-time/63638 "2022-06-10T21:35:04Z")

</div>

Hello Im new! I made a node that if I switch the light on (in a specific time range 21 till 5 ) the roller shutter will close. The Problem is, that if I switch the light on at 20:30 clock and than wait till 21 clock …

---

## [Creating Hot Spott after time period if not connected to wifi (Raspberry pi)](https://discourse.nodered.org/t/creating-hot-spott-after-time-period-if-not-connected-to-wifi-raspberry-pi/63746)

<div class="topic-metadata">

**Author:** [@Radon](https://discourse.nodered.org/u/Radon)\
**Replies:** 1\
**Last updated:** [10 June 2022 21:07 UTC](https://discourse.nodered.org/t/creating-hot-spott-after-time-period-if-not-connected-to-wifi-raspberry-pi/63746 "2022-06-10T21:07:40Z")

</div>

Hello, im realy new to Node-red and Raspberry Pi. I have a Projekt where the Raspberry is part of an Smart Home device. i want to archive following behavior: On Boot the Raspberry Pi / Node-red should check after some…

---

## [Query on Link In / Link Out Nodes](https://discourse.nodered.org/t/query-on-link-in-link-out-nodes/63741)

<div class="topic-metadata">

**Author:** [@SandeepA](https://discourse.nodered.org/u/SandeepA)\
**Replies:** 2\
**Last updated:** [10 June 2022 19:37 UTC](https://discourse.nodered.org/t/query-on-link-in-link-out-nodes/63741 "2022-06-10T19:37:53Z")

</div>

Hi , I have a query on Link in / Link Out Nodes. Documentation says : " Note: Links cannot be created going into, or out of, a subflow." Does it mean - that we cannot have Link in / Link Out within a subflow ? Or …

---

## [Bug with node-red-contrib-cron-plus?](https://discourse.nodered.org/t/bug-with-node-red-contrib-cron-plus/62615)

<div class="topic-metadata">

**Author:** [@LondonBenji](https://discourse.nodered.org/u/LondonBenji)\
**Replies:** 24\
**Last updated:** [10 June 2022 19:29 UTC](https://discourse.nodered.org/t/bug-with-node-red-contrib-cron-plus/62615 "2022-06-10T19:29:11Z")

</div>

Hey all, I am using Cron-Plus on Node-Red within Home Assistant and I'm running into an issue which I believe might be a bug. First up, versions: Raspberry Pi: 4b/8GB Home Assistant OS: 7.6 Home Assistant Core: 2022.…

---

## [How to write code for a switch node?](https://discourse.nodered.org/t/how-to-write-code-for-a-switch-node/63737)

<div class="topic-metadata">

**Author:** [@JJ22](https://discourse.nodered.org/u/JJ22)\
**Replies:** 4\
**Last updated:** [10 June 2022 17:44 UTC](https://discourse.nodered.org/t/how-to-write-code-for-a-switch-node/63737 "2022-06-10T17:44:24Z")

</div>

Hello, everyone How to write code in function so that the switch node, for example, if "1" that is transistor, if "0" then there is no transistor? I've tried everything, nothing works.

---

## [Blynk-ws nodes stuck after wifi reconnects on raspberry pi](https://discourse.nodered.org/t/blynk-ws-nodes-stuck-after-wifi-reconnects-on-raspberry-pi/63739)

<div class="topic-metadata">

**Author:** [@AnandJhaveri](https://discourse.nodered.org/u/AnandJhaveri)\
**Replies:** 0\
**Last updated:** [10 June 2022 16:55 UTC](https://discourse.nodered.org/t/blynk-ws-nodes-stuck-after-wifi-reconnects-on-raspberry-pi/63739 "2022-06-10T16:55:21Z")

</div>

My system hardware/software: Node-RED version: v2.2.2 running on a RPi 2B. Node.js version: v14.19.3 Blynk legacy running on iOS 14 I have a simple Blynk project with one push button connected to virtual pin 0 (V0). …

---

## [Multiple switches trigger](https://discourse.nodered.org/t/multiple-switches-trigger/63725)

<div class="topic-metadata">

**Author:** [@etmomoabc](https://discourse.nodered.org/u/etmomoabc)\
**Replies:** 2\
**Last updated:** [10 June 2022 14:26 UTC](https://discourse.nodered.org/t/multiple-switches-trigger/63725 "2022-06-10T14:26:23Z")

</div>

I need help creating flow for multiple switches. I have 6 fan switches, zone\_1 - zone\_6, their states are off and fan\_only. I wish they could work like this they are all off then go to the next one either one of them…

---

## [Using xlsx to json node, cannot change file after being used](https://discourse.nodered.org/t/using-xlsx-to-json-node-cannot-change-file-after-being-used/63703)

<div class="topic-metadata">

**Author:** [@MAvitia](https://discourse.nodered.org/u/MAvitia)\
**Replies:** 3\
**Last updated:** [10 June 2022 14:15 UTC](https://discourse.nodered.org/t/using-xlsx-to-json-node-cannot-change-file-after-being-used/63703 "2022-06-10T14:15:13Z")

</div>

I am using this fairly new node xlsx to json node, the idea of the flow is to load a file, to something with the data, and have the capability of opening a different file to repeat the process the problem here is that o…

---

## [How to control existing "node-red-contrib-gree-hvac"](https://discourse.nodered.org/t/how-to-control-existing-node-red-contrib-gree-hvac/63617)

<div class="topic-metadata">

**Author:** [@Lizzie](https://discourse.nodered.org/u/Lizzie)\
**Replies:** 8\
**Last updated:** [10 June 2022 14:11 UTC](https://discourse.nodered.org/t/how-to-control-existing-node-red-contrib-gree-hvac/63617 "2022-06-10T14:11:29Z")

</div>

Hello, I want to control the gree ac using node red. I downloaded "node-red-contrib-gree-hvac" but the flow look like this Can you kindly help me how can I configure this? I am attaching the flow: \[{"id":"ff9fe48d…

---

## [Introduction to RED-Node\[Question\]](https://discourse.nodered.org/t/introduction-to-red-node-question/63296)

<div class="topic-metadata">

**Author:** [@baptiste2k8](https://discourse.nodered.org/u/baptiste2k8)\
**Replies:** 12\
**Last updated:** [10 June 2022 13:32 UTC](https://discourse.nodered.org/t/introduction-to-red-node-question/63296 "2022-06-10T13:32:01Z")

</div>

I am new here and trying to learn as much as I can. Firstly, I want to know more about this tool. could anyone help me with the answers to the following questions: Free and Open Source: Implementation Programming Lang…

---

## [How to identify an error](https://discourse.nodered.org/t/how-to-identify-an-error/63720)

<div class="topic-metadata">

**Author:** [@Nilpferd](https://discourse.nodered.org/u/Nilpferd)\
**Replies:** 2\
**Last updated:** [10 June 2022 13:16 UTC](https://discourse.nodered.org/t/how-to-identify-an-error/63720 "2022-06-10T13:16:40Z")

</div>

I rcv following debug message (red) since a few hours without changing anything on this node or flow: created staircase-timer with config {"id":"be5786f2f56b6c05","type":"staircase-timer","z":"15383e6849c86130","name":"…

---

## [If 10mp does not arrive payload](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712)

<div class="topic-metadata">

**Author:** [@azxo1](https://discourse.nodered.org/u/azxo1)\
**Replies:** 3\
**Last updated:** [10 June 2022 13:15 UTC](https://discourse.nodered.org/t/if-10mp-does-not-arrive-payload/63712 "2022-06-10T13:15:17Z")

</div>

Hello! I would like to test a feature that if no payload is received for 10 seconds, then .... code (so if nothing comes from the mqtt in flow) How to do this? (sorry, I still don't speak English)

---

## [Cannot read properties of null (reading 'allNodes')](https://discourse.nodered.org/t/cannot-read-properties-of-null-reading-allnodes/63711)

<div class="topic-metadata">

**Author:** [@atmar](https://discourse.nodered.org/u/atmar)\
**Replies:** 0\
**Last updated:** [10 June 2022 09:38 UTC](https://discourse.nodered.org/t/cannot-read-properties-of-null-reading-allnodes/63711 "2022-06-10T09:38:48Z")

</div>

I have imported "node-red" , initialized it and then used below addFlow function, RED.start().then(() =\> { RED.runtime.flows.addFlow({ flow: Flow, req: {} }); }); still it is throwing error as, if (activeFlowConfig.…

---

## [addFlow() - TypeError: Cannot read property 'allNodes' of null](https://discourse.nodered.org/t/addflow-typeerror-cannot-read-property-allnodes-of-null/7540)

<div class="topic-metadata">

**Author:** [@gecevicius](https://discourse.nodered.org/u/gecevicius)\
**Replies:** 1\
**Last updated:** [3 February 2019 23:05 UTC](https://discourse.nodered.org/t/addflow-typeerror-cannot-read-property-allnodes-of-null/7540 "2019-02-03T23:05:36Z")

</div>

Hello, I have just started using Node RED. I am creating an application where the user can send commands to the Raspberry PI and am using the RED Runtime Api. I am getting an error when using RED.nodes.addFlow() \\serve…

---

## [Please, help me!](https://discourse.nodered.org/t/please-help-me/63709)

<div class="topic-metadata">

**Author:** [@JJ22](https://discourse.nodered.org/u/JJ22)\
**Replies:** 1\
**Last updated:** [10 June 2022 07:58 UTC](https://discourse.nodered.org/t/please-help-me/63709 "2022-06-10T07:58:15Z")

</div>

Hello! I'm still new to Node-red. I had a stupor, I need to write code to select a controller. So that when choosing a user can write how many inputs/He needs outputs, chose the type of output (transistor or relay) and …

---

## [Mqtt input to an sql DB](https://discourse.nodered.org/t/mqtt-input-to-an-sql-db/63621)

<div class="topic-metadata">

**Author:** [@bill210kouk](https://discourse.nodered.org/u/bill210kouk)\
**Replies:** 2\
**Last updated:** [10 June 2022 07:31 UTC](https://discourse.nodered.org/t/mqtt-input-to-an-sql-db/63621 "2022-06-10T07:31:31Z")

</div>

Hello! I am having trouble importing the mqtt input of a published message to a table in my sql Database How this it build mqtt input to a function and then to the sql server? Mqtt -\> template -\> sql server ? And how…

---

## [Aedes broker is not installing](https://discourse.nodered.org/t/aedes-broker-is-not-installing/63658)

<div class="topic-metadata">

**Author:** [@learnobyte](https://discourse.nodered.org/u/learnobyte)\
**Replies:** 10\
**Last updated:** [10 June 2022 02:50 UTC](https://discourse.nodered.org/t/aedes-broker-is-not-installing/63658 "2022-06-10T02:50:19Z")

</div>

Hi, I have tried to install Mqtt- aedes broker, it is installed but showing error. Showing Flows stopped due to missing node types. how to solve this

---

## [Data into dropdown](https://discourse.nodered.org/t/data-into-dropdown/63522)

<div class="topic-metadata">

**Author:** [@alexback](https://discourse.nodered.org/u/alexback)\
**Replies:** 28\
**Last updated:** [10 June 2022 01:37 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522 "2022-06-10T01:37:26Z")

</div>

Hey, is there any solution where I can have the data of fields from mongodb which is installed in raspberry pi and place them into a dropdown . I'm new so is there someone who can guide me to achieve this .Thank u

---

## [What would blank a Global Variable?](https://discourse.nodered.org/t/what-would-blank-a-global-variable/63653)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 3\
**Last updated:** [10 June 2022 01:20 UTC](https://discourse.nodered.org/t/what-would-blank-a-global-variable/63653 "2022-06-10T01:20:04Z")

</div>

Guys, NR 2.2.2 I have a routine that controls my Battery Charge and Discharge rates. It performs various calculations on my Power usage and Solar output and then makes decisions about where to charge the battery from. …

---

## [Tracks - ownTrack and worldmap](https://discourse.nodered.org/t/tracks-owntrack-and-worldmap/63644)

<div class="topic-metadata">

**Author:** [@anairamy](https://discourse.nodered.org/u/anairamy)\
**Replies:** 3\
**Last updated:** [9 June 2022 23:30 UTC](https://discourse.nodered.org/t/tracks-owntrack-and-worldmap/63644 "2022-06-09T23:30:06Z")

</div>

Hi everyone! Can anyone help me one Track node? I did it this way but it only returned the map... and i need to return a track with the value i return... Function 1: Function 2: Function 3: Function 4: …

---

## [Node-red unresponsive while sqlite node is working](https://discourse.nodered.org/t/node-red-unresponsive-while-sqlite-node-is-working/63465)

<div class="topic-metadata">

**Author:** [@sonntam](https://discourse.nodered.org/u/sonntam)\
**Replies:** 2\
**Last updated:** [9 June 2022 21:18 UTC](https://discourse.nodered.org/t/node-red-unresponsive-while-sqlite-node-is-working/63465 "2022-06-09T21:18:03Z")

</div>

I'm using the sqlite-node extensively to store and retrieve sensor data. So far I have around 20 different sensors (temperature, humidity, co2-concentration, air pressure, open/closed status,...) that push data into a sq…

---

## [Automatic token HTTP request](https://discourse.nodered.org/t/automatic-token-http-request/63516)

<div class="topic-metadata">

**Author:** [@LinkView\_Maze](https://discourse.nodered.org/u/LinkView_Maze)\
**Replies:** 20\
**Last updated:** [9 June 2022 20:59 UTC](https://discourse.nodered.org/t/automatic-token-http-request/63516 "2022-06-09T20:59:55Z")

</div>

hello. I have two functions in my flow, the first requests a token for the connection, the second makes a request to know the consumption of a 4G card with the previous token. I'm looking to do the function in one go: …

---

## [iAqualink for Pool Equipment strike again](https://discourse.nodered.org/t/iaqualink-for-pool-equipment-strike-again/63321)

<div class="topic-metadata">

**Author:** [@VVorttexx](https://discourse.nodered.org/u/VVorttexx)\
**Replies:** 6\
**Last updated:** [1 June 2022 08:21 UTC](https://discourse.nodered.org/t/iaqualink-for-pool-equipment-strike-again/63321 "2022-06-01T08:21:29Z")

</div>

hello, I found a post that exactly matches my problem: and even the spotify example that goes with it. But unfortunately like Tico, I'm drooling hats tried to recover the bearer token to put it in another http request…

---

## [Receiving Object with too many levels and save it to a new object structure](https://discourse.nodered.org/t/receiving-object-with-too-many-levels-and-save-it-to-a-new-object-structure/63687)

<div class="topic-metadata">

**Author:** [@vanilla-sky](https://discourse.nodered.org/u/vanilla-sky)\
**Replies:** 1\
**Last updated:** [9 June 2022 15:15 UTC](https://discourse.nodered.org/t/receiving-object-with-too-many-levels-and-save-it-to-a-new-object-structure/63687 "2022-06-09T15:15:42Z")

</div>

Hello Node-Red-Community, I have some difficulties to make a solution for the following topics: Make a new JS object with names and values for each line (combined with the header object) I get objects from a machine. …

---

## [How to pack examples under \`Import \> Examples \> flows\` UI when building custom node-RED Docker Containers?](https://discourse.nodered.org/t/how-to-pack-examples-under-import-examples-flows-ui-when-building-custom-node-red-docker-containers/63689)

<div class="topic-metadata">

**Author:** [@Shan](https://discourse.nodered.org/u/Shan)\
**Replies:** 2\
**Last updated:** [9 June 2022 16:26 UTC](https://discourse.nodered.org/t/how-to-pack-examples-under-import-examples-flows-ui-when-building-custom-node-red-docker-containers/63689 "2022-06-09T16:26:15Z")

</div>

I have the following package.json file { "name": "node-red-contrib-personal", "version": "1.0.0", "description": "Node-RED package developed by me", "dependencies": { "node-red": "\>=2.2.0", …

---

## [Deleted Cred Fields When Next Deploys for Subflow Module](https://discourse.nodered.org/t/deleted-cred-fields-when-next-deploys-for-subflow-module/63657)

<div class="topic-metadata">

**Author:** [@buglss](https://discourse.nodered.org/u/buglss)\
**Replies:** 2\
**Last updated:** [9 June 2022 15:18 UTC](https://discourse.nodered.org/t/deleted-cred-fields-when-next-deploys-for-subflow-module/63657 "2022-06-09T15:18:45Z")

</div>

I am using credential fields in Subflow Module node. It works when I fill in these fields and deploy for the first time. When I do a different operation and deploy later, these credential values are deleted. Deletion is …

---

## [Is it possible to import an external script in templates?](https://discourse.nodered.org/t/is-it-possible-to-import-an-external-script-in-templates/63684)

<div class="topic-metadata">

**Author:** [@HuOliveiraWork](https://discourse.nodered.org/u/HuOliveiraWork)\
**Replies:** 2\
**Last updated:** [9 June 2022 15:11 UTC](https://discourse.nodered.org/t/is-it-possible-to-import-an-external-script-in-templates/63684 "2022-06-09T15:11:02Z")

</div>

I'm trying to import an external graphic into my node-red project, but without success, because the script I'm trying to import is not loading. This is my script: \<!DOCTYPE html\> \<html\> \<script src="https://cdn.plot.ly…

---

## [Trouble creating a csv file with headers](https://discourse.nodered.org/t/trouble-creating-a-csv-file-with-headers/63666)

<div class="topic-metadata">

**Author:** [@milner236](https://discourse.nodered.org/u/milner236)\
**Replies:** 1\
**Last updated:** [9 June 2022 14:57 UTC](https://discourse.nodered.org/t/trouble-creating-a-csv-file-with-headers/63666 "2022-06-09T14:57:11Z")

</div>

Hello all, I've been trying to create a process that creates a csv file out of all the payloads he receives in a flow. The payload is received from an excel file that is being put inside a watch node. I then split the …

---

## [How to connect FT4222](https://discourse.nodered.org/t/how-to-connect-ft4222/63665)

<div class="topic-metadata">

**Author:** [@saurabh](https://discourse.nodered.org/u/saurabh)\
**Replies:** 2\
**Last updated:** [9 June 2022 15:02 UTC](https://discourse.nodered.org/t/how-to-connect-ft4222/63665 "2022-06-09T15:02:01Z")

</div>

Dear Developers, I am compltely new to node-red and want to read data from FT222H (USB2.0 to Quad-SPI device controller) using node-red. Can you please suggest me what is right way to do it. thanks !!

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

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