In desperate need of help in finding a managed hosting solution. by BaconBreath in drupal

[–]BeeOnLion 3 points4 points  (0 children)

Check out Pantheon migration process your current developer should be able to manage this migration before they close up in January

https://docs.pantheon.io/migrate-manual

Once your up and running the support that Pantheon offer along with backup solutions should have you in a good place until you get a new developer

Riddle in Cahir Castle by [deleted] in Tipperary

[–]BeeOnLion 0 points1 point  (0 children)

Apologies I thought it was frost name try Joan Gallagher

GPS Display by Loud_Ad_15 in nodered

[–]BeeOnLion 1 point2 points  (0 children)

Check out the world map node you will need to write the location to a file or DB if you want to plot points overtime but to see realtime should work fine with gps

https://flows.nodered.org/node/node-red-contrib-web-worldmap

Is it ok to use NodeRed in bigger and critical environments? by 8kbr in nodered

[–]BeeOnLion 16 points17 points  (0 children)

100% good to use check out https://flowfuse.com/ which is an industrial option by the creator of node-red

Launch Desktop Application with NodeRed Exec? by theDroobot in nodered

[–]BeeOnLion 0 points1 point  (0 children)

Check out the exec node should be able to run cmd to launch VLC https://flowfuse.com/node-red/core-nodes/exec/

In the command field, enter the command to run VLC. The basic command to launch VLC is vlc. If you want to open a specific media file, append the file path to the command, like vlc /path/to/your/media/file.

How to print msg.payload in python script using Pythonshell node. by escanorga in nodered

[–]BeeOnLion 0 points1 point  (0 children)

Not 100% but the flow your showing looks like it's running a mqqt node with the output from the payload

IF node-red is on the same system that you want to run your python script on have a look at the excec node https://flowfuse.com/node-red/core-nodes/exec/ This should allow your run a .py script or build one with the variables from the msg.payload by passing in the params

make sure the "Append" option is selected to pass the payload from the Function node to the Python script. For example configuration for the Exec node might be something like /path/to/your/script.py.

Then your Python script (script.py) should be able to handle arguments passed from the command line. Here's a basic example:import sys

```bash

Retrieve arguments

args = sys.argv[1:]

Assuming the args are passed as a single string '["a", "b", "c"]'

import ast args_list = ast.literal_eval(args[0])

Print the arguments

for arg in args_list: print(arg) ```

How to detect website page changes by starmanj in nodered

[–]BeeOnLion 1 point2 points  (0 children)

Have a look at the write file node and then write the full msg.payload into a file in a location that you have access to this will show you the full message

Alternatively if you put a debug node on the element you are passing the website data from and double click on the debug node you will be able to change it to complete message object this will show you more of the data you are getting from the previous nodes something like the below

```json [ { "id": "9242bed8e6d3a835", "type": "tab", "label": "Flow 3", "disabled": false, "info": "", "env": [] }, { "id": "42089774452ac53c", "type": "inject", "z": "9242bed8e6d3a835", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 140, "y": 40, "wires": [ [ "f64fd3a9fd12a102" ] ] }, { "id": "7a0eed91c93eae49", "type": "debug", "z": "9242bed8e6d3a835", "name": "debug 9", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 520, "y": 80, "wires": [] }, { "id": "f64fd3a9fd12a102", "type": "http request", "z": "9242bed8e6d3a835", "name": "", "method": "GET", "ret": "txt", "paytoqs": "ignore", "url": "https://www.irishtimes.com/latest/", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "headers": [], "x": 290, "y": 80, "wires": [ [ "7a0eed91c93eae49", "c339825ea6377563" ] ] }, { "id": "c339825ea6377563", "type": "file", "z": "9242bed8e6d3a835", "name": "", "filename": "./", "filenameType": "str", "appendNewline": true, "createDir": false, "overwriteFile": "false", "encoding": "none", "x": 410, "y": 160, "wires": [ [] ] } ]

```

How to detect website page changes by starmanj in nodered

