Skriva till enheter på OW-SERVER

Från Temperatur.nu
Version från den 1 oktober 2010 kl. 09.35 av Elf98 (diskussion | bidrag)
Hoppa till navigeringHoppa till sök

För att ändra inställningar för specifika enheter som är anslutna till OW-SERVER behöver man inte använda webbinterfacet. Detta kan med stor fördel användas för att automatiskt tex ställa in mätområde på DS2450.


In the XML file, any value that has an attribute of Writable="True" can be written. In the example below, UserByte1 is writable.

<ROMId>CB0000020048BD28</ROMId>

<Health>7</Health> 

<RawData>840117467FFF0C1021FF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</RawData>

<PrimaryValue>24.25 Deg C</PrimaryValue> <Temperature Units="Centigrade">24.25</Temperature>

<UserByte1 Writable="True">77</UserByte1>

 

To write to this value, create a URL string with the following parameters in this order:

1) The ROM ID (called "rom")

2) The name of the variable to modify (called "variable")

3) The value to change it to (called "value")

 

Either devices.htm or wrowval.htm can be used. If wrowval.htm is used, a very small web page is returned.

 

For example, the XML data above is for a DS18B20. To change UserByte1 to 23, enter this line in the address field of the browser:

 

http://192.168.1.8/wrowval.htm?rom=CB0000020048BD28&variable=UserByte1&value=23