@Vizulize said in MMM-Fitbit2:
Resting heart rate (progress is always 100% as there is no goal)
you can let us set a goal in config.
@Vizulize said in MMM-Fitbit2:
Resting heart rate (progress is always 100% as there is no goal)
you can let us set a goal in config.
@wagon40 to install MM again, you will need to rename the current folder out of the way
do this
cd ~
mv MagicMirror MagicMirror.save
@mastadook ok, you are starting in the wrong place with the wrong script…
in folder
/home/pi
start this
/home/pi/MagicMirror
use my pm2 fixup script…
do this
pm2 delete 0
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
@NathTheDude if they are two independent desktops, then you should have a menu on the second desktop, just like the first…
also, you can move the mouse to the second desktop and do ctrl-alt-t to open a terminal there
I have an micro hdmi adapter coming later today so I can put up a second physical display on my pi4…
@NathTheDude said in Rpi 4 and two monitors:
When I update ‘Display’ to 1 I still get an error
Yes, we just need to find out what the other Display number is.
tvservice is wrong cause it reports display 2 for HDMI 0, and we know it’s really Display 0
@NathTheDude run-start.sh is in the MagicMirror folder
actually the pm2 only on the 1st screen is understandable
as the script used by pm2 is installers/mm.sh
which does
DISPLAY=:0 npm start
and run-start does
# if DISPLAY is not set then set it
if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
export DISPLAY=:0 # Set by default display
fi
so I would just set export DISPLAY=:0
and the execute run-start.sh
@bhepler that is run-start.sh
~/MagicMirror/package.json
{
"name": "magicmirror",
"version": "2.10.1",
"description": "The open source modular smart mirror platform.",
"main": "js/electron.js",
"scripts": {
"start": "./run-start.sh", // < ------ when u do npm start this happens
@NathTheDude said in Rpi 4 and two monitors:
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/pi/package.json
npm ERR! errno -2
you are doing npm start in the root, not in the MagicMirror folder…
@NathTheDude MagicMirror startup in the run-start.sh file sets DISPLAY=:0 for the primary display
I would guess that the second display is :1
so, do
export DISPLAY=:1
then npm start
see if it comes up on the second display