Jump to content
C4 Forums | Control4
  • 0

Temperature Sensor?


onesunnyday

Question

12 answers to this question

Recommended Posts

Posted

The C4-Z2IO has a built in temperature and humidity sensor that is very easily integrated in to control4. This little box is awesome, it even works as a zigbee extender after a recent firmware update.


Posted
58 minutes ago, Thepritch88 said:

The C4-Z2IO has a built in temperature and humidity sensor that is very easily integrated in to control4. This little box is awesome, it even works as a zigbee extender after a recent firmware update.

We have one of these in Bedroom good bit of kit 

Posted

integrated you mean so like you can go to comfort and check a room and see the temp, or just program against it?

if you just want to program against it these pieces are cheap and connect via IFTTT so with the IFTTT driver you can program off its results:

http://wirelesstag.net/

Posted
5 minutes ago, eggzlot said:

Those look cool and they appear to have an open API.  It would be great  if someone wrote a C4 driver.  It appears that an HTML get will retrieve data in JSON format.

Here is the code to get the temp into a web page:

$.ajaxSetup({
	type: "POST",
	contentType: "application/json; charset=utf-8",
	cache: false,
	dataType: "json",
	xhrFields: {
		withCredentials: true
	}
});

$.ajax({url: "https://www.mytaglist.com/ethLogShared.asmx/GetLatestTemperatureRawDataByUUID",
        data: JSON.stringify({uuid: "0f32cb87-eb86-4a60-9e66-e0cfd661cba1"}),
        success: function (retval, textStatus) {
            $("#displayx").text(((retval.d.temp_degC * 1.8) + 32).toFixed(2));
            $("#datetime").text(retval.d.time);
        },
        error: function (xhr, textStatus, exception) {
            alert(textStatus);
        }
       });

 

Posted
51 minutes ago, zaphod said:

The C4-Z2IO are great but they seem kind of expensive to just get a temperature reading.  Aren't they about US$150?

yea i guess they are a bit expensive if your just using it for temp readings, they're £130 here in the UK.

Posted
4 hours ago, zaphod said:

Those look cool and they appear to have an open API.  It would be great  if someone wrote a C4 driver.  It appears that an HTML get will retrieve data in JSON format.

Here is the code to get the temp into a web page:


$.ajaxSetup({
	type: "POST",
	contentType: "application/json; charset=utf-8",
	cache: false,
	dataType: "json",
	xhrFields: {
		withCredentials: true
	}
});

$.ajax({url: "https://www.mytaglist.com/ethLogShared.asmx/GetLatestTemperatureRawDataByUUID",
        data: JSON.stringify({uuid: "0f32cb87-eb86-4a60-9e66-e0cfd661cba1"}),
        success: function (retval, textStatus) {
            $("#displayx").text(((retval.d.temp_degC * 1.8) + 32).toFixed(2));
            $("#datetime").text(retval.d.time);
        },
        error: function (xhr, textStatus, exception) {
            alert(textStatus);
        }
       });

 

for the price with IFTTT integration its nice.  if we could get better integration and the ability to see the temp in C4 that would be great.

Posted
3 hours ago, eggzlot said:

for the price with IFTTT integration its nice.  if we could get better integration and the ability to see the temp in C4 that would be great.

You can always program it to display on a Yatun thermostat driver.

Posted
2 minutes ago, South Africa C4 user said:

You can always program it to display on a Yatun thermostat driver.

there ya go - maybe problem solved, though it wasnt my problem since i only needed it to execute programming vs having to see the actual temp.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.