seird / gotify-tray Goto Github PK
View Code? Open in Web Editor NEWCross-platform desktop client for receiving messages from a Gotify server
License: GNU General Public License v3.0
Cross-platform desktop client for receiving messages from a Gotify server
License: GNU General Public License v3.0
No notifications on Mac OSX 12.5.
The tray application is launching and communication with the server works aswell.
New messages are listed in the message window.
I am working with terminal-notifier for other stuff, which works perfectly.
Thanks
Alex
gotify adds timestamps to messages using golang's time format which when marshaled into json is Internet date/time format aka rfc3339 which has negative timezones and Z for UTC and are represented as ISO 8601 strings.
There is an issue with the below code because fromisioformat as stated in the link is not ISO 8601 string compliant and can not handle servers in non-positive timezones.
Thus when handling a timestamp such as 2022-06-04T06:30:36.4359552-10:00
gotify-tray when validating a server with messages or handling messages later on will end up with errors such as:
ValueError: Invalid isoformat string: '2022-06-04T06:30:36.435955+2022-06-04T06:30:36.4359552-10:00'
gotify-tray/gotify_tray/gotify/models.py
Lines 49 to 58 in 1970896
To fix this one suggestion comes from python's documentation which recommends to not use fromisoformat
but to use the 3rd party dateutil.parser.isoparse otherwise if you continue to depend on the s = (
function where it grabs the timezone it should have cases for "Z"
and "-"
tokens but it would be better to be more rigorous.
It's a great project, but it's a pity it doesn't support markdown
Thanks for creating and maintaining gotify-tray. I used it constantly.
I've installed gotify-tray with pipx on my system. Pipx gets apps from PyPi.org by default and it found version 0.1.10 on there.
You're previous and also your latest update don't seem to have made it to PyPi.org.
I am now wondering, are you intending to release future updates on PyPi.org as well?
Just upgraded to 0.5.0 and tried to restart gotify-try and am getting an AttributeError now.
Here's the stack trace i get:
Traceback (most recent call last):
File "/home/mark/.local/bin/gotify-tray", line 8, in <module>
sys.exit(main())
File "/home/mark/.local/pipx/venvs/gotify-tray/lib/python3.10/site-packages/gotify_tray/__main__.py", line 9, in main
start_gui()
File "/home/mark/.local/pipx/venvs/gotify-tray/lib/python3.10/site-packages/gotify_tray/gui/MainApplication.py", line 402, in start_gui
app.init_ui()
File "/home/mark/.local/pipx/venvs/gotify-tray/lib/python3.10/site-packages/gotify_tray/gui/MainApplication.py", line 95, in init_ui
self.link_callbacks()
File "/home/mark/.local/pipx/venvs/gotify-tray/lib/python3.10/site-packages/gotify_tray/gui/MainApplication.py", line 359, in link_callbacks
self.styleHints().colorSchemeChanged.connect(lambda _: self.theme_change_requested_callback(settings.value("theme", type=str)))
AttributeError: 'QStyleHints' object has no attribute 'colorSchemeChanged'
I am on Manjaro using XFCE / I3
Hello and thank you for creating this app. I'm very happy with it!
I noticed that images aren't parsed correctly in the text are inside the app. I have Jellyfin connected to Gotify and it sends notifications with the cover image of movies and episodes when they are added/removed or watched. The webhook plugin uses Markdown syntax to pass images that are then displayed correctly in the Gotify WebUI. The same cannot be said for this app. I'm attaching images for clarity.
version: gotify-tray-installer-win.exe 0.4.1
The software will automatically exit from the tray when there are a lot of messages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.