• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. samydp
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
S
Offline
  • Profile
  • Following 0
  • Followers 3
  • Topics 4
  • Posts 33
  • Groups 0

samydp

@samydp

2
Reputation
1.6k
Profile views
33
Posts
3
Followers
0
Following
Joined May 23, 2016, 9:19 AM
Last Online Nov 18, 2016, 6:42 PM

samydp Unfollow Follow

Best posts made by samydp

  • RE: Email

    perfekt it works !!
    but I’d love that is hidden, the email address and the mail before each a symbol appears is that possible?

    posted in Productivity
    S
    samydp
    Oct 3, 2016, 8:16 AM
  • RE: MMM-PIR-Sensor - White Screen

    Thank you it works fine !!

    posted in Troubleshooting
    S
    samydp
    Oct 5, 2016, 9:21 AM

Latest posts made by samydp

  • defecault symbol in module

    hello,
    I have a question
    i wont to you insert a symbol in front of the email?
    or ja sybol for a to do list

    so i have think tis symbol

    0_1476016220261_Unbenannt.JPG

    thank you

    posted in Troubleshooting
    S
    samydp
    Oct 9, 2016, 12:31 PM
  • RE: MMM-PIR-Sensor - White Screen

    Thank you it works fine !!

    posted in Troubleshooting
    S
    samydp
    Oct 5, 2016, 9:21 AM
  • RE: Email

    hello, thank you to help me by the email module !!
    but I have a question
    you can insert a symbol in front of the email?

    so i have think tis symbol
    0_1475653582538_Unbenannt.JPG

    posted in Productivity
    S
    samydp
    Oct 5, 2016, 7:46 AM
  • RE: MMM-PIR-Sensor - White Screen

    you are the best !! i dont become no a with screen !

    but the sensor dont work

    i have
    vcc: Pin 2
    Data: Pin 7
    Ground: Pin 6

    and my config in the config and MMM-PIR-Sensor data is:

    }
    {
            		module: 'MMM-PIR-Sensor',
            		config: {
    			sensorPIN: 7,
    			relayPIN: false,
    			powerSaving: true,
    			relayOnState: 1,
                }
                },
    

    the sensetiv is max and the time is min


    Note from admin: Please use Markdown on code snippets for easier reading!

    posted in Troubleshooting
    S
    samydp
    Oct 4, 2016, 10:17 AM
  • RE: MMM-PIR-Sensor - White Screen

    yes but i dont have the folder node_modules in the PIR Folder :/ i have install WrinPi but nothing works :/

    posted in Troubleshooting
    S
    samydp
    Oct 4, 2016, 8:00 AM
  • RE: Email

    perfekt it works !!
    but I’d love that is hidden, the email address and the mail before each a symbol appears is that possible?

    posted in Productivity
    S
    samydp
    Oct 3, 2016, 8:16 AM
  • RE: Email

    thx, but dont have the line :/

    this is in the email.js file :

    defaults : {
        user: 'a@b.com',
        password: 'xxx',
        host: 'jjj.kkk.com',
        port: 993,
        tls: true,
        authTimeout: 10000,
        numberOfEmails: 5,
        fade: true
    },
    payload: [],
    
    start : function(){
        console.log("Email module started!");
        this.sendSocketNotification('LISTEN_EMAIL',{config: this.config, payload: this.payload, loaded: this.loaded});
        this.loaded = false;
    },
    
    socketNotificationReceived: function(notification, payload){
        if (notification === 'EMAIL_RESPONSE'){
            if(payload){
                this.loaded = true;
                var that = this;
                console.log("NEW PAYLOAD: ", payload);
                payload.forEach(function(m){
                    if(that.payload.indexOf(m.id) == -1)
                        that.payload.push(m);
                });
    
                this.payload.sort(function(a,b) {return b.id - a.id; });
    
                this.sendSocketNotification('LISTEN_EMAIL',{config: this.config, payload: this.payload, loaded: this.loaded});
                this.updateDom(2000);
            }
        }
    },
    
    // Define required scripts.
    getStyles: function() {
        return ["email.css", "font-awesome.css"];
    },
    
    getDom: function(){
        var wrapper = document.createElement("table");
        wrapper.className = "small";
        var that =this;
        if(this.payload.length > 0)
        {
            var count = 0;
            this.payload.slice(0,this.config.numberOfEmails).forEach(function (mailObj) {
    
                var name = mailObj.sender[0].name.replace(/['"]+/g,"");
                var subject = mailObj.subject.replace(/[\['"\]]+/g,"");
    
                var emailWrapper = document.createElement("tr");
                emailWrapper.className = "normal";
    
                var senderWrapper = document.createElement("tr");
                senderWrapper.className = "normal";
    
                var nameWrapper = document.createElement("td");
                nameWrapper.className = "bright";
                nameWrapper.innerHTML = name;
                senderWrapper.appendChild(nameWrapper);
                var addressWrapper = document.createElement("td");
                addressWrapper.className = "address xsmall thin dimmed";
                addressWrapper.innerHTML = mailObj.sender[0].address;
                senderWrapper.appendChild(addressWrapper);
                emailWrapper.appendChild(senderWrapper);
    
                var subjectWrapper = document.createElement("tr");
                subjectWrapper.className = "light";
                subjectWrapper.innerHTML = subject;
                emailWrapper.appendChild(subjectWrapper);
    
                wrapper.appendChild(emailWrapper);
    
                // Create fade effect.
                if (that.config.fade) {
                    var startingPoint = that.payload.slice(0,that.config.numberOfEmails).length * 0.25;
                    var steps = that.payload.slice(0,that.config.numberOfEmails).length - startingPoint;
                    if (count >= startingPoint) {
                        var currentStep = count - startingPoint;
                        emailWrapper.style.opacity = 1 - (1 / steps * currentStep);
                    }
                }
                count++;
            });
        }
        else{
            wrapper.innerHTML = (this.loaded) ? "No new mails" : this.translate("LOADING");
            wrapper.className = "small dimmed";
            return wrapper;
        }
    
        return wrapper;
    }
    

    });

    posted in Productivity
    S
    samydp
    Oct 2, 2016, 10:19 AM
  • RE: Email

    Hello,
    you can adjust the size of the email?
    at too long email that goes module over the entire screen

    posted in Productivity
    S
    samydp
    Oct 1, 2016, 11:05 AM
  • RE: Wunderlist acess token

    yes right !

    posted in Troubleshooting
    S
    samydp
    Sep 29, 2016, 6:56 PM
  • RE: Wunderlist acess token

    yes i want to have the boxes under ’ Einkaufliste’

    http://blog.thomas-bachmann.com/img/blog/magic-mirror-with-gestures-left.jpg

    posted in Troubleshooting
    S
    samydp
    Sep 24, 2016, 3:38 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy