Comments (5)
Hmm. Curious. Could you please send me the portion of your config.js
for MMM-Selfieshot? I want to try and duplicate your issue.
from mmm-selfieshot.
Yeah I found something. I'm on it.
from mmm-selfieshot.
It's entirely possible that you're attempting to trigger the selfie before the MagicMirror has finished laying out all of the modules. Looking at the code, that line is trying to find the DIV object with the SELFIE id value and it's coming up zilch.
The solution here is to delay your notification until after your module receives the DOM_OBJECTS_CREATED notification. Additionally, I'll put in some checks to make sure that it errors gracefully if it receives a notification too early.
Also, I found an error where if you include a location for the module but don't tell it to put the touch button in place, it crashes. Thanks for pointing me at that general area. Now I have to go fix that.
from mmm-selfieshot.
Example code:
notificationReceived: function(noti, payload, sender) {
if (noti == "DOM_OBJECTS_CREATED") {
this.sendNotification("SELFIE_SHOOT",
{
option: {
shootCountdown: 1,
displayResult: false,
playShutter: false,
displayCountdown: false,
}
}
);
}
}
from mmm-selfieshot.
If you're still having problems, feel free to reopen the issue.
from mmm-selfieshot.
Related Issues (20)
- Selfie_SHOOT HOT 6
- Flash Screen HOT 1
- dark image HOT 1
- Email not sending HOT 2
- How to rotate preview HOT 7
- auto upload using MMM-GooglePhotos HOT 1
- Camera resolution HOT 3
- Pi Cam HOT 8
- More options HOT 7
- View the taken Selfie HOT 1
- voice activated capturing HOT 2
- Flip image result and preview horizontally HOT 1
- fswebcam with Raspberry pi camera module v3 HOT 6
- hi... when use "raspistill -o image.jpg" i see this "the system should be configured for the legacy camera stack" HOT 2
- No image display HOT 8
- Toast make image HOT 4
- Show webcam feed HOT 3
- Image quality too dark
- DSLR integration with gPhoto2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmm-selfieshot.