π β‘ π± Get Epitech notifications by SMS via Free Mobile
Via CLI :
$> docker run -d -e "SMS_LOGIN=login" -e "SMS_TOKEN=token" -e "EPITECH_MAIL=mail" -e "EPITECH_PWD=pwd" epiteks/notifysms
Via Docker Compose :
notifysms:
image: epiteks/notifysms
environment:
- SMS_LOGIN
- SMS_TOKEN
- EPITECH_MAIL
- EPITECH_PWD
restart: always
You need to set these variables into your environment :
- NOTIFYSMS_DIR
- SMS_LOGIN
- SMS_TOKEN
- EPITECH_MAIL
- EPITECH_PWD
NOTIFYSMS_DIR
is the location of NotifySMS
directory.
SMS_*
are used by freemobilesms
.
You can get these infos in your Free Mobile panel
EPITECH_*
are used to log you in via our wrapper.
Example :
export NOTIFYSMS_DIR=`pwd`
export SMS_LOGIN=xxxxxxx
export SMS_TOKEN=xxxxxxx
export EPITECH_MAIL=login_x@epitech.eu
export SMS_TOKEN=unix_pwd
Then you will need to install needed packages via pip
.
$> pip install -r requirements.txt
If you want to execute this program regularly, you can use cron.
Command is available in crontab
[crontab].
$> crontab -l | cat - crontab | crontab -
This configuration will ask cron to execute NotifySMS
every 2 minutes.
You can change it before execute this command.
Since I am using Free Mobile, I can't implement other services.
But feel free to contribute !
Unfortunately, we don't support OAuth with Wrapitech.
Once again, feel free to contribute !
This file is our "database". It stores the notifications you already got.
If you delete it, you will get a lot of messages next time you will run it.