Receiving Push Messages

Hello, new here but not to Pro. I've loved the experience so far. I was wondering if there was a way to get the plain text from Informer?
I've been working on some automation structures but the work around has been annoying.
Wondering if I can change an XML or other config to send the notification to my windows computer without emulating an android.
I'm running 3 Pi's with Server Pro and 2 printers per Server.
I'd love some help or info to help me with my project, Thank you for your time!

Comments

  • edited November 2019
    <Mail Setup Raspberry Pi>

    sudo apt-get install ssmtp mailutils
    {See App Password on Google after Setting up 2FA and allow less secure apps}
    sudo nano /etc/ssmtp/ssmtp.conf

    "mailhub=smtp.gmail.com:587"

    #Add these to .conf
    AuthUser=youraddress@gmail.com
    AuthPass=AppPassword
    UseSTARTTLS=YES
    USETLS=YES
    //
    nano EmailScript.py

    import smtplib

    smtpUser='youraddress@gmail.com'
    smtpPass='AppPassword'

    toAdd='youraddressorwhereever@gmail.com'
    fromAdd='smtpUser'

    subject='Printer Update'
    header='To: ' + toAdd + '\n' + 'From: ' + fromAdd + '\n' + 'Subject: ' + subject
    body='Printer Completed'

    print header + '\n' + body

    s=smtplib.SMTP('smtp.gmail.com',587)

    s.starttls()

    s.login (smtpUser, smtpPass)

    //
    sudo nano /var/lib/Repetier-Server/database/extcommands.xml

     
    <config>
            <execute name = "emailjob" allowParams = "true" >/usr/bin/python /home/pi/EmailScript.py </execute>
    </config>

    //
    #End G-Code
    @execute emailjob
Sign In or Register to comment.