Skip to main content

Maps the sofascore rating to comunio players

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ComunioScore-1.0.9-py3-none-any.whl (47.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page