That did sort of work. Fileparse.py runs because I put some "write what you read" stuff in the file and that is all there.
But nothing gets through to the web page. ???????????????????? On Wednesday, April 26, 2017 at 2:44:53 PM UTC+12, gjr80 wrote: > > Hi, > > I have never used fileparse myself but WeeWX drivers are normally > specified without the .py. Try: > > [FileParse] > poll_interval=2.5 > path=/home/pi/obs_data > driver=user.fileparse <http://user.fileparse.py/> > > You will need to stop/start weeWX after the chnage. > > Gary > > On Wednesday, 26 April 2017 11:20:17 UTC+10, Ian Boag wrote: >> >> Using weewx 3.3.1 >> >> weewx.conf says >> >> station_type=FileParse >> ***** >> [FileParse] >> poll_interval=2.5 >> path=/home/pi/obs_data >> driver=user.fileparse.py >> >> Went looking for fileparse.py on my Pi and found it in >> >> /.Trash-0/files/weewx_3.3.1/extensions/fileparse/bin/user/fileparse.py >> >> So I copied that to >> >> /home/weewx/bin/user/fileparse.py >> >> When I fire it all up I get .... >> >> Apr 26 12:48:42 DietPi weewx[8612]: engine: Using configuration file >> /home/weewx/weewx.conf >> Apr 26 12:48:42 DietPi weewx[8612]: engine: Initializing engine >> Apr 26 12:48:42 DietPi weewx[8612]: engine: Loading station type >> FileParse (user.fileparse.py) >> Apr 26 12:48:42 DietPi weewx[8612]: engine: Caught unrecoverable >> exception in engine: >> Apr 26 12:48:42 DietPi weewx[8612]: **** No module named py >> Apr 26 12:48:42 DietPi weewx[8612]: **** Traceback (most recent call >> last): >> Apr 26 12:48:42 DietPi weewx[8612]: **** File >> "/home/weewx/bin/weewx/engine.py", line 831, in main >> Apr 26 12:48:42 DietPi weewx[8612]: **** engine = >> EngineClass(config_dict) >> Apr 26 12:48:42 DietPi weewx[8612]: **** File >> "/home/weewx/bin/weewx/engine.py", line 71, in __init__ >> Apr 26 12:48:42 DietPi weewx[8612]: **** >> self.setupStation(config_dict) >> Apr 26 12:48:42 DietPi weewx[8612]: **** File >> "/home/weewx/bin/weewx/engine.py", line 94, in setupStation >> Apr 26 12:48:42 DietPi weewx[8612]: **** __import__(driver) >> Apr 26 12:48:42 DietPi weewx[8612]: **** ImportError: No module >> named py >> Apr 26 12:48:42 DietPi weewx[8612]: **** Exiting. >> >> So I am missing something here. Bound to be simple ... :-( >> >> Ian B >> >> -- 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]. For more options, visit https://groups.google.com/d/optout.
