Comments (7)
Hmm. Displaying the last photo taken shouldn't be a problem. There already is an email function that will send the photo along as soon as it is taken. I'm not sure what is gained by sending that photo again.
I'll look into adding a notification to display the last photo taken.
from mmm-selfieshot.
yes your module directly send by email. what I wanted to suggest is after displaying the photo result, open a popup that asks if they want to validate the photo => notification to sendmail or
Re take the photo again => shoot function.
from mmm-selfieshot.
La fin de votre module est if (showing) rd.classList.toggle("shown"); setTimeout(()=>{ if (showing) rd.classList.toggle("shown"); if (showing) con.classList.toggle("shown"); }, this.config.resultDuration);
Faire quelque chose comme :
if (showing) rd.classList.toggle("shown"); If ..{this.postLastPhoto(result); } setTimeout(()=>{ if (showing) rd.classList.toggle("shown"); if (showing) con.classList.toggle("shown"); }, this.config.resultDuration); postLastPhoto: function(result) {..
And this will open a window popup to chose what do you want.
from mmm-selfieshot.
Cela viendrai à la fin de votre module :
postLastPhoto : function () { var showing = true; var wrapper = document.createElement("div"); //wrapper.innerHTML = "Choose"; var icon = document.createElement('div'); icon1.id= "RETRY"; icon2.id= "PRINT"; icon1.style.backgroundImage = "url(/...)"; icon2.style.backgroundImage = "url(/...)"; icon1.classList.add("busy"); icon2.classList.add("busy"); icon1.onclick = (event)=> { event.sendsocketNotification(SELFIE_RETRY)); }; icon2.onclick = (event)=> { event.sendsocketNotification(SELFIE_PRINT); wrapper.appendChild(icon1); wrapper.appendChild(icon2); }; else wrapper.className = "" return wrapper } wrapper.appendChild(icon) } printPhoto : fonction () { sendMail: function(filepath) }
from mmm-selfieshot.
Et ajoutant ceci également :
socketNotificationReceived: function(noti, payload) { if (noti == "SHOOT_RESULT") { this.postShoot(payload); } if (noti == "WEB_REQUEST") { this.shoot(payload); } if (noti == "SELFIE_AFTER") { this.postLastPhoto(payload); } if (noti == "SELFIE_RETRY") { this.shoot(payload); } if (noti == "SELFIE_PRINT") { this.printPhoto(payload) },
from mmm-selfieshot.
Huh. Interesting work. If you roll that into a pull request, I can add it to the main branch.
from mmm-selfieshot.
Huh. Interesting work. If you roll that into a pull request, I can add it to the main branch.
I'm going to work on this most seriously, and I'm coming back to share my work with you. Thank you for your support.
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
- 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
- No display HOT 5
- 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.