berwinter / uvr1611

UVR1611 Data Logger Pro
GNU General Public License v3.0
31 stars 22 forks source link

first access to an chart - slowly loading with an error #20

Open nils50122 opened 7 years ago

nils50122 commented 7 years ago

hello,

when i click on a schema with a normal chart, i see the loading circle and after a time there comes an error.

When i reload the page (f5 in browser) the chart is there without an error.

i edit the max_execution_time to 120 seconds but this not solve the problem.

berwinter commented 7 years ago

Looks like that reading all data form the BL-Net/CMI takes a significant amount of time. Do you use a cron-job to update the database regularly? If a lot of datasets are logged in the BL-Net (e.g. each second), but data is only transferred to the Datalogger once a day, reading the data can take more than the allowed execution time. In this scenario it would make sense to use a cron-job to retrieve the data more frequently from the BL-Net (every hour).