Beiträge von streicher

    Außerdem ist leafpad bei dir scheinbar gar nicht installiert.


    sudo apt-get install leafpad


    oder du verwendest z.B. gleich nano:


    sudo leafpad /usr/local/etc/DoorPi/conf/doorpi.ini

    Ich denke über eine Visu (wie eben iobroker, Smarthome.py/Smartvisu, Edomi, ...) sollte sich das bewerkstelligen lassen.


    Wal: Kennst du auch Edomi? Ich kenne iobroker nicht so gut und Frage mich was der Unterscheid zu Edomi ist.

    Because the directory could be wrong, but looks good.
    However, give it a try if you use:


    Code
    10 = os_execute:/usr/local/etc/DoorPi/scripts/envoi_mail.sh

    And as pahenning already wrote. Maybe there is a problem with the user which want to execute the script.
    e.g. try first some simple things in the script like "/usr/bin/touch /tmp/mytestfile" and look if the mytestfile exists than you now the script was executed. This simple example should be possible from all users.

    Fritzbox habe ich nicht. Ich verwende Pfsense und plane den Umstieg auf OPNsense. Das kann wohl auch Asterisk, aber damit habe ich mich noch nicht befasst...


    Telefon läuft bei mir derzeit über ein Gigaset C430 IP mit DECT. Hier ist der SIP-Provider direkt eingetragen. Also ohne Asterisk auf oben genanntem Router.

    Du könntest dir einen Asterisk Server installieren der dann an deinen SIP Provider und andere entsprechend routet.
    Die SIP-Clients dann mit deinem Asterisk verbinden.

    I don't think there is a bug. For me is mailto working fine.
    Here the parts of doorpi.ini:



    Mybe you are not reaching your mailserver. Your Provider is not allowing from this IP-Range, your provider is not supporting smpts, tls, ... whatever.


    Did you try e.g. gmail or something else instead of your orange account?


    Here is an gmail example:
    LED und Taster Problemme



    If you want to use script, here you can find a python example:
    Problem beim Mailversand

    I don't have experience in python, but it looks the function os.system(command) should help, where command is e.g. 'amixer -c 1 sset Speaker unmute'
    https://docs.python.org/3/library/os.html#os.system



    But why not running directly a shell script?



    doorpi.ini part:


    Code
    ...
    [EVENT_OnKeyPressed_onboardpins.0]
    10 = os_execute:/usr/local/etc/DoorPi/scripts/speaker_unmute.sh
    20 = <something else ... e.g. call something>
    ...



    speaker_unmute.sh

    Bash
    #!/bin/bash
    /usr/bin/amixer -c 1 sset Speaker unmute

    maybe it is also directly working in the doorpi.ini with:



    10 = os_execute:/usr/bin/amixer -c 1 sset Speaker unmute
    But I am not sure.



    The only thing is when to you mute the speaker again? With a timer? Or is it possible to trigger it e.g. when the call is disconnected, ...?

    Hello Pat054,


    did you already try to use alsamixer to mute and unmute the speaker?


    Something like:

    Code
    amixer sset Master mute


    or


    Code
    amixer -c 0 set Master playback 0% mute


    Check the documentation for more information.
    I already tought about that, but did not have time to try it.
    I think this should work for all speakers and you don't need to use a relay (e.g. if your speaker is connected via USB, a relay between is not easily possible).


    Maybe some other doorpi users have some additional ideas, because this could be interesting more and I think it would be maybe good to integrate it as feature into doorpi.


    motom001_new: What do you think? Whould it be possible to intetrage such feature into doorpi?


    br
    Chris

    If file.sh is working you, you can also send the email via this shell script (file.sh) or php, Python, Perl,.. (whatever programming language you better know). I guess you will find a lot examples with Google.



    I don't use a translater, I am german native speaker and I also speak english.

    You should not send Mails with Asterisk. This makes no sence.


    This should be triggered from doorpi.
    I already posted an example of my doorpi.ini when you asked something regarding Asterisk with doorpi.
    This example is working for me and should also working for you
    (of course you must use your Mailserver settings).


    Btw: If you use a translater to use german the Output look sometimes very strange for native german speaker.
    Sollte ja nichts dagegen sprechen hier englisch zu schreiben?