A tiny bit off topic here, but I guess this could interest people hanging in this thread: I haven’t found any documentation of the push service (in Robonect beta) so I’ve been trying on my own. Turns out what you choose in the Robonect settings is just when the call occurs. The call itself is always the same, it takes your url and appends some arguments:
?id=075BCE&name=AM&signal=-65&status=17&stopped=0&duration=0&mode=0&battery=100&hours=1319
I’m mainly interested in the status, ie changing the value of my status item in OH, so I did a little PHP for Robonect to call, which in turn calls the OH API to change the value. Just to get you an idea of how it works ![]()
<?php
$itemname = "Automower_Status";
$status = $_GET["status"];
$url = "http://localhost:8080/rest/items/".$itemname;
$options = array(
'http' => array(
'header' => "Content-type: text/plain",
'method' => 'POST',
'content' => $status
)
);
$context = stream_context_create($options);
file_get_contents($url, false, $context);
?>