I just ordered the motion/temperature tag and the receiver unit. It cost me about $50.00 for everything. My goal was to be able to monitor temperature in a Hot Tub.
Ordering was easy, delivery just a bit slow but not unreasonable. I contacted customer support and was able to get a person speaking broken english. He looked up my order and was able to confirm that it would go out the next day. I received numerous shipping updates and was impressed with their automation. This feels like a small startup company but I see that they have been around for awhile so they must be doing something right.
I received the order in a surprisingly small package. The setup was straight forward and simple through my iPhone.
I put the tag into a small water-tight Tupperware style container, tossed it into the hot tub and it has worked flawlessly ever since. I am getting good solid temperature readings (after an easy calibration) and I get a motion notification when the HotTub pump stirs the water when the heating cycle begins. At first, I thought this was a bit silly but have decided it's nice to know the schedule (for heating the spa) I have set up in Indigo is firing perfectly.
My next goal will be to figure out a way for Indigo to poll the tag data. All calls to tags are done through their web server. I don't think there is a way to talk directly to the receiver or the tag... it's all done through their server.
They have some documentation about the API at
http://wirelesstag.net/apidoc.html but I don't really know much about AJAX or JSON so I have hit my competency level.
I was able to create a web page and store it on my web site. When I pull the page up I get the the temperature in Fahrenheit and display it on the web page. I will post my code below.
What would be nice is if I could issue a curl command within Indigo to snag that number generated by my web page then add it to a variable. I will be working on that but if you have the JSON/AJAX/CURL chops perhaps you could assist.
I think there is a lot of potential here. Care to dive in?
Wireless Tags can be found at:
http://wirelesstag.netHere is the obscured code from my two PHP pages. I cobbled this together from WirelessTags documentation.
This page presents just the number....
- Code: Select all
<?php require('HotTubTagTemp.php'); ?>
<div class="TheTemp">
<?php echo $TheTemp;?>
</div>
This is the page on the code which generates the data...
- Code: Select all
<!--
This page is a support page for Indigo Home Automation. It connects Wiresless Tags
temperature info and makes it available when it is called via a CURL command
and places it into a variable on the Rosi Server
-->
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>
$.ajaxSetup({
type: "POST",
contentType: "application/json; charset=utf-8",
cache: false,
dataType: "json",
xhrFields: {
withCredentials: true
}
});
$.ajax({url: "https://my.wirelesstag.net/ethLogShared.asmx/GetLatestTemperatureRawDataByUUID",
data: JSON.stringify({uuid: "MyUUIDGetsInsertedHere"}),
success: function (retval, textStatus) {
$("#displayx").text(((retval.d.temp_degC * 1.8) + 32).toFixed(0));
$("#datetime").text(retval.d.time);
},
error: function (xhr, textStatus, exception) {
alert(textStatus);
}
});
</script>
</head>
<body>
<?php $TheTemp = ('<span id="displayx" style="font-size: 36px;"></span>');
echo $TheTemp;
?>
</body>
</html>