Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Making PH Temperature-sensitive Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 18 2015 at 11:03 | IP Logged Quote jeffw_00

Hi - So I was thinking - I have some events that I want to execute, or not, based on a rough feel of outside temperature. I know it's possible to write code to pick the current temperature off the Internet and write it to a file, and I -think- it's possible for PH to read a variable from a file. Before I re-invent the wheel, does anyone have anything like this working - or have any pointers?

Thanks!
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 18 2015 at 15:50 | IP Logged Quote TonyNo

I'm not doing anything like this now, but, you could easily add a macro with a Case function looking at temperature, or, apparent temperature. Then, just add a Timed Event to call it occasionally.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 18 2015 at 15:57 | IP Logged Quote jeffw_00

actually, I figured it out - thanks though.

(perl + ph_readfile)

took like 15 minutes total.

POWERHOME RULES!

(so the electric heater in my laundry room turns on on laundry day, but only on COLD laundry days :-) )

Edited by jeffw_00 - January 18 2015 at 16:02
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum