raspberry pi
Brendan O'Dowd
bodowd at yahoo.com
Mon May 23 16:05:16 EDT 2016
Hi Ard,
I use a very simple Python script to hit the Jason interface on my XTension box. This works over the Ethernet once the home router ports are open. It is perfect for getting sensor data into XTension but I would need to figure something else out if I wanted to control something from the pi.
I use it for temperature and motion monitoring remotely. The code below is used for sending the temperature.
#!/usr/bin/python
import urllib2
temp_file = open('/home/pi/i2c/temp', 'r')
val = temp_file.read()
val,waste = val.split("C")
link = 'http://your.url.com:8095/D1234567899342/PICT1/' + val
for line in urllib2.urlopen(link):
print line
Brendan.
>
>
>> On Mon, May 23, 2016 at 12:00 PM ard jonker <ard.jonker at xs4all.nl> wrote:
>> Anyone running RPi as an xtension interface?
>> What would be the most logical route to link RPi-connected sensors to XTension across ethernet?
>>
>>
>> Ard
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20160523/7f968946/attachment.html>
More information about the XTensionList
mailing list