Hi guys,
I’m pretty new to the raspberry pi scene as well as the MM scene. I’ve successfully installed the MM and a touch screen module for whenever I eventually get a screen that has touch screen. In the meantime though, I am trying to install a cursor module and I’m running into some trouble.
I’m using this code:
https://github.com/uxigene/MMM-Cursor
In the terminal, everything works fine and dandy but when I paste:
modules: [
{
module: 'MMM-Cursor',
config: {
// See 'Configuration options' for more information.
}
}
]
into my config.js file, I’m running into an error that reads in my terminal:
nateb827@raspberrypi:~/MagicMirror $ npm run config:check
> magicmirror@2.20.0 config:check
> node js/check_config.js
[INFO] Checking file... /home/nateb827/MagicMirror/config/config.js [ERROR] Your configuration file contains syntax errors :(
[ERROR] Line 115 column 1: Parsing error: Unexpected token modules
and here is the code, directly copied and pasted from the site into my config.js file
(the first line is 115, “modules: [”)
modules: [
{
module: 'MMM-Cursor',
config: {
// See 'Configuration options' for more information.
}
}
]
]
};
I’ve tried deleting the “modules” and the brackets surrounding so it just has the “module”, and not “modules” like my other module but to no avail. I’ve tried putting it outside of my main magic mirror code and it runs with no syntax but no cursor either. I’ve been stuck on this for a few days now and I haven’t seen a lot on online surrounding this issue so any help would be greatly appreciated.