Okay, thanks to @strawberry-3-141 expert advice, I have it up and running. The code he gave me is good, the JSON file I am loading from is not. We’ve got it sorted out and now I’m loading a compliment array from a file. Woohoo!
I’d play with this if I had time…
From there go to:
@bhepler said in trouble with config file:
Just a suggestion: Try replacing that location id of locationID: '23' with locationID: '2173741'.
that fixed it for me thanks. i guess using the map to get the ID for my location wasn’t the right ID.
Thank you everyone for your help my config file is the way i want it and it runs without any errors.
Just doing a search for that error it looks like it is probably a problem with your .git/index. You should be able to fix the “bad index” issue by running:
rm -rf .git/index
You may want to make a backup of your config.js file just in case it does anything weird. I’m not sure if that will solve your module problem. It should allow you to pull the latest MagicMirror version though.
today I tried to use this module but, when I start the magic mirror, it throws a lot of exceptions. I attached the file with the exceptions.
What happen? How can I solve it?
@deadherring Did I correct understand your post? My posted code didn´t work? I take it yeasterday,too And it work fine. I used a Raspi 3 whit Jessi and Pixeld Desktop, too. Now that iteressing to find out, for me, why works it correctly here and at your mirror not.
Thanks for your help strawberry pi.
I was having additional issues with the code finding the img.
In case this helps someone else, this is what I ended up with:
text: "<img src="./config/White.png" />"
@kasy, we need more information here. What hardware are you running on, be specific. What have you done to install MM. What have you done that gives you that message? We aren’t all Gods here … like @MichMich …