How is your experience on 24/7 operation?

I've had a Pi 4 and two Pi Zero W's (headless) running 24/7 for 3-4ish years now with near 100% uptime (power outages and updates). I also run instances intermittently as needed on a Windows 10 machine as well as WSL2 and Docker with little-some issues but nothing major (usually hiccups due to my setup). For awhile I also ran Node-RED on a jailbroken iPhone X, but this was quite experimental and I do not recommend it for beginners-intermediates.

is it possible to access all the sensors[1] via Node-RED on the iPhone?

[1]: From here, iPhone X has:

Three axis gyroscope
Accelerometer
Barometer
Proximity sensor
Ambient light sensor
Facial recognition sensors
Gps

@gregorius No I don't think so, it was very restricted in what was accessible (likely due to me running it through an existing app and how iOS sandboxes apps, or outdated node version of said app) and which nodes would work correctly. However, I suspect that if I had instead managed to successfully install a more updated version of "Node.js" natively in the Terminal, then perhaps it would be less restrictive. Being that I was jailbroken at the time, I'm sure it could be pulled off, just would require far more work/coding than I was willing to put in at the time.

1 Like

If you can install a page as an iPhone app, you should be able to get access in the browser and send info back to Node-RED.

This is all front-end programming of course.

Sensor readings may not be taken unless the user grants permission to a specific sensor type using the Permissions API and/or if access is not blocked by the server Permissions-Policy.

Uh oh! :frowning:

Not supported by Safari or Firefox.

OK, couple of test pages to open on your mobile:

https://sensor-js.xyz/demo.html

https://www.omiod.com/iphone/

THis page might also be useful:

1 Like

I'm-too-lazy-to-be-bothered Driven Development - LDD :wink:

Or "doing just enough to get it working Driven Development" ...

Sorry for going OT!

One 'popular' way for RPi Pico or Pico W is to use Thonny editor/debugger on Windows/Mac/Linux and Micro Python.

Micro Python is loaded once into the Pico. Then, user programs can be written using Thonny.

I have not used the C SDK for Pico

I'm using homebridge to make my sensors visible/controllable in Apple Home :wink:

works great :slight_smile:

Me too, and if you use the shortcuts app on iOS you can use Siri for voice control of your automations. A simple method I use is just creating a shortcut that makes a GET request to Node-RED http-in node to trigger something.

I use this too, including custom ad-hoc commands, in the shortcuts you can use dictation to capture any word and pass that through the http-in and use a switch node to execute flows based on the input. At one point I tried the redbot chatbot node that has NLP.js integration, then you can use 'intents' and utterances, ie. multiple ways to say things.

New to Node-RED. How is your experience on stability and reliability for running it 24/7?

100% solid. Most stable software I have used, ever. If crashes occur, it was my own fault.

1 Like