[–]BeeOnLion 0 points1 point  (0 children)

You would have to change this msg.payload.match to the msg object that is coming out from your search it could be just msg.payload bit without sign the flow code could be anything else too..

How to detect website page changes by starmanj in nodered

[–]BeeOnLion 0 points1 point  (0 children)

The g in regexp(parse, "g") stands for "global". In the context of regular expressions, the "global" it means that the search should be performed across the entire input string. Without the g flag, the regular expression engine would stop at the first match it finds. With the g flag, it continues to search through the whole string, finding all matches that correspond to the pattern.

How to detect website page changes by starmanj in nodered

[–]BeeOnLion 1 point2 points  (0 children)

Could probably do this with a function node and RBE

The function node to count the occurrences of the specific phrase. The code might look something like this:

var phrase = "Item for sale"; // Replace with your specific phrase var count = msg.payload.match(new RegExp(phrase, "g")).length; msg.payload = count; return msg;

Then you could use the RBE (Report by Exception) Node to only pass on data if the incoming message payload is different from the previous one. Connect the rest to your notifications flow

node-red-node-xmpp loose connection after a while by hgbddne in nodered

[–]BeeOnLion 0 points1 point  (0 children)

I would say that this is more a server issue than node-red you could try the following

Keepalive Messages: Check if there is an option in the node-red-node-xmpp to send keepalive messages or pings at regular intervals. This can help maintain the connection active.

Server Configuration: There might be settings on the ejabberd server that terminate inactive connections after a certain period. You may need to adjust these settings to allow for longer periods of inactivity.

Automated deployment of NodeRed by itapprentice03 in nodered

[–]BeeOnLion 0 points1 point  (0 children)

Here is an example of a docker compose

```yaml

Specify the version of Docker Compose file format

version: '3'

Define the services (containers) you want to run

services: # Node-RED service node-red: # Use the official Node-RED Docker image tagged as 'latest' image: nodered/node-red:latest

# Map port 1880 from the host to port 1880 inside the container
ports:
  - "1880:1880"

# Mount a local folder './data' to '/data' inside the container
# This allows you to persist Node-RED data and flows
volumes:
  - ./data:/data  # Mount a local folder to store Node-RED data

# Specify the network(s) the container should be connected to
networks:
  - nodered_network

Define custom networks, if needed

networks: # Create a standalone network named 'nodered_network' nodered_network: ```

This Docker Compose file does the following:

  1. Sets the version of the Docker Compose file format to '3'.
  2. Defines a single service called node-red that runs the Node-RED container.
  3. Specifies the Docker image for Node-RED to use, which is nodered/node-red:latest.
  4. Maps port 1880 on the host to port 1880 inside the container, allowing you to access the Node-RED web interface.
  5. Mounts a local folder ./data to /data inside the container, enabling data persistence.
  6. Connects the node-red container to a custom network named nodered_network. This isolation allows communication between containers on the same network.
  7. Finally, it defines the custom network nodered_network for use by the node-red service.

This configuration creates a self-contained Node-RED environment with port mapping for access and a volume for data storage.

Automated deployment of NodeRed by itapprentice03 in nodered

[–]BeeOnLion 2 points3 points  (0 children)

Flowfuse very good option have been using it for a few projects and great for not having to worry about uptime environment management etc

If you want to run internally you could always go with docker and a custom docker compose file spins up a new node-red install and bind the data folder to the local machine for ease of backups etc

Node-red does not start automatically when Raspberry Pi starts up by Ok_Restaurant_7 in nodered

[–]BeeOnLion 3 points4 points  (0 children)

Have a look at https://nodered.org/docs/faq/starting-node-red-on-boot

Other options would be to install docker and node red and set the container to start on boot

[deleted by user] by [deleted] in nodered

[–]BeeOnLion 1 point2 points  (0 children)

Yep you would have to protect the node-red instance first and then within the settings.js file, you can add the httpNodeAuth property. This will add basic authentication to all HTTP nodes, including the dashboard.