Hi People,
I'm not sure where to ask, so I leave it in here.
I have a Node-Red project (soon to be moved to FlowFuse) manages an API and getting some date through the API works as it should. I would need to build a mobile app that has some buttons that would trigger flows in my Node Red application.
For example, I turn on a relay by pushing a button on the Node Red dashboard. One of the funcions I'm looking for is to trigger the same flow that turns on this relay from a mobile app by pushing a button.
What would be the easyest way to do this?
On iOS I use the Shortcuts app by Apple to send GET requests (or POST depending on usage) to my Node-RED instances from the same local network to control my home automatons. It only requires the HTTP in node
and HTTP out node
from the core Node-Red palette to function. Then you can also use Siri with voice commands to trigger the shortcut/automation.
I'm sure there must be some Android equivalent to this but I couldn't tell you what it is.
Any dashboard built with FlowFuse Dashboard (Dashboard 2.0) can be installed natively to any mobile device: Installing Dashboards on Mobile | Node-RED Dashboard 2.0
Be sure to use the "Grid" layout option so everything auto-scales when on a mobile screen, and it'll just work.
So you could have your existing Dashboard (if built with Dashboard 2.0) just installed to your mobile phone.
Alternatively, if you want to have this as a standalone thing, without exposing other pieces of functionality from a Dashboard, when you're running on FlowFuse, you can use the Project Nodes. That allows you to easily communicate between two different instances (in this case your core, functional instance, and the second, an instance that's just your Dashboard button to trigger your flows)
Quick question on that, I'm on very old iOS version (to maintain a jailbreak) so I have no experience with PWA's.
When installed on mobile as a PWA if I don't have access to the network my Node-RED instance is on after installing the application, will it still function (using a single flow, that does not require input from anywhere but the dashboard, does serve static images though)?
It will cache local content, but if you've lost connection to wherever your source Node-RED flow runs, then there wouldn't be a way for your Dashboard to talk to it.
In the original post, it was mentioned that the instance would be running on FlowFuse, i.e. cloud-hosted, at which point, no need to worry about connection (as long as you're connected to the internet)
1 Like
Thanks, that's what I had figured. I'm approaching completion of a flow for a project I plan to package with Electron but figured it might be worth looking into PWA's instead, but for my needs it seems Electron might be the way to go as I intend to release on Steam.
Yep - Electron will suit better here. PWA's mostly just enable install via a browser, rather than install through native app stores.
wow, great thank i will check this out