mochman / MMM-Swipe

Use two HC-SR04 sensors to detect hand "swipe" movement.
45 stars 11 forks source link

Error: unknown hardware: "BCM2835" #7

Open sephiran opened 6 years ago

sephiran commented 6 years ago

Getting the Error: unknown hardware: "BCM2835" after trying to start MagicMirror after successful installation of MMM-Swipe. Seems like it has something to do with the mmm-usonic package. There's also an open issue at https://github.com/mochman/mmm-usonic/issues/3 about the same problem. Tried the suggested quick-fix of replacing "mmm-usonic": "latest". Didn't help. Is someone facing the same issue?

normyx commented 6 years ago

Yes, I got the same issue.....

boGribbles commented 6 years ago

I had the same issue. I ended up manually modifying /MMM-Swipte/node_modules/mmm-usonic/lib/usonic.js to modify line 31 to read:

} else if (hardware === 'BCM2709' || hardware === 'BCM2835') {

I did a similar thing in mmm-gpio.

Hope this helps.