Author |
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: October 10 2010 at 16:50 | IP Logged
|
|
|
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 |
|
|
patrickm Senior Member
Joined: February 22 2007 Location: United States
Online Status: Offline Posts: 188
|
Posted: October 10 2010 at 17:12 | IP Logged
|
|
|
Thanks for the much simpler alternatives.
|
Back to Top |
|
|
syonker Senior Member
Joined: March 06 2009 Location: United States
Online Status: Offline Posts: 212
|
Posted: October 10 2010 at 22:45 | IP Logged
|
|
|
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 |
|
|
spou Newbie
Joined: July 28 2007 Location: Canada
Online Status: Offline Posts: 33
|
Posted: October 20 2010 at 08:04 | IP Logged
|
|
|
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 |
|
|