Thank you! It works! For those curious, I've got Meteobridge every 15 seconds doing an HTTP call (under Services):
http://10.0.2.18/meteo_weewx_input.php?w=[epoch],[thb0seapress-act=inHg],[thb0press-act=inHg],[thb0temp-act=F],[th0temp-act=F],[thb0hum-act],[th0hum-act.0],[wind0avgwind-act=mph],[wind0dir-act],[wind0wind-hmax=mph],[wind0maxdir-act],[rain0rate-act=in],[rain0total-daysum=in],[th0dew-act=F],[wind0chill-act=F],[th0heatindex-act=F That's my weewx box. On that box, I've got just a simple PHP parsing that input and dumping it out to the file that fileparse is looking at. <?php $file = '/var/tmp/datafile'; $w = $_GET['w']; $array = explode(',', $w); $ouputArray = array(); $outputArray[] = "dateTime=" . $array[0]; $outputArray[] = "barometer=" . $array[1]; $outputArray[] = "pressure=" . $array[2]; $outputArray[] = "inTemp=" . $array[3]; $outputArray[] = "outTemp=" . $array[4]; $outputArray[] = "inHumidity=" . $array[5]; $outputArray[] = "outHumidity=" . $array[6]; $outputArray[] = "windSpeed=" . $array[7]; $outputArray[] = "windDir=" . $array[8]; $outputArray[] = "windGust=" . $array[9]; $outputArray[] = "windGustDir=" . $array[10]; $outputArray[] = "rainRate=" . $array[11]; $outputArray[] = "rain=" . $array[12]; $outputArray[] = "dewpoint=" . $array[13]; $outputArray[] = "windchill=" . $array[14]; $outputArray[] = "heatindex=" . $array[15]; $output = implode("\n",$outputArray); file_put_contents($file, $output); echo "Success"; ?> Now, on to both removing all the Simulator data, and importing old data.... =) Thanks all! Couldn't have done it without you! -Ryan Stasel On Wednesday, May 6, 2020 at 7:02:11 PM UTC-7, gjr80 wrote: > > Actually, that’s not quite right. In the absence of a dateTime field the > fileparse driver will use system time. If a dateTime field is provided it > should override the default. The dateTime field should be an epoch > timestamp, fileparse will return it as a float rather than an int, that may > cause a problem down the line. But that is not the problem you have just > now. > > Gary -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/02134670-f95a-4612-a142-610d7a9eb0f8%40googlegroups.com.
