Skillnad mellan versioner av "Skriva till enheter på OW-SERVER"

Från Temperatur.nu
Hoppa till navigeringHoppa till sök
 
Rad 1: Rad 1:
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.
+
Informationen från denna sida har flyttats till [http://blog.m.nu/konfigurera-1wire-enheter-pa-ow-server-enetwifi-genom-att-accessa-urler/ http://blog.m.nu/konfigurera-1wire-enheter-pa-ow-server-enetwifi-genom-att-accessa-urler/]
 
 
 
 
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
 
 
 
[[Kategori:Hårdvara]]
 

Nuvarande version från 26 september 2014 kl. 18.17