• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

halcy/notificat: Prints Mastodon WebPush notifications to your terminal

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

halcy/notificat

开源软件地址(OpenSource Url):

https://github.com/halcy/notificat

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

notificat.py

Prints Mastodon WebPush notifications to your terminal.

To install:

git clone
cd notificat
pip3 install -r requirements.txt

Usage:

usage: notificat.py [-h] [-f] [-j] [-s] [-w WSS_URL] [-a AUTOPUSH_CRED_FILE]
                    [-p PORT] [-d HOSTNAME] [-c CERTBOT_EXECUTABLE]
                    [-l LETSENCRYPT_PATH]
                    instance cred_file

Prints Mastodon WebPush notifications to the terminal, either via Mozilla
Autopush (default, recommended) or by directly providing its own WebPush
endpoint (complex and very impractical.)

positional arguments:
  instance              Base URL for the instance you want to get
                        notifications from.
  cred_file             Login credentials file name. Will be created if it
                        does not exist. This file is not encrypted and will
                        allow people to access your mastodon account. Keep it
                        safe.

optional arguments:
  -h, --help            show this help message and exit
  -f, --fancy           Use colours and unicode glyphs in output.
  -j, --json            Output notifications as JSON.
  -s, --all-scopes      When logging in, create an access token that is
                        allowed full access instead of a push notification
                        only token.
  -w WSS_URL, --wss-url WSS_URL
                        (autopush mode) Websocket URL for autopush. Default:
                        ''wss://push.services.mozilla.com/'
  -a AUTOPUSH_CRED_FILE, --autopush-cred-file AUTOPUSH_CRED_FILE
                        (autopush mode) Autopush credential cache file name.
                        Default: 'autopush_sub.pkl'
  -p PORT, --port PORT  (direct mode) Port to listen on. Default: 80
  -d HOSTNAME, --direct HOSTNAME
                        Use direct WebPush mode instead of Mozilla Autopush,
                        with specified host name.
  -c CERTBOT_EXECUTABLE, --certbot-executable CERTBOT_EXECUTABLE
                        (direct mode) Certbot command. Default: 'certbot-auto'
  -l LETSENCRYPT_PATH, --letsencrypt-path LETSENCRYPT_PATH
                        (direct mode) Certbot certificate path. Default:
                        '/etc/letsencrypt/live/'

For normal client usage, it is strongly recommended that you use Mozilla
Autopush. The direct mode requires your machine to have a globally resolvable
hostname and to be reachable via at least port 80. You also need to have
certbot-auto installed and configured correctly. For autopush operation,
nothing is required - it should just work.

Screenshot:

notificat screenshot




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
yahesh/twastosync: application to sync Mastodon toots to Twitter发布时间:2022-08-18
下一篇:
titouanco/docker-mastodon: 发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap