Friendica Desktop Notification
Some weeks ago I started a python module for Friendika (yes that was before the name change and I have not changed the name of the python module lazy as I am for historical reasons) friendika.py. One of the things I wanted to do with it and finally found the time to implement it was a Desktop Notification Applet for friendica.
Today I pushed the source of notifyfrndc to bitbucket, where you can either clone the Mercurial repository of grab the latest code as tar-ball.
It uses py-notify to display the number of new items to your wall or the network tab, the number of new private messages and the number of new introductions. It also displays a list of all the stuff behind those numbers and when it happened.
It is a bare script at the moment, without any fancy installation guidelines but you should be fine with a
$ python /path/to/notifyfrndc.py
Also you need to create a file in your $HOME directory called .notifyfrndc.cfg with your favorite editor (vim) or emacs your choice). The file should look something like that:
[account]
api = https://your.friendica.tld/api
user = yourusername
password = yourpassword
[settings]
timeout = 5
lookevery = 60
The stuff in the account section should be self-explanatory. The settings options are used as follows: The lookevery parameter gives the seconds after which the script should check for new stuff on your account. The timeout parameter is the number of seconds the notification shall be displayed. This is the base time, one additional second will be added for every item in the list, so that you can read it all.
Although the script may check your account every 60 seconds (or whatever you choose) it will not display the results every time. It will only do so if there is new stuff and it had not shown you the numbers before.
Ok, that’s all—have fun with it ![]()





