Thank you both for your advice and input. In the end I have taken a bit of advice from both you you and some other information I found online, and in the interests of keeping things simple have managed to get my Ecowitt uploading data files to a directory on the raspberry Pi and have written a small python script that reads these and inserts them into the database, and this is run as a service very similar to the way I insert the CPU temperature
One thing I am keen to try is using the config file to define the directory as you show above Vince, but that will have to wait till I have time to experiment on my "spare" raspberry Pi. Not trying that on my live system. So for the time being the directory is defined as a constant On Wednesday, January 13, 2021 at 6:45:37 PM UTC vince wrote: > On Wednesday, January 13, 2021 at 3:09:29 AM UTC-8 [email protected] > wrote: > >> That sounds interesting, is there some documentation that shows how to >> control where the data goes when running it as a service? >> >> > There is - see > https://github.com/gjr80/weewx-gw1000/wiki/Available-config-options > > Here's the mapping I use as a driver, FWIW. Works great. You'd > probably want to also override the inside temp and inside humidity items to > extraTempN and extraHumidN for your scenario where you want the Ecowitt > items to add to your Davis measurements. Maybe more items such as the > battery status as I did below. > > I'd lean toward disagree with Ian's suggestion to use a secondary db, as > it's not really needed, but there are lots of ways to get there. > > I specify the gateway ip address since it's on a different subnet than the > weewx pi. > > # Options for 'GW1000' > [GW1000] > driver = user.gw1000 > ip_address = 192.168.2.20 > port = 45000 > poll_interval = 20 > > #--- the defaults map inTemp, inHumidity, outTemp, outHumidity > #--- and the extraTemp1-8 and soilMostN items automagically > #--- but we need to add the battery status mappings > [[field_map_extensions]] > # outTemp > outTempBatteryStatus = wh26_batt > # extraTemp1-8 > batteryStatus1 = wh31_ch1_batt > batteryStatus2 = wh31_ch2_batt > # soilMost1 = channel autoselects on first use > batteryStatus8 = wh51_ch1_batt > > > > -- 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/31fa642d-b923-4acc-a8d1-8fafad463493n%40googlegroups.com.
