Only use wee_import without connecting a weather station

90 views
Skip to first unread message

Stein Arne Storslett

unread,
Aug 29, 2022, 5:43:18 AM8/29/22
to weewx-user
Is there a way to only run the weewx database with data through "wee_import" without connecting a weather station?
I.e. just producing the web pages / reports.

Re another thread I have issues getting weewx to connect to my weather station console, the Cotech Weather Station sold by ClasOhlson in the nordics, Europe.

However I've been able to produce data via the station's (somewhat arcane) software WeatherHome so I want to create the reports based on that.

Graham Eddy

unread,
Aug 29, 2022, 7:50:02 AM8/29/22
to WeeWX User
perhaps consider the provided ‘fileparse’ driver - see ~weewx/examples/fileparse/readme.txt

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/fc0712e7-326d-45ed-811b-3e4c6c3a94b0n%40googlegroups.com.

Stein Arne Storslett

unread,
Aug 29, 2022, 9:16:03 AM8/29/22
to weewx-user
Thank you, I've been reading up on fileparse.

The input for "fileparse" has to be key=value so one would have to get a continuous update into the file.
As I'm receiving data off site this would be an issue - I can't expect - not consistently - a stream of updates.
Second, the data I'm receiving now comes as a CSV, so I would have to rewrite into individual events, or just tap into the "Device" table and send that.
Third, there does not seem to be any unit conversion, "wee_import" does support this.

So as I appreciate the feedback, and I really hope it will be useful for somebody else down the line, it does not quite suit my use case.

However, by experimenting I've found out that I don't really need weewx to be running.
"wee_import" will happily create the database - with input from weewx.conf and "wee_reports" will create the appropriate reports.

So to answer my own question.
  1. Install weewx
  2. Configure weewx.conf
  3. Disable weewx from starting (systemctl disable weewx ; systemctl stop weewx) ymmv
  4. Configure the "wee_import" input config file
  5. Run "wee_import" to import
  6. Run "wee_reports" to create the reports.
I wrapped the latter in a script which I can "sudo" from the remote source which ships the logs to my server.
Reply all
Reply to author
Forward
0 new messages