1
1
# NotifySMS
2
2
3
+ [ ![ ] ( https://images.microbadger.com/badges/version/epiteks/notifysms.svg )] ( https://microbadger.com/images/epiteks/notifysms )
4
+
3
5
🔔 ➡ 📱 Get Epitech notifications by SMS via Free Mobile
4
6
5
7
## How to use it ?
6
8
7
- #### Setup
9
+ ### Via Docker
10
+
11
+ Via CLI :
12
+
13
+ ```` bash
14
+ $> docker run -d -e " SMS_LOGIN=login" -e " SMS_TOKEN=token" -e " EPITECH_MAIL=mail" -e " EPITECH_PWD=pwd" epiteks/notifysms
15
+ ````
16
+
17
+ Via Docker Compose :
18
+ ```` yaml
19
+ notifysms :
20
+ image : epiteks/notifysms
21
+ environment :
22
+ - SMS_LOGIN
23
+ - SMS_TOKEN
24
+ - EPITECH_MAIL
25
+ - EPITECH_PWD
26
+ restart : always
27
+ ` ` ` `
28
+
29
+ # ## Local
8
30
9
31
You need to set these variables into your environment :
32
+ - NOTIFYSMS_DIR
10
33
- SMS_LOGIN
11
34
- SMS_TOKEN
12
35
- EPITECH_MAIL
13
36
- EPITECH_PWD
14
37
38
+ ` NOTIFYSMS_DIR` is the location of `NotifySMS` directory.
39
+
15
40
` SMS_*` are used by [`freemobilesms`](https://github.com/hug33k/freemobilesms).
16
41
You can get these infos in your [Free Mobile panel](https://mobile.free.fr/moncompte/)
17
42
18
43
` EPITECH_*` are used to log you in via [our wrapper](https://github.com/epiteks/wrapitech).
19
44
20
45
Example :
21
46
` ` ` ` bash
47
+ export NOTIFYSMS_DIR=`pwd`
22
48
export SMS_LOGIN=xxxxxxx
23
49
export SMS_TOKEN=xxxxxxx
24
50
25
51
export SMS_TOKEN=unix_pwd
26
52
````
27
53
28
54
Then you will need to install needed packages via [ ` pip ` ] ( https://pip.pypa.io/en/stable/installing/ ) .
55
+
29
56
```` bash
30
57
$> pip install -r requirements.txt
31
58
````
32
59
33
- #### Let's run it
34
-
35
- You will have to add a line to your ` crontab ` config.
60
+ If you want to execute this program regularly, you can use cron.
61
+ Command is available in ` crontab ` [ crontab] .
36
62
37
63
```` sh
38
- $> crontab -e
39
- ````
40
-
41
- Then you need to add this (Based on how often you want to run it and where ` NotifySMS ` is located on your computer) :
42
-
43
- ````
44
- */15 * * * * python3.5 $PATH_TO_NOTIFYSMS/main.py
64
+ $> crontab -l | cat - crontab | crontab -
45
65
````
46
66
47
- (Here, it will run every 15 minutes ` NotifySMS ` , which is at $PATH_TO_NOTIFYSMS` location)
67
+ This configuration will ask cron to execute ` NotifySMS ` every 2 minutes.
68
+ You can change it before execute this command.
48
69
49
70
## FAQ
50
71
@@ -58,7 +79,7 @@ But feel free to contribute !
58
79
59
80
Unfortunately, we don't support OAuth with [ Wrapitech] ( https://github.com/epiteks/wrapitech ) .
60
81
61
- Once again, feel free to contribute !`
82
+ Once again, feel free to contribute !
62
83
63
84
#### What is ` history.json ` ? Can I delete it ?
64
85
0 commit comments