apprise-api icon indicating copy to clipboard operation
apprise-api copied to clipboard

windows notification not works

Open johnfelipe opened this issue 3 years ago • 4 comments

in my windows run this

WINDOWS

Microsoft Windows [Versión 10.0.19044.1706]
(c) Microsoft Corporation. Todos los derechos reservados.

C:\WINDOWS\system32>C:\Python310\python.exe -m pip install --upgrade pip
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Requirement already satisfied: pip in c:\python310\lib\site-packages (22.0.4)
Collecting pip
  Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Installing collected packages: pip
  Attempting uninstall: pip
    WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
      Successfully uninstalled pip-22.0.4
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Successfully installed pip-22.1.2
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)

C:\WINDOWS\system32>pip install pywin32
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Requirement already satisfied: pywin32 in c:\python310\lib\site-packages (304)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)

C:\WINDOWS\system32>

SNAG-0002

pls view this video better

https://drive.google.com/file/d/1_qiqDl4-JSEqBO27RXy1D14oBOfinP1V/view?usp=drivesdk

how can solve this?

johnfelipe avatar Jun 22 '22 12:06 johnfelipe

There are a couple of things going on here i think.

  1. This line here doesn't really relate to your problem at hand; the problem is that you need the library > C:\WINDOWS\system32>C:\Python310\python.exe -m pip install --upgrade pip
  2. With respect to the title: windows notification not works, you'll need to do 2 things:
    1. You need to have the pywin32 installed:
      pip install pywin32
      
    2. You will need to make sure that you enable windows:// notifications as it is disabled by default. See here. Basically you just need need to update the file i shared with you, or if you're using a docker container, you need to just create an environment variable called APPRISE_DENY_SERVICES and make it equal something like: dbus,gnome,macosx,syslog (basically what was already there with windows:// dropped from it.

caronc avatar Jun 26 '22 23:06 caronc

I will try soon and feedback to u

johnfelipe avatar Jun 27 '22 14:06 johnfelipe

here, that how can review in docker installation?

my windows is ip 192.168.0.20 and apprice is 192.168.0.44 how can deploy in that network schemma?

johnfelipe avatar Jun 29 '22 02:06 johnfelipe

I don't have a windows PC to test on, but i'm not sure if a docker container (hosting a Linux foundation) can access the windows libraries through the API (which was why they're disabled by default). I'll leave your ticket open incase someone else is attempting to do what you're doing. But it seems like a lot of overhead to run an AppriseAPI service to notify the same machine it's running on. That said, it should still be able to be done... you just need to make sure you deploy your container with the correct environment -e APPRISE_DENY_SERVICES=dbus,gnome,macosx,syslog

caronc avatar Jul 01 '22 15:07 caronc

Closing off stale ticket

caronc avatar Feb 26 '23 03:02 caronc