/compliments

This is the server part of the Wikimedia Deutschland compliments button.

Primary LanguagePythonMIT LicenseMIT

Compliments

This is the server part of the Wikimedia Deutschland compliments button. Together with a button connected to a NodeMCU/ESP8266 board, it is meant to run on a Raspberry PI.

Showing appreciation for your colleagues is important! On the press of a button, a random compliment is sent to a random colleague via e-mail.

Of course you can still give compliments to colleagues directly in the old-fashioned analogue way, but it's also important to keep up with the cyber.

Getting Started

Install the project from GitHub on you RaspberryPi. You need Python3.

Prerequisites

Make sure you have the necessary libraries installed. Enter the compliments directory.

Run this:

pip3 install -r requirements.txt

Configuration

Generate a configuration file:

cp config.py.example config.py

Edit config.py to your needs. You must fill in the appropriate values for the usernames and passwords marked with editme.

Create a wiki page on a MediaWiki installation of your choice for the compliments. The page should only contain lines of compliments like so:

*   You have very smooth hair.
*   I’ve never met someone like you before.
*   You have inspired me and changed my life.
*   I want to be you when I grow up.
*   You deserve a promotion.
*   You are always happy, even when you are sad. And that’s admirable.
*   Good effort!
*   What a fine sweater!
*   I appreciate all of your opinions.
*   I like your style.
*   Your T-shirt smells fresh.

Running the service

Run it with python3 compliments.py.

Hardware

You can find the necessary files for the compliments button client based on the NodeMCU ESP8266 at this GitHub repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details