Controlling a module based on Weather

Started by LostDog88, March 22, 2019, 12:53:43 PM

Previous topic - Next topic

LostDog88

I have a heat lamp for my barn cats. Sometimes it gets cold at night. I want to be able to control this based on the weather underground module. I have a key and get weather updates to HG (RPI).

I want to make that light come on when the temp gets low and go off when the temp is warm. Night or day.

Is there a way to do this?

Tuicemen

Yes! however with weather underground now not handing out free api keys Gene removed weather underground from HG so newer versions will not have WU.
I created a HG app (program/script) using info from open weather which Gene now includes, or you can get it from the package manager
You can create a wizard script or use the wizard script I posted I believe it was for temperature but you can change the values.
The script and directions for setup can be found in the User created HG Scripts (programs) section
Please Read Topic:
General Forum Etiquette
Before you post!

LostDog88

Thanks a zillion.

I will work on this over the weekend! I'm excited and my cats will be happy and warm!

Cheers!

>! >!

Tuicemen

I use simular scripts to keep my Koi pond open during freezing temperatures, as well I lock my solar tracker during windy times to prevent damage. ;)
Please Read Topic:
General Forum Etiquette
Before you post!

LostDog88

I got it to update the OW module.

There are so many choices for the trigger. I just want a simple if/then:

If temp is under XX turn on light.
If temp is over XX turn off light.

I don't seem to be able to make this happen. The light is off and should be turning on at each update of OW? Right?

Tuicemen

Did you download the weather triggers and install them from http://forums.x10.com/index.php?topic=30857.0
They are set to turn a x10 device On and a specified temp and the other turns it Off when the value is greater then a specified temperature
you merly need to change the module and temperature values in each program
Please Read Topic:
General Forum Etiquette
Before you post!

LostDog88

I did now! LOL.

Sorry didn't see those I tried to write my own.

I also noticed that they are in Celcius. Is there a way to change the values in your script to Imperial?

Tuicemen

I believe so it has been a while since creating them you just need to play with the options
Please Read Topic:
General Forum Etiquette
Before you post!

LostDog88

I didn't see any options in your script. I imported them and set them to Imperial temps.

As soon as I enabled them the light came on as OW was reporting less than 65 degrees.

We shall see if it goes off later this afternoon as we are expecting warmer temps.

Now to go fix that carb on my boat so we can get out crab fishing this summer!

Tuicemen

Quote from: LostDog88 on March 24, 2019, 10:57:14 AM
I didn't see any options in your script. I imported them and set them to Imperial temps.

As soon as I enabled them the light came on as OW was reporting less than 65 degrees.

We shall see if it goes off later this afternoon as we are expecting warmer temps.

Now to go fix that carb on my boat so we can get out crab fishing this summer!
The weather trigger programs don't have options as they were wizard scripts so they must be manually edited to change values.
I may at some point create a universal program that adds the options directly to the modules like the HG Smart E-mailer does.
However I'm waiting for the new OW program Gene has included in the new HG builds to get more reliable.
Please Read Topic:
General Forum Etiquette
Before you post!

LostDog88

Sorry man. I am still struggling with this.

I have imported your less than temp script. I set the temp to 55 degrees to turn on C10.

when I enable the program it goes to idle (yellow button).

Yet it never activates when the temp goes below the agreed upon degrees. :-(

Tuicemen

If you add it to the layout where the C10 module is, then click on it does it activate C10? ???
Please Read Topic:
General Forum Etiquette
Before you post!

LostDog88

Quote from: Tuicemen on March 25, 2019, 04:16:19 PM
If you add it to the layout where the C10 module is, then click on it does it activate C10? ???

Do you mean add it like a module on the home page?

Tuicemen

Quote from: LostDog88 on March 25, 2019, 05:02:25 PM
Quote from: Tuicemen on March 25, 2019, 04:16:19 PM
If you add it to the layout where the C10 module is, then click on it does it activate C10? ???

Do you mean add it like a module on the home page?
Yes if that is the same page you have the c10 module configured so you can see if clicking the temperature app triggers the C10 module
Please Read Topic:
General Forum Etiquette
Before you post!

LostDog88

Quote from: Tuicemen on March 25, 2019, 05:38:32 PM
Quote from: LostDog88 on March 25, 2019, 05:02:25 PM
Quote from: Tuicemen on March 25, 2019, 04:16:19 PM
If you add it to the layout where the C10 module is, then click on it does it activate C10? ???

Do you mean add it like a module on the home page?
Yes if that is the same page you have the c10 module configured so you can see if clicking the temperature app triggers the C10 module

Okay. Added it to the home page. It has a yellow button showing it is idle.
When I clicked the box the button stayed yellow and the barn cats light came on! To answer your question. Yes. Now to just trigger it based on temp.

SMF spam blocked by CleanTalk