Page 1 of 1
Extra Web Files - option to append line rather than overwrite?
Posted: Wed 26 Jan 2022 7:16 pm
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
Re: Extra Web Files - option to append line rather than overwrite?
Posted: Wed 26 Jan 2022 7:47 pm
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
Re: Extra Web Files - option to append line rather than overwrite?
Posted: Wed 26 Jan 2022 8:52 pm
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!
Re: Extra Web Files - option to append line rather than overwrite?
Posted: Thu 27 Jan 2022 10:41 am
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.