leiweibau / Pi.Alert

Scan the devices connected to your WIFI / LAN and alert you the connection of unknown devices. It also warns if a "always connected" device disconnects. In addition, it is possible to check web services for availability. For this purpose HTTP status codes and the response time of the service are evaluated.
https://leiweibau.net
GNU General Public License v3.0
406 stars 28 forks source link

Error when setting up Pi.Alert with special characters inside SMTP password #202

Closed Striffly closed 9 months ago

Striffly commented 10 months ago

Hello

When I setting up Pi.Alert with the automated script, I have also inserted the SMTP parameters for sending mail. My password contains the ( characters.

During further installation, I encountered this error :

- Prepare directories...
*** PLEASE WAIT A COUPLE OF MINUTES...

Traceback (most recent call last):
  File "/home/xxxx/pialert/back/pialert.py", line 41, in <module>
    exec(open(PIALERT_PATH + "/config/pialert.conf").read())
  File "<string>", line 35
    SMTP_PASS         = 'xxxxx)xxxxx'
                              ^

- Testing Pi.Alert Internet IP Lookup...
Traceback (most recent call last):
  File "/home/xxxx/pialert/back/pialert.py", line 41, in <module>
    exec(open(PIALERT_PATH + "/config/pialert.conf").read())
  File "<string>", line 35
    SMTP_PASS         = 'xxxxx)xxxxx'
                              ^

- Testing Pi.Alert Network scan...
*** PLEASE WAIT A COUPLE OF MINUTES...

Traceback (most recent call last):
  File "/home/xxxx/pialert/back/pialert.py", line 41, in <module>
    exec(open(PIALERT_PATH + "/config/pialert.conf").read())
  File "<string>", line 35
    SMTP_PASS         = 'xxxxx)xxxxx'
                              ^

Due to this error, the installation was not completed correctly (not all my devices were detected). I re-run the installation without defining SMTP, and this time the installation was successful.

leiweibau commented 10 months ago

Thanks for reporting this error. I will have a look at it.

leiweibau commented 9 months ago

Should be fixed with this release https://github.com/leiweibau/Pi.Alert/commit/8b8924d702425eced334561c927d2ca21008825f