I'm no Linux expert unfortunately but hoping someone out there can help. I have a Raspberry Pi running Jessie with a screen HAT attached. This shows the console after boot sitting there at the logon prompt and I can log in and run node-red, which then shows node-red console data streaming by. I want to set it up so that it gets to that state after starting up with no user input i.e. no login required.
node-red is sending data to the console via debug nodes and it's that data I want to display after power up with no user intervention.
I'd imagine I have to set it to login automatically to the user that node-red is running under (pi) but I have followed instructions to do that and the screen basically doesn't actually log in.
Thank you!
use these -
For version 0.12.5 of Node-RED and later:
sudo systemctl enable nodered.service
For version 0.12.1 of Node-RED - SD card Jessie Nov 2015:
sudo update-rc.d nodered defaults
just copy/paste the suitable command for your system.
hope it helps !
Related
I have a plan to develop Flutter Desktop & mobile App.
My demand is ‘How to control desktop's power supply.’
For instance, when I press the application's button
the desktop turns off/on, or goes to sleep mode.
Is there any APIs on the Flutter Desktop satisfying me? Plz help me.
I think you can achieve this result by using the flutter Process class.
Basically what you want to do is run a command based on the users platform to shutdown or sleep the user's desktop. for an example if you run following command in your windows cmd it will shutdown your pc.
shutdown -s
and in linux you can use following command to shutdown the desktop
sudo shutdown -n now
in theory running the particular commands based the platform from dart process class you can turn off a pc of the user.
for an example to shutdown a windows pc you can use Process.run as following
print("Shutting Down!");
var cleanProcess = await Process.run('shutdown', ["-s"]);
Please refer following documentation for more information
Flutter Process Class
Linux shutdown commands
Windows shutdown commands
I installed this module and have the corresponding RaspberryPi HAT(Waveshare Rpi 35A) attached to my Raspberry Pi.
After running modprobe ili9486 in the terminal:
In /sys/module, I see the device.
In /dev/ and /dev/spi/, I don't see anything with ili9486 in it's name.
How do I send a command to the device?
In specific how do I send the command to ili9486_probe, which will in turn, send the command to waveshare_command? My goal is to get the command to reach waveshare_command?
I didn't install the dtoverlay on the Waveshare github because I do not want touch screen features. I just want to write to the screen.
I'm not able to enable the Raspberry Pi's VNC capture mode from the command line.
ExperimentalRaspiCapture mode allows you to remotely view videos running.
If not enabled, you cannot watch videos. As my application has disabled the raspbian graphical mode, I only have operations from the command line and I do not have access to the internet on them, only local network.
I did tests on an alternative raspberry and in graphical mode I enabled this option according to the tutorial on page vncserver experimental direct capture mode missing and it worked for me, but I have several raspberries and enabling it by command line is my best option at the moment, but I can't enable it.
I already tried the tutorial on the page:
How do I get VNC access to Kano OS working correctly?
But it did not work.
Any idea? Has anyone managed to do this?
Thanks.
Use vnc version: VNC (R) Server 6.2.1 (r32538) ARMv6
I use the raspberry:
*Linux raspberrypi 4.14.34-v7 *
I found the problem. I wasn't doing it right. I have to change the file in the root user and then restart the serviced. ;)
Edit the config file '/root/.vnc/config.d/vncserver-x11'
adding the following:
CaptureTech=raspi
ExperimentalRaspiCapture=1
ServerPreferredEncoding=JPEG
and then restarted:
sudo systemctl restart vncserver-x11-serviced
Background: NOC (Network Operation Center) TVs have raspberry pi with raspbian connected.
Issue: Website will not login automatically.
Goal: Raspberry pi boot, open chromium, open website, credentials inserted automatically, and Login.
I was able to resolve the majority of the issues except for the website auto-login.
config/lxsession/LXDE-pi/autostart
#/usr/bin/chromium-browser --incognito --start-maximized --kiosk https://solarwinds.com
#unclutter
#xset s off
#xset s noblank
#xset -dpms
This issue isn't specifically to raspbian but that is the OS I'm needing the solution for.
A login Python script resolved this issue, selenium-IDE was able to record actions and make it a script. It was very handy.
Last week I got to know node-red (what a potential!), and after installing it on a Raspberry Pi B+ and following the basic tutorials, I'm experiencing some issues.
When I follow the Inject + Debug node example, wire them, and deploy them, I get the message "Deploy sucessfull". So far so good. I'm running it locally on http:// localhost:1880.
Then when I click the Inject node or the Debug node, it says: "Error: Inject node not deployed" or "Error: Debug node not deployed".
Anyone know how to fix this error? Is it a server problem?
Was having the same issues and discovered the flow that I was working on was disabled.
You can tell the flow is disabled when the lettering on its tab is in italic and there is a circle with a diagonal line through it ahead of the lettering.
Double click the flow tab and change "status" to "enabled".
Just tried something and it worked:
When you run node --max-old-space-size=128 red.js, the command line shows you "cannot find flows_raspberrypi.json"
So I
1) created a flow (as in the examples) 2) Exported it as
"flows_raspberrypi.json" 3) Stopped node-red 4) Started it again
Bingo! It picked this flow up, which then "sucessfully injected".
Now just create your own flows...
I was also getting same problem of :- Node-red Error: inject node not deployed.
When I have install dashboard on Node-Red which was not working, and started giving error when I hit inject node.
So I manually deleted the files (flows-raspberrypi.json, package.json, settings.js) and also folders (lib, node_modules) from the path /home/pi/.node-red
I used vnc-viewer to delete manually files & folders. Just login to vnc-Viewer and open the file manager and paste the path "/home/pi/.node-red" & delete all the files. Reboot the Raspberry-Pi and start Node-Red, it will function normally, even after installing dashboard it is working.
NOTE:It will delete all your flows and install nodes from Node-Red. So keep backup of your flows.