Page 1 of 1

FTP a chart?

Posted: Thu 30 May 2024 8:24 am
by Defenderdogs
Is it possible to send a chart to an external server (not a website) via FTP? I am trying to display a chart of historical soil moisture on a touchscreen that is part of a home automation system (Crestron). It's purely for information but is part of the automation of a sprinker system where the current soil moisture value is used to determine whether a zone should be irrigated or not. I use the local API to retrieve the current values, but it would be great were I able to place a chart on the touchpanel too. I can't see an obvious way to do this after souring the Settings.

I can probably use an external service (eg Plotly) to take the time series values and create the chart, but 'route 1' would be to use the chart from cumulusmx.

Thoughts most welcome!

Re: FTP a chart?

Posted: Thu 30 May 2024 10:40 am
by mcrossley
Cumulus MX does not create the charts as images, they are drawn as required in your client browser from a data file. The software used (currently!) is HighCharts.

Re: FTP a chart?

Posted: Thu 30 May 2024 10:52 am
by water01
Far be it from to question the oracle but is that quite true Mark.

All of the charts I have created in Highcharts and the Select a Chart and the others in CumulusMX have a small box in the top right hand corner of the chart.

If you click on that it allows you to save the chart as a .png, .jpg, .pdf or .svg file. There are also print chart options which if you pointed it to right print driver should allow you save it in all sorts of options. You can then send the file via the extra files option to the server or setup your own FTP session and automate it.

Just a suggestion.

Re: FTP a chart?

Posted: Thu 30 May 2024 11:11 am
by mcrossley
It's an idea David, but CMX isn't generating that chart image, you as a human are doing it. So not something you could automate easily - unless you invoke a screen clicker, or use the HighCharts export module (either sending the data to HighCharts for rendering, or setting up your own export server). https://www.highcharts.com/docs/export- ... e-overview