Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Weather Station Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: October 10 2010 at 16:50 | IP Logged Quote dhoward

Dohh!! After going through and tracing the code and trying to isolate the bug with ph_regexsnap1, Ive found...that it isnt a bug. Just wasnt thinking clearly on how the ph_regexsnap1 function parses and returns its data. When using the occurrence parameter, the next occurrence starts at the end of the matching pattern. I had included a trailing comma so the next occurence match started at the next character following the trailing comma (instead of at the trailing comma like I was thinking), hence the cound started skipping by 2.

Anyways, by removing the trailing comma in the search pattern, ph_regexsnap1 works as expected. Below is the correct syntax for those that wish to play:
Code:
ph_regexsnap1(",\([^,]*\)","\1","[LOCAL1]",1,29,0,0,0)

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
patrickm
Senior Member
Senior Member


Joined: February 22 2007
Location: United States
Online Status: Offline
Posts: 188
Posted: October 10 2010 at 17:12 | IP Logged Quote patrickm

Thanks for the much simpler alternatives.
Back to Top View patrickm's Profile Search for other posts by patrickm
 
syonker
Senior Member
Senior Member
Avatar

Joined: March 06 2009
Location: United States
Online Status: Offline
Posts: 212
Posted: October 10 2010 at 22:45 | IP Logged Quote syonker

Thanks so much for chiming in Dave - really nice to see you on the boards.

...and thanks for the information! I have some time on my hands now and am really working to get my powerhome setup tuned up.   

-S

__________________
"I will consider myself having succeeded when my house becomes sentient and attempts to kill me."

><(((º>`·.¸¸.·´¯`·.¸><(((º>¸.

·´¯`·.¸. , . ><(((º>`·.¸¸.·´¯`·.¸><(((º>
Back to Top View syonker's Profile Search for other posts by syonker Visit syonker's Homepage
 
spou
Newbie
Newbie


Joined: July 28 2007
Location: Canada
Online Status: Offline
Posts: 33
Posted: October 20 2010 at 08:04 | IP Logged Quote spou

Hey!

Sorry for not answering earlyer.

I use the FREEWX software for the WRM968, and use a small VB script loosely based on my LOGTEMP import to read the CSV file.

But my channel 0 (main outdoor sensor) just got the humidity sensor cancer, and it is terminal. So I went and bought the low temperature/humidity sensor (it gets way below -10C here) but this sensor can not use channel 0, so I had to transfert it to channel 1.

Sadly, FREEWX has little if any support and can not use an other channel than 0 for main outdoor, so I'll have to move to an other software that can use channel 1 as main outdoor sensor (probably weather display). So I'll be using the code found here to move the values to PH.

Spou
Back to Top View spou's Profile Search for other posts by spou
 

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

<< Prev Page of 2
  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