This is a python script, which looks for 1k tournaments on clashroyale and sends you a notification over pushbullet if it found on. Get this script on your Raspberry Pi und run it via cronjob.
- Install git >2.12
- Install Python >=3.5.3
apt-get install python3 && apt-get install python3-pip
- Verify that
python --version
shows a version equal to or higher then 3.5.3 Otherwise use pyenv to install version 3.5.3 pip3 install -r requirements.txt
- Copy
clashroyale.example.cfg
toclashroyale.cfg
and adjust the config to your needs. - run
python3 main.py
-
Copy
clashroyale.example.cfg
toclashroyale.cfg
. -
Then enter your ClashRoyale api key, which you can get here.
-
[ClashRoyale] clashroyale_api_key = YourClashRoyaleApiKey
-
Then add you Devices. You can add as many devices as you want. Therefore you have to give your device a number, starting from 1 and iterate until you have added all devices. For example the first device is introduced with
[Device_1]
, the second device is introduced with[Device_2]
, and so on. -
Then you have to configure the notification service which should be used. This service can be different for all you devices. You can choose from the following notification services:
Pushover
(Android & iOS)more informationPushbullet
(Android & iOS) more informationPushMe
(iOS) more information
-
After you specified your notification service, you have to configure them. Their options can be different. The following example shows a configfile with all three notification services configured:
-
[ClashRoyale] clashroyale_api_key = YourClashRoyaleApiKey [Device_1] notification_service = Pushbullet api_key = YourPushbulletApiKey device_identifier = YourDeviceIdentifier [Device_2] notification_service = Pushover api_key = YourFriendsPushbulletApiKey device_identifier = YourFriendsDeviceIdentifier [Device_3] notification_service = PushMe device_identifier = YourDeviceIdentifier