@Dimasua there is a bug in GoogleMapsTraffic
I have an updated version that seems to work, and have submitted to the author, but they have not taken the fix.
@Dimasua there is a bug in GoogleMapsTraffic
I have an updated version that seems to work, and have submitted to the author, but they have not taken the fix.
@ines in the update MM uses an upgraded version of the browser that implements a new restriction, user must interact with screen before play is allowed…
fix is to edit the MagicMirror/js/electron.js file and insert the line marked below (approx line 20)
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow;
function createWindow() {
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required'); //< -------- added
var electronOptionsDefaults = {
then close and restart mm
i see there is a proposed fix in the next update (July)
@spblat if the module has a node_helper.js, you need to restart MM for any changes to take place
@humdinger44 here u go
https://github.com/sdetweil/MyCovid19
two charts… cumulative cases and cumulative deaths, currently can display only 1 chart at a time
US is about 7 weeks behind China, Italy about 5 weeks behind
@Uwe-Kretsen do not install under mingw, just open a command prompt/ powershell prompt and do the git clone/npm install
u need git of course and node/npm (google how to install)
then u need to do some more steps as the setup is for linux
cd MagicMirror
cd vendor
npm install
cd ..
cd fonts
npm install
cd ..
then edit package.json and change the start line
from
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
to
"start": "node_modules/.bin/electron js/electron.js",
then npm start works as expected
also, you must manually copy the MagicMirror/config/config.js.sample to the initial config.js
also create the empty MagicMirror/css/custom.css
@branchi so, you got a missing , or quote "
Do
npm run config:check
Errors are usually reported on the line after the problem
@Envynot sounds like you are running on windows…
.
two extra steps
cd MagicMirror
cd vendor
npm install
cd ..
cd fonts
npm install
cd ..
now u can start mm again
@art212 see the two links in my signature
@wenike deprecated doesn’t mean no longer works… just means you “shouldn’t use it for NEW development”
SO, if its not loaded, YOU can still load it…
npm install valid-url
in whatever module needs it