I suppose you connect a socket to ("192.168.1.50", 5149) and then invoke sock.sendall("power=1\n"). See the socket module documentation and try to run some code.
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11