mirror of https://github.com/LedFx/LedFx.git
remove notifypy. only show notifications via pystray
This commit is contained in:
parent
22324f0511
commit
5b21d3af2e
|
@ -2,11 +2,9 @@ hiddenimports = [
|
||||||
"sacn",
|
"sacn",
|
||||||
"aubio",
|
"aubio",
|
||||||
"numpy",
|
"numpy",
|
||||||
"notifypy",
|
|
||||||
"math",
|
"math",
|
||||||
"voluptuous",
|
"voluptuous",
|
||||||
"numpy",
|
"numpy",
|
||||||
"notifypy",
|
|
||||||
"aiohttp",
|
"aiohttp",
|
||||||
"mido",
|
"mido",
|
||||||
"mido.frozen",
|
"mido.frozen",
|
||||||
|
|
|
@ -2,7 +2,6 @@ import logging
|
||||||
from json import JSONDecodeError
|
from json import JSONDecodeError
|
||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
from notifypy import Notify
|
|
||||||
|
|
||||||
from ledfx.api import RestEndpoint
|
from ledfx.api import RestEndpoint
|
||||||
from ledfx.utils import get_icon_path
|
from ledfx.utils import get_icon_path
|
||||||
|
@ -48,14 +47,6 @@ class NotifyEndpoint(RestEndpoint):
|
||||||
if self.icon is not None:
|
if self.icon is not None:
|
||||||
if self.icon.HAS_NOTIFICATION:
|
if self.icon.HAS_NOTIFICATION:
|
||||||
self.icon.notify(f"{title}:\n{text}")
|
self.icon.notify(f"{title}:\n{text}")
|
||||||
else:
|
|
||||||
icon_location = get_icon_path("tray.png")
|
|
||||||
notification = Notify()
|
|
||||||
notification.application_name = "LedFx"
|
|
||||||
notification.title = title
|
|
||||||
notification.message = text
|
|
||||||
notification.icon = icon_location
|
|
||||||
notification.send(block=False)
|
|
||||||
|
|
||||||
response = {
|
response = {
|
||||||
"status": "success",
|
"status": "success",
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -29,7 +29,6 @@ INSTALL_REQUIRES = [
|
||||||
"cython>=0.29.21",
|
"cython>=0.29.21",
|
||||||
"certifi>=2020.12.5",
|
"certifi>=2020.12.5",
|
||||||
"multidict~=5.0.0",
|
"multidict~=5.0.0",
|
||||||
"notify-py>=0.3.42",
|
|
||||||
"openrgb-python~=0.2.10",
|
"openrgb-python~=0.2.10",
|
||||||
"paho-mqtt>=1.5.1",
|
"paho-mqtt>=1.5.1",
|
||||||
"psutil>=5.8.0",
|
"psutil>=5.8.0",
|
||||||
|
|
Loading…
Reference in New Issue