What is the best remedy for running the script automatically at boot time? >Should the rc.local entry have a "&" on the end so it runs in the
background? Is it a problem with the script expecting to run in a Terminal >window that continues to have stdout?
However the web interface that the app presents (for displaying graphs of electricity usage) fails to locate smart plug devices.
Starting the script manually works fine:
(start a Terminal window)
sudo /home/pi/tplink/tplink-energy-monitor/tplink-start.sh &
What is the best remedy for running the script automatically at boot time? Should the rc.local entry have a "&" on the end so it runs in the
background?
Is it a problem with the script expecting to run in a Terminal
window that continues to have stdout?
NY <me@privacy.invalid> wrote:
However the web interface that the app presents (for displaying graphs of
electricity usage) fails to locate smart plug devices.
Starting the script manually works fine:
(start a Terminal window)
sudo /home/pi/tplink/tplink-energy-monitor/tplink-start.sh &
Does it work if you start it as the root user instead of using
sudo? When you use sudo, environment variables such as $HOME remain
set to the value for the user who runs the sudo command. If you
"sudo su" and then run the command, that is the same environment
where rc.local will start the script, where $HOME will be "/root".
What is the best remedy for running the script automatically at boot time? >> Should the rc.local entry have a "&" on the end so it runs in the
background?
No, because tplink-start.sh appears to background the main task
itself.
Is it a problem with the script expecting to run in a Terminal
window that continues to have stdout?
Maybe, I don't know anything about Node JS. The fact that looking
up "npm" finds descriptions of it as a package manager confuses me
already.
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 14 |
Nodes: | 6 (0 / 6) |
Uptime: | 231:06:58 |
Calls: | 55 |
Calls today: | 1 |
Files: | 50,127 |
D/L today: |
29 files (3,538K bytes) |
Messages: | 275,355 |