Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Extra Web Files - option to append line rather than overwrite?

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
whitling2k
Posts: 31
Joined: Thu 22 Jul 2021 8:03 pm
Weather Station: Ecowitt GW1103
Operating System: Raspberry PiOS
Contact:

Extra Web Files - option to append line rather than overwrite?

Post by whitling2k »

Hi there,

I am currently using CumulusMX to create a text file with one line at every interval, and then taking this file and appending it onto the end of a running log to create a custom chart.

Is it possible for CumulusMX to append the resulting extra webfile line to the output rather than replacing it? Some syntax for the template perhaps?

Regards
User avatar
rogerthn
Posts: 489
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Extra Web Files - option to append line rather than overwrite?

Post by rogerthn »

whitling2k wrote: Wed 26 Jan 2022 7:16 pm Hi there,

I am currently using CumulusMX to create a text file with one line at every interval, and then taking this file and appending it onto the end of a running log to create a custom chart.

Is it possible for CumulusMX to append the resulting extra webfile line to the output rather than replacing it? Some syntax for the template perhaps?

Regards
I do not know if possible to append the resulting extra webfile line to the output rather than replacing it.
BUT
I do have bash scripts do "extend" functionality.
Have a look under Internet Settings - External Programs
Image
User avatar
whitling2k
Posts: 31
Joined: Thu 22 Jul 2021 8:03 pm
Weather Station: Ecowitt GW1103
Operating System: Raspberry PiOS
Contact:

Re: Extra Web Files - option to append line rather than overwrite?

Post by whitling2k »

hhhmm.. Interesting. My current workflow uses CRON to at interval+1 minute to append the single line to a cumulative CSV, then at interval +2 minutes, it cuts the file to the last 320 lines + header, which allows Highcharts to plot ~80hrs of recent data.

I guess I could do this via MX if I were to convert my CRON commands to a Bash script?

I hadn't thought of that to be honest!
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Extra Web Files - option to append line rather than overwrite?

Post by mcrossley »

rogerthn wrote: Wed 26 Jan 2022 7:47 pm I do not know if possible to append the resulting extra webfile line to the output rather than replacing it.
BUT
I do have bash scripts do "extend" functionality.
Have a look under Internet Settings - External Programs
It isn't possible, but using the external program as you have is the way I would do it as it would then run after the file had been processed, and if you stop MX, then the appends would also stop.
Post Reply