sending cvs file's no template's

70 views
Skip to first unread message

jschoonh

unread,
Feb 6, 2022, 9:54:02 AM2/6/22
to weewx-user
initially a global question:
At the moment I run wheater hub via a stripped xp laptop. This generates graph.jpg's and cvs files and store's data on my NAS. On my web site, I built a weather page's with HTML, CSS, Java and PHP.
Now bought a cheap HP thinclient t620 with 2 SSDs (€ 49) and installed Linux Mint (light) and this run's perfect.
Weewx also installed and tested with my la crosse ws2357 and that works fine to. Export to weather site's running fine.
The next step would be to use weewx to send a *.cvs file (in stead of template's) with ftp every 2 minutes to my site containing all current data, hourly high low data, per day all high low data, rain per hour, per day, per 24 hours. And the all-time extremes in temperature, wind, precipitation, etc. I'm not looking for a ready-made solution, but more whether this is possible.

matthew wall

unread,
Feb 6, 2022, 10:27:29 AM2/6/22
to weewx-user
On Sunday, February 6, 2022 at 9:54:02 AM UTC-5 mie...@gmail.com wrote:
The next step would be to use weewx to send a *.cvs file (in stead of template's) with ftp every 2 minutes to my site containing all current data, hourly high low data, per day all high low data, rain per hour, per day, per 24 hours. And the all-time extremes in temperature, wind, precipitation, etc. I'm not looking for a ready-made solution, but more whether this is possible.

definitely feasible.  first install a service that emits your data to csv.  maybe something like this:


then create an ftp 'report' that transfers the csv.  in your weewx config file, do something like this:

[StdReport]
    [[FTP]]
        ...
        HTML_ROOT = path/to/directory/containing/csvfile

similar configuration if you want to use rsync instead of ftp.

note that this will not do your daily summaries (high/low).  to do that you'd have to modify the csv generator to emit the summary data in addition to the current conditions.

 

jschoonh

unread,
Feb 6, 2022, 12:27:52 PM2/6/22
to weewx-user
Matthew
Thank you!
That is a big step in the right direction. I have now a csv file that displays current data for each loop. But I see that the values are in F.
I can convert that to metric at "receipt" if that is not possible in weewx. I can move forward now :-)

Op zondag 6 februari 2022 om 18:27:29 UTC+3 schreef matthew wall:
Reply all
Reply to author
Forward
0 new messages