affini,
can you define the syntax error you are getting? if it just says "syntax error" i am not getting the same thing. make a new .py script with just the lines below and change it to your x10 specific device and see if you get the same error i am getting. i get a consistent error on both the xbox (press white button after script executes to see debug info) and on my pc python shell window when i run it on the pc.
nuka,
i changed the script per your suggestion to see what 'params' looks like... here is the script in the first quote and the output in the 2nd quote.
script:
Quote:import urllib
params = urllib.urlencode({'hidden': 'hs.execx10byname "foyer table lamp", "on"'})
print params
f = urllib.urlopen("[url]http://192.168.0.150:80"[/url], params)
print f.read()
output:
Quote:>>>
hidden=hs.execx10byname+%22foyer+table+lamp%22%2c+%22on%22
<body> unknown post/put request, data is hidden=hs.execx10byname+%22foyer+table+lamp%22%2c+%22on%22</body>
>>>
where is the %22 and %2c stuff coming from? more importantly, how do you get rid of it?
i tried to put this in the address bar in ie after the server address as you suggested and it doesn't work as expected.
as far as trying homeseer without having any x10 hardware, you can download a trial (
http://www.homeseer.com) and set it up to do some local pc manipulation, but it is a relatively big program that you probably don't want to crud up your os with...
if you pm me, i can give you access to see what the default homeseer webpage looks like.
like i had said earlier, i can make a simple call to an .asp page and get the x-10 event to run, we are just trying to do it though the http post command which homeseer can supposedly accept.
thanks.