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 details)

Uploaded Python 3

File details

Details for the file ComunioScore-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: ComunioScore-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ComunioScore-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 083085b3c9b2d7fb80a2c5a74b7676e72dd5217773c92cf60274db165f11ae06
MD5 f20fbab95e6c375024a7b3f168d41bce
BLAKE2b-256 0a5078d22a08f931dd6a2a13766ce9df89cd67d8c2a199c35f52b7f3db3244b2

See more details on using hashes here.

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