@@ -0,0 +1,660 @@
+import os%0Aimport subprocess%0A%0A# Enter codes for each outlet%0Acodes = %7B'1': %7B'on': '21811', 'off': '21820'%7D,%0A         '2': %7B'on': '21955', 'off': '21964'%7D,%0A         '3': %7B'on': '22275', 'off': '22284'%7D,%0A         '4': %7B'on': '23811', 'off': '23820'%7D,%0A         '5': %7B'on': '29955', 'off': '29964'%7D%7D%0A%0Anum = input('Enter outlet number: ')%0Astate = input('Enter on/off: ')%0A%0Acode = codes%5Bnum%5D%5Bstate%5D    # Read code from signal%0Acodesend = './codesend'     # Set codesend script path (should be in rfoutlet)%0Apin = '0'                   # Set pin number (GPIO: 17) %0Alength = '189'              # Set pulse length%0A%0Asubprocess.call(%5Bcodesend, code, '-p', pin, '-l', length%5D)%0A

Add script for sending rf signals.