Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black Screen/No Modules shown after putting ArudPort in #5

Open
mihirjoshi-hub opened this issue Nov 26, 2020 · 1 comment
Open

Black Screen/No Modules shown after putting ArudPort in #5

mihirjoshi-hub opened this issue Nov 26, 2020 · 1 comment

Comments

@mihirjoshi-hub
Copy link

Background info

First of all! Thank you Dentrax for making such a cool module. I've set up the config file and I'm not getting the "Create a Config.js file" error. All I'm getting is a black screen. I ran python arudport.py and I can see the data is flowing but I don't understand why its just a black screen. All my other modules are also not working but when I comment out MMM-ArduPort from my config file everything works again.

Config.js file

modules: [
	{
          module: 'MMM-ArduPort',
          position: 'top_left',
         header: 'Arduino Sensors',
         config: {
            portname: "/dev/ttyUSB0",
            updateInterval: 1,
            animationSpeed: 1000,
            displayIcons: true,
            showDescription: true,
            hideLoading: false,
            hideWaiting: false,
            useColors: true,
            sensors: [
                		{
                    	name: "STATUS",
                    	description: "Is there a finger?",
                    	maxValue: 3,
                   	 	maxFormat: "({0}) THERE IS A FINGER (100% READY)",
                   		highestValue: 2,
              	      highestFormat: "({0}) THERE IS A FINGER (66% READY)",
                    	highValue: 1,
                    	highFormat: "({0}) THERE IS A FINGER (33% READY)",
                    	lowValue: 0,
                 	   lowFormat: "({0}) THERE IS NOT A FINGER",
                    	lowestValue: -1,
                    	lowestFormat: "({0}) Pressing too hard",
                    	minValue: -2,
                    	minFormat: "({0}) Pressing too hard"
                    },
                    {
                    	name: "CONFIDENCE",
                    	description: "Am I right?",
                    	maxValue: 100,
                   	 	maxFormat: "({0}) 100% Right",
                   		highestValue: 97,
              	      highestFormat: "({0}) 97% Right",
                    	highValue: 80,
                    	highFormat: "({0}) 80% Right",
                    	lowValue: 70,
                 	   lowFormat: "({0}) 70% Right",
                    	lowestValue: 60,
                    	lowestFormat: "({0}) 60% Right",
                    	minValue: 50,
                    	minFormat: "({0}) 50% Right"
                    },
        ]
     },
  },
]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}

Possible problem?

I did end up editing the arudino.py and arduport.py files because they were caught in an infinite loop of calling eachother and I did get a warning of a possible nested set in arduino.py. However, I highly doubt that it was a big issue

@mihirjoshi-hub
Copy link
Author

Oops! Totally forgot to add in the errors that happened when I ran npm start in the terminal. Take a look

code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/pi/MagicMirror/modules/MMM-ArduPort/node_helper.js',
'/home/pi/MagicMirror/js/app.js',
'/home/pi/MagicMirror/js/electron.js',
'/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant