ComunioScore-1.0.9
توضیحات
Maps the sofascore rating to comunio players
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ComunioScore-1.0.9 |
| نام | ComunioScore |
| نسخه کتابخانه | 1.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Christian Bierschneider |
| ایمیل نویسنده | christian.bierschneider@web.de |
| آدرس صفحه اصلی | https://github.com/bierschi/ComunioScore |
| آدرس اینترنتی | https://pypi.org/project/ComunioScore/ |
| مجوز | MIT |
## Maps the [sofascore](https://www.sofascore.com/de/) rating to [comunio](https://www.comunio.de/home) players
[](https://travis-ci.org/bierschi/ComunioScore) [](https://opensource.org/licenses/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](https://pypi.org/project/ComunioScore/) with pip
<pre><code>
pip3 install ComunioScore
</code></pre>
or from source
<pre><code>
git clone https://github.com/bierschi/ComunioScore
cd ComunioScore
sudo python3 setup.py install
</code></pre>
## Usage and Examples
Print the available arguments for ComunioScore
<pre><code>
ComunioScore --help
</code></pre>
Use it with pure command line arguments
<pre><code>
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
</code></pre>
Or with a configuration file
<pre><code>
ComunioScore config --file /etc/comunioscore/comunioscore.ini
</code></pre>
edit the `comunioscore.ini` file and add credentials from comunio, telegram and postgres database:
<pre><code>
[comunio]
username=
password=
[database]
host=
port=
username=
password=
dbname=
[server]
host='0.0.0.0'
port=8086
[telegram]
token=
chatid=
[season]
startdate=
</code></pre>
## Build Debian package
change into directory `dist_package` and execute:
<pre><code>
./build_package.sh --debian
</code></pre>
install debian package
<pre><code>
sudo dpkg -i ComunioScore_*.deb
</code></pre>
## 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
<pre><code>
sudo adduser <user> syslog
</code></pre>
to apply this change, log out and log in again and check with the command `groups` <br>
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](https://github.com/bierschi/ComunioScore/blob/master/CHANGELOG.rst)
## License
Copyright (c) 2019 Bierschneider Christian. See [LICENSE](https://github.com/bierschi/ComunioScore/blob/master/LICENSE)
for details
نیازمندی
| مقدار | نام |
|---|---|
| >=1.1.1 | flask |
| >=2.8.3 | psycopg2 |
| >=2.22.0 | requests |
| >=12.1.1 | python-telegram-bot |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl ComunioScore-1.0.9:
pip install ComunioScore-1.0.9.whl
نصب پکیج tar.gz ComunioScore-1.0.9:
pip install ComunioScore-1.0.9.tar.gz