SHOW:
|
|
- or go back to the newest paste.
1 | - | os.loadAPI("ocs/apis/sensor") |
1 | + | --LATO REDSTONE |
2 | lato = "left" | |
3 | - | --LATO SENSORE |
3 | + | |
4 | - | se = sensor.wrap("top") |
4 | + | |
5 | --INSERIRE QUI LA API-KEY | |
6 | - | --LATO ATTIVAZIONE REDSTONE QUANDO SQUILLA L'ALLARME |
6 | + | api1 = "d58493dc25cf12417626cd0d2148297e" |
7 | - | lato = "right" |
7 | + | |
8 | - | ritardo = 0 |
8 | + | |
9 | while true do | |
10 | os.pullEvent("redstone") | |
11 | if rs.getInput(lato) == true then | |
12 | - | api1 = "" |
12 | + | http.get("http://172.16.20.220/luanet/servlets/notifier.php?api="..api1) |
13 | print("Email mandata") | |
14 | - | --GIOCATORI PER CUI L'ALLARME NON SI ATTIVA |
14 | + | |
15 | - | giocatore1 = "" |
15 | + | |
16 | - | giocatore2 = "" |
16 | + |