melihkaragoz / cluster

change your wallpaper with a collage of your friend's photos online at 42cluster. and it's refreshing in every 10min

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#NOTE

1 - first you have to create a new 42Api App from "https://profile.intra.42.fr/oauth/applications/new", then you can get your secret_key and UID here for generate access token.
2 - don't forget to refresh your access token in every 2hr, because access token's expire date is 2hr later from when it's created.
3 - don't forget to change "collage.jpg" file's path in changeBackground.sh. The .jpg file will be created in cluster directory when you run cluster.py
4 - run './generateAccessToken' after setting your user_id and secret_token field in 'generateAccessToken.sh', for generate new access token (for take user_id and secret_key go (1).step).
5 - specify your pc's screen size values (width,height) in 'collage.py' script.

#installing

pip3 install wget
pip3 install Pillow

example

About

change your wallpaper with a collage of your friend's photos online at 42cluster. and it's refreshing in every 10min


Languages

Language:Python 86.8%Language:Shell 13.2%