Skip to content

πŸ”” ➑ πŸ“± Get Epitech notifications by SMS via Free Mobile

Notifications You must be signed in to change notification settings

Epiteks/NotifySMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NotifySMS

πŸ”” ➑ πŸ“± Get Epitech notifications by SMS via Free Mobile

How to use it ?

Via Docker

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

Local

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 [email protected]
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.

FAQ

What about other mobile network operators ?

Since I am using Free Mobile, I can't implement other services.

But feel free to contribute !

I can't login, what can I do ?

Unfortunately, we don't support OAuth with Wrapitech.

Once again, feel free to contribute !

What is history.json ? Can I delete it ?

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.

About

πŸ”” ➑ πŸ“± Get Epitech notifications by SMS via Free Mobile

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages