Maybe it would be better to use the driver: fileparse.py.
On Wednesday, September 20, 2023 at 12:18:25 PM UTC+12 Craig Young wrote: > Maybe I should try a new tact. I have a datalogger which is outputting > weather data every 15 seconds and is received on the Raspberry Pi through > the USB0 serial port. Using CuteCom here is a sample data record: > > <"2023-09-20 > 12:11:30",13.65,24.91,737,0,0,0,0,1.5,167,1.96,18.1,1.52,101.15,0.745,21.3,0.8,-1.1,-14.1105,0.5613659,323.5677>␍␊ > I have written the program on the datalogger to do this so I can change > the data format if needed. > > What I need to do now is import this into weewx. I assume I need a driver > (or extension?) to do this but that is where the problems begin. This is > not for the feint of heart. I have written tons of software in other > languages for other applications, but all on windows. I have a Raspberry > Pi now running and have written a small python program to use the Serial > instruction to read the data stream and even post this after formatting to > wunderground. So I am not stupid, just a very long learning curve to do a > simple thing. > I found the TWI.py driver and it looks simple enough to modify for this > application, but given my inexperience with linux and weewx I see lots of > problems ahead. > > Is there someone on here who could spend a couple of hours or so on > Discord or Skype to help me either modify TWI.py or write a new driver for > weewx? > > Craig > On Wednesday, September 20, 2023 at 10:44:51 AM UTC+12 Craig Young wrote: > >> I have installed and configured a new driver in my weewx installation, >> TWI.py. But before I launch weewx I need to make a couple of changes to >> the driver. What is the correct method for doing that? Do I: >> 0: Stop weewx >> 1. Open driver (located in usr folder) with Thonny >> 2. Make the changes and save >> 3. Start weewx >> or do I need to reconfigure it first? >> >> -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/319c9890-4b95-4ad2-a57d-7223cf35327dn%40googlegroups.com.