Skip to main content

Maps the sofascore rating to comunio players

Build Status License: MIT

  • get current ranking of all comunio players
  • periodic messages for player rating, goals and offs
  • messenger integration to share it in groups chat with friends
  • supports postgresql and sqlite databases

Installation

install ComunioScore with pip


pip3 install ComunioScore

or from source


git clone https://github.com/bierschi/ComunioScore
cd ComunioScore
sudo python3 setup.py install

Usage and Examples

Print the available arguments for ComunioScore


ComunioScore --help

Use it with pure command line arguments


ComunioScore args --host 127.0.0.1 --port 8086 --dbhost 127.0.01 --dbport 5432 --dbuser john --dbpassword jane --dbname comunioscore --comunio_user john --comunio_pass jane --token adfefad --chatid 18539452

Or with a configuration file


ComunioScore config --file /etc/comunioscore/comunioscore.ini

edit the comunioscore.ini file and add credentials from comunio, telegram and postgres database:


[comunio]
username=
password=

[database]
host=
port=
username=
password=
dbname=

[server]
host='0.0.0.0'
port=8086

[telegram]
token=
chatid=

[season]
startdate=

Build Debian package

change into directory dist_package and execute:


./build_package.sh --debian

install debian package


sudo dpkg -i ComunioScore_*.deb

Logs

logs can be found in /var/log/ComunioScore

Troubleshooting

add your current user to group syslog, this allows the application to create a folder in /var/log. Replace <user> with your current user


sudo adduser <user> syslog

to apply this change, log out and log in again and check with the command groups

To use pythons build in sqlite database, leave the [database] section in the config file empty

Changelog

All changes and versioning information can be found in the CHANGELOG

License

Copyright (c) 2019 Bierschneider Christian. See LICENSE for details

Metadata

Release files for ComunioScore 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ComunioScore 1.0.9
File Interpreter ABI Platform
ComunioScore-1.0.9-py3-none-any.whl Python 3 none any Details

Release files / ComunioScore-1.0.9-py3-none-any.whl

Download URL ComunioScore-1.0.9-py3-none-any.whl
Size 47.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
083085b3c9b2d7fb80a2c5a74b7676e72dd5217773c92cf60274db165f11ae06
BLAKE2b-256 checksum
How to use checksums
0a5078d22a08f931dd6a2a13766ce9df89cd67d8c2a199c35f52b7f3db3244b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.9 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page