amitchone / MMM-birthdays

A birthday reminder module for MichMich's MagicMirror
Apache License 2.0
11 stars 3 forks source link

birthdays.json not detected #15

Open zambonichief1721 opened 8 months ago

zambonichief1721 commented 8 months ago

Running into the evalerror in the get_birthdays function of node_helper.js when attempting to load the birthday.json file. Getting the error that it can't find config.birthdays or birthdays.json.

Checked the ${__dirname} value that is being set and it is the MagicMirror/modules/MMM-birthday folder and my birthdays.json file exists in that folder. I have quadruple checked to make sure the case is correct and my json is formatted properly, any thoughts?

amitchone commented 8 months ago

Hi Zamboni,

Could you provide the output of ls in the MMM-birthdays directory? I'll try to reproduce locally but any more info you could provide would be great

zambonichief1721 commented 8 months ago

Here is an ls -l output for the MMM-birthdays directory. Not much other info honestly. It's a vanilla install of MMM-birthdays.

rpi ls mmm-birthdays

cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

amitchone commented 8 months ago

Hmmm, not entirely sure what's going on here to be honest... Do you have any steps to reproduce, i.e., if you start a test install of MM? If you could give me a step-by-step I can try to recreate...

You could try running some shell commands from within node_helper.js and seeing if you could maybe grep the file and compare that name to birthdays.json? Could it be a weird character set issue?

This is an awkward issue for sure!