Video How To - Monitor your Refrigerator
-
I have now solved this problem with Fahrenheit instead of Celcius.
I had to change to this --->
float temperature = static_cast<float>(static_cast<int>((dallasTemp.getTempCByIndex(i)) * 10.)) / 10.;From this --->
float temperature = static_cast<float>(static_cast<int>((gw.getConfig().isMetric ? dallasTemp.getTempC(dallasAddresses[i]) : dallasTemp.getTempF(dallasAddresses[i])) * 10.)) / 10.;Now it gives me celcius.
Thanks for nice example. -
When I arrived at work today and started checking mails, I had received a bunch of them saying that the temperature in the fridge was too high, so I had to drive home and close the door. I would have gotten a notification earlier through jabber if the server software we use for jabber wasn't acting up :(.
MySensors stuff was not involved in that particular sensor (esic sensor + tellstick + perl + perl), but the need to monitor this stuff was definitely there. -
When I arrived at work today and started checking mails, I had received a bunch of them saying that the temperature in the fridge was too high, so I had to drive home and close the door. I would have gotten a notification earlier through jabber if the server software we use for jabber wasn't acting up :(.
MySensors stuff was not involved in that particular sensor (esic sensor + tellstick + perl + perl), but the need to monitor this stuff was definitely there. -
I'm sorry to ask a seemingly dumb question, but what do I need to do to get a third Dallas sensor to work? (I have a top/bottom fridge and a deep freezer).
I edited the following lines:
DeviceAddress dallasAddresses[] = {
{0x28, 0x29, 0x4F, 0x1, 0x0, 0x0, 0x80, 0xBB}, //Freezer Address -- Modify for your sensors
{0x28, 0x22, 0x53, 0x1, 0x0, 0x0, 0x80, 0x1E}, //Fridge Address -- Modify for your sensors
** {0x28, 0xA6, 0x58, 0x1, 0x0, 0x0, 0x80, 0x58} //Deep Freezer I added**// set the temp resolution
for (uint8_t i = 0; i < 3; i++) { //i changed from 2// Present temp sensors to controller
** for (int i = 0; i < 3; i++) { // i changed from 2**
gw.present(i, S_TEMP);// Read temperatures and send them to controller
** for (int i = 0; i < 3; i++) { //i changed from 2**I'm not sure what I'm missing. Thank you in advance for your help and great project!!!
-
I'm sorry to ask a seemingly dumb question, but what do I need to do to get a third Dallas sensor to work? (I have a top/bottom fridge and a deep freezer).
I edited the following lines:
DeviceAddress dallasAddresses[] = {
{0x28, 0x29, 0x4F, 0x1, 0x0, 0x0, 0x80, 0xBB}, //Freezer Address -- Modify for your sensors
{0x28, 0x22, 0x53, 0x1, 0x0, 0x0, 0x80, 0x1E}, //Fridge Address -- Modify for your sensors
** {0x28, 0xA6, 0x58, 0x1, 0x0, 0x0, 0x80, 0x58} //Deep Freezer I added**// set the temp resolution
for (uint8_t i = 0; i < 3; i++) { //i changed from 2// Present temp sensors to controller
** for (int i = 0; i < 3; i++) { // i changed from 2**
gw.present(i, S_TEMP);// Read temperatures and send them to controller
** for (int i = 0; i < 3; i++) { //i changed from 2**I'm not sure what I'm missing. Thank you in advance for your help and great project!!!
@Krieghund
Ok, I think I found it. I needed to have the door sensors start at a higher ID:int doorChildren[] = {3, 4}; //i changed from 2,3
Thank you
-
@Krieghund
Ok, I think I found it. I needed to have the door sensors start at a higher ID:int doorChildren[] = {3, 4}; //i changed from 2,3
Thank you
-
any chance this has been updated to 2.0? I am having issues getting the internal pull up for the temp sensors working.
-
any chance this has been updated to 2.0? I am having issues getting the internal pull up for the temp sensors working.
-
my 4.7k resistors showed up today. So i will try with the external.
I have been able to get basic arduino sketches to work with the internal pull up and the temp sensor. but as soon as I put mysensors on it, it doesn't pick it up any more. That's why i figured i would see if you updated your sketch to 2 without the need for the external
-
my 4.7k resistors showed up today. So i will try with the external.
I have been able to get basic arduino sketches to work with the internal pull up and the temp sensor. but as soon as I put mysensors on it, it doesn't pick it up any more. That's why i figured i would see if you updated your sketch to 2 without the need for the external
-
I can only imagine. I have seen your youtube channel. jealous
-
This is my first sensor so be nice if I'm missing something obvious. :smile:
Your sketch has #include <MySensor.h>
In the mysensors library it is MySensors.h with an s
If I change it to #include <MySensors.h> with the s then on the line with MySensor gw; I get the error: 'MySensor' does not have a name type.
I'm trying to figure out how everything works together but can't figure this out.
For reference, my programming background consists of an 8th grade computer class where we learned to make something go from one side of the monitor to the other and yes, it was all green.
-
This is my first sensor so be nice if I'm missing something obvious. :smile:
Your sketch has #include <MySensor.h>
In the mysensors library it is MySensors.h with an s
If I change it to #include <MySensors.h> with the s then on the line with MySensor gw; I get the error: 'MySensor' does not have a name type.
I'm trying to figure out how everything works together but can't figure this out.
For reference, my programming background consists of an 8th grade computer class where we learned to make something go from one side of the monitor to the other and yes, it was all green.
-
@TXSpazz This difference depends on what version you are using. For version 2 it is Mysensors.h . Earlier versions used Mysensor.h.
-
@mbj Thank you, I was wondering if that was it. I started trying to convert it but since I haven't slept in 23 hours it made my brains hurt, but at least I know what direction to go now.
-
Hello,
Great work. I've watched almost all your videos. Very instructive.
One thing I am wondering about are the gray connectors 'knob like' to quickly wire your cables together. What are they? Where can I buy me some? :bowtie:
@jmkhael Are you talking about wire nuts perhaps (at least that's what I call them)? I get mine from a local store. http://www.harborfreight.com/158-piece-wire-connector-assortment-67520.html but it looks like ebay has some too. http://www.ebay.com/itm/70Pcs-Electrical-Wire-Twist-Connector-Nut-Terminals-Cap-Spring-Insert-Assortment-/401077102029?hash=item5d620ee5cd:g:5~sAAOSwe7BWzS4k