-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrf.py
More file actions
39 lines (31 loc) · 666 Bytes
/
Copy pathrf.py
File metadata and controls
39 lines (31 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from subprocess import call
import time
# File for making radio frequency calls, requires having rfoutlet code setup.
# Turn off an outlet
def on(num):
rfCode = ""
if num == 1:
rfCode = "1381683"
elif num == 2:
rfCode = "1381827"
elif num == 3:
rfCode = "1382147"
elif num == 4:
rfCode = "1383683"
elif num == 5:
rfCode = "1389827"
call(["../rfoutlet/codesend", rfCode])
# Turn on an outlet
def off(num):
rfCode = ""
if num == 1:
rfCode = "1381692"
elif num == 2:
rfCode = "1381836"
elif num == 3:
rfCode = "1382156"
elif num == 4:
rfCode = "1383692"
elif num == 5:
rfCode = "1389836"
call(["../rfoutlet/codesend", rfCode])