{"id":14235433,"url":"https://github.com/fedora-infra/fedmsg-notify","last_synced_at":"2025-08-11T00:31:29.486Z","repository":{"id":6718385,"uuid":"7964139","full_name":"fedora-infra/fedmsg-notify","owner":"fedora-infra","description":"Fedmsg Desktop Notifications","archived":true,"fork":false,"pushed_at":"2018-11-13T10:17:09.000Z","size":149,"stargazers_count":15,"open_issues_count":11,"forks_count":7,"subscribers_count":15,"default_branch":"develop","last_synced_at":"2024-08-21T21:26:56.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://lewk.org/blog/fedmsg-notify","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fedora-infra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-01T18:54:35.000Z","updated_at":"2023-06-07T19:44:38.000Z","dependencies_parsed_at":"2022-07-11T00:46:29.303Z","dependency_job_id":null,"html_url":"https://github.com/fedora-infra/fedmsg-notify","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-infra%2Ffedmsg-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-infra%2Ffedmsg-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-infra%2Ffedmsg-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-infra%2Ffedmsg-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedora-infra","download_url":"https://codeload.github.com/fedora-infra/fedmsg-notify/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229478631,"owners_count":18079371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-20T21:01:55.450Z","updated_at":"2024-12-13T01:30:16.487Z","avatar_url":"https://github.com/fedora-infra.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"fedmsg-notify\n=============\n\nSubscribing to the [Fedora Infrastructure Messsage Bus](http://fedmsg.com) on the desktop.\n\n![fedmsg-notify](http://lewk.org/img/fedmsg-notify-0-crop.png \"Realtime desktop notifications\")\n\n\nFeatures\n--------\n\n * A dbus-activated `fedmsg-notify-daemon` that consumes every message\n   from the Fedora Infrastructure Messaging bus.\n\n * A `fedmsg-notify-config` graphical interface that lets you filter which\n   messages to display\n\n\nInstalling\n----------\n\nDue to a dependency on Twisted's gtk3reactor, fedmsg-notify is currently\nonly available on [Fedora 18](https://apps.fedoraproject.org/packages/fedmsg-notify).\n\n```\nyum -y install fedmsg-notify\n```\n\nRunning\n--------\n\nOnce installed the \"Fedmsg Notification Configuration\" should appear in your\napplication menu. You can also run `fedmsg-notify-config` by hand, or `python\n-m fedmsg_notify.gui` from git.\n\n![fedmsg-notify-config](http://lewk.org/img/fedmsg-notify-config-0.png \"fedmsg-notify-config\")\n![fedmsg-notify-config](http://lewk.org/img/fedmsg-notify-config-1.png \"fedmsg-notify-config\")\n\nUsing notification preferences from the FMN server\n--------------------------------------------------\n\nIt is possible to retrieve your notification preferences from the [FMN\nserver](https://apps.fedoraproject.org/notifications/) instead of configuring\nthem locally. To enable this behavior, run:\n\n```\ngsettings set org.fedoraproject.fedmsg.notify use-server-prefs true\ngsettings set org.fedoraproject.fedmsg.notify fmn-url https://apps.fedoraproject.org/notifications/api/\n```\n\nWriting applications that consume fedmsg messages through DBus\n--------------------------------------------------------------\n\nThe `fedmsg-notify-daemon` has the ability to relay messages over DBus. When\nenabled, it will trigger a `org.fedoraproject.fedmsg.notify.MessageReceived`\nsignal upon each message. This behavior can be enabled by running:\n\n```\ngsettings set org.fedoraproject.fedmsg.notify emit-dbus-signals true\n```\n\nHere is an example of a basic Python program that listens to fedmsg-notify signals over DBus.\n\n```python\n\nimport json\nimport dbus\n\nfrom gi.repository import GObject\nfrom dbus.mainloop.glib import DBusGMainLoop\n\ndef consume(topic, body):\n    print(topic)\n    print(json.loads(body))\n\nDBusGMainLoop(set_as_default=True)\nbus = dbus.SessionBus()\nbus.add_signal_receiver(consume, signal_name='MessageReceived',\n                        dbus_interface='org.fedoraproject.fedmsg.notify',\n                        path='/org/fedoraproject/fedmsg/notify')\nloop = GObject.MainLoop()\nloop.run()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-infra%2Ffedmsg-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedora-infra%2Ffedmsg-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-infra%2Ffedmsg-notify/lists"}