Hello Jáchym
Is it possible for soil parameter and indoor conditions also for my eusotec to program.
http://www.eusotec.de/data/eusoport/astart.php?sn=deb883749&key=&nopic=Here are ways that eusotec provides:
__________________________________________________________________________
Integrate current data into your own Web pagesCustomers of the Eusotec cloud services have the opportunity to integrate the current data on your own Web pages. This can be presented easily customized solutions with current weather data. This was to ensure that the interface is kept simple.
The current data are generally caused by following call:
http://www.eusotec.de/data/eusoport/values_request.php?SN=cloud-Benutzername & newPage = own website the following parameters must be specified:
SN = username of the cloud was informed by Eusotec
newPage = URL to the new display page
The website is called and receives current weather data as = parameter data example:
Get current data and show it on the page test4.html.
The result should look like this:
Current data of the: 09.05.2014 08:17:30
Air pressure: 1017.0 hPa
Indoor temperature: 22.9 ° C
Humidity: 53%
Outdoor temperature: 15.7 ° C
Gust: 19.3 km/h
And here are the instructions for generating:
The call can be applied z.B for user deb123456 as a link:
<a href="
http://www.eusotec.de/data/eusoport/values_request.php?sn=deb123456&newPage=http://mydomain.de/test4.html">Show current data</a>
We now see the specified file "test4.html":
First a few explanations:
The parameters passed can be with the "split" easily command, so that the values in the array "values" are saved in the example. values
- format contains date and time in UTC (format: dd.mm. yyyy_hh: mm: ss)
values [1] 1 contains the value of the sensor then values [2] 2nd etc. then contain the value of sensor
And here is the HTML code of the test4.html file<html>
<head>
</head>
<body>
<pre>
<script type="text/javascript">
var arg = window.location.href.split("=");
var values = arg[1].split(";"); // get values
// date/time format: dd.mm.yyyy_hh:mm:ss
document.writeln("Aktuelle Daten vom: ",values[0].substr(0,10)," - ",values[0].substr(11,8));
document.writeln("Luftdruck: ",values[1]," hPa");
document.writeln("Innen-Temperatur: ",values[2]," °C");
document.writeln("Feuchte: ",values[3]," %");
document.writeln("Außen-Temperatur: ",values[4]," °C");
document.writeln("Windböen: ",values[5]," km/h");
</script>
</pre>
</body>
</html>
_______________________________________________________
XML interface:The acronym XML stands for "Extensible Markup Language", and means a markup language that is used to communicate hierarchically structured data in text form. If you are using the program of EusoCharts, this text format is used for the exchange of data. The program does the communication and shows you the data that you request.
Should write their own applications, so we want to support you here, and we have therefore decided that XML data format to disclose.
The command is sent over port 10001 to the Eusoport and has the following format:
<Cmd>1| StartZeit | End times | Increment. Number parameter n | Par_1 | Par_2 |.. | Par_n</Cmd>
Please take care to enter spaces between the parameters.
<Cmd>1: 1 stands for data retrieval, in later versions of other commands could be supplemented, which accept for example a control of the connected device.
Start time: start date and start time of the desired time interval
End time: End date and end time of the desired time interval
Format: YYMMDDhhmm
YY: last two digits of the year
MM: Month DD: day hh: hour
mm: Minute
All date and time values are in UTC time to understand. So the calling application must take account of the time difference for summer and winter time. If you want to retrieve the current values that every 10 seconds be queried by the connected device, so you enter please as a start and end time "0000000000".
Step size:
Here, the following increments (5 minute intervals) are allowed:
1 returns all stored values
2 memory values, whose minute 00, 10, 20, etc
3 memory values, whose minute 00, 15, 30 or 45's
6 memory values, whose minute 00 or 30 is
12 memory values, their minute is 00 (all hourly values)
24 memory values, their minute 00 and hour 00, 02, etc. is
other allowed values are 48, 72, 144, 288 when you want to retrieve all the values so, enter a 1.
Number of parameters:
Here you specify how many parameters you want to retrieve.
Parameters: Specify the numbers of the parameters (separated by the "|") Character) to which you want to retrieve. They wanted only the values of the 3 sensor, then enter the 3.
</Cmd>: A command must be terminated with this string.
Example:
Retrieve all stored data from the sensors 2,3,4 and 23 in the period of the 12.3.2013 10:43 (UTC: 9:43 am) to 12.3.2013 11:42 (UTC: 10:42).
<Cmd>1 | 1303120943 | 1303121042 | 1 | 4 | 2 | 3 | 4 | 23</Cmd>
As output, you get the following data:<?xml version='1.0' encoding='iso-8859-1'?>
<Response><Prot>1 <Dev>Davis Vantage</Dev><Cmd>1</Cmd><Start>1303120943</Start><End>1303121042</End><IntervalStep>1</IntervalStep><Parameters><Par no='2' unit='°C'><Values>130312104000 | 21.2 | 1 | 130312103500 | 21.1 | 1 | 130312103000 | 21.1 | 1 | 130312102500 | 21.1 | 1 | 130312102000 | 21.1 | 1 | 130312101500 | 21.1 | 1 |
130312101000 ¦ 21.0 | 1 | 130312100500 | 20.9 | 1 | 130312100000 | 20.8 | 1 | 130312095500 | 20.8 | 1 | 130312095000 | 20.7 | 1 | 130312094500 | 20.7 | 1 | 130312094000 | 20.6 | 1 |
</Values> <Min>130312094000 | 20.6 | 1</Min><Max>130312104000 | 21.2 | 1</Max>
</Par><Par no='3' unit='%'><Values>130312104000 | 45 | 1 | 130312103500 | 45 | 1 | 130312103000 | 45 | 1 | 130312102500 | 45 | 1 | 130312102000 | 45 | 1 | 130312101500 | 45 | 1 |
130312101000 ¦ 45 | 1 | 130312100500 | 46 | 1 | 130312100000 | 46 | 1 | 130312095500 | 46 | 1 | 130312095000 | 46 | 1 | 130312094500 | 46 | 1 | 130312094000 | 46 | 1 |
</Values> <Min>130312104000 | 45 | 1</Min><Max>130312100500 | 46 | 1</Max>
</Par><Par no='4' unit='°C'><Values>130312104000 ¦ 19.6 | 1 | 130312103500 | 19.6 | 1 | 130312103000 | 19.6 | 1 | 130312102500 | 19.6 | 1 | 130312102000 | 19.5 | 1 | 130312101500 | 19.5 | 1 | 130312101000 |
19.4 | 1 | 130312100500 | 19.4 | 1 | 130312100000 | 19.3 | 1 | 130312095500 | 19.3 | 1 | 130312095000 | 19.3 | 1 | 130312094500 | 19 2 | 1 | 130312094000 | 19 2 | 1 |
</Values> <Min>130312094500 | 19.2 | 1</Min><Max>130312104000 ¦ 19.6 | 1</Max>
</Par><Par no='23' unit='%'><Values>130312104000 | 46 | 1 | 130312103500 | 46 | 1 | 130312103000 | 46 | 1 | 130312102500 | 46 | 1 | 130312102000 | 46 | 1 | 130312101500 | 46 | 1 |
130312101000 ¦ 47 | 1 | 130312100500 | 47 | 1 | 130312100000 | 47 | 1 | 130312095500 | 47 | 1 | 130312095000 | 47 | 1 | 130312094500 | 47 | 1 | 130312094000 | 47 | 1 |
</Values> <Min>130312104000 ¦ 46 | 1</Min><Max>130312101000 ¦ 47 | 1</Max>
</Par>
</Parameters>
</Prot>
</Response>
Greeting Juppie