-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chart not showing #11
Comments
Hi, |
I have to rewire the controller so it's just powered by usb, but the kiln is running and also producing an .cvs file which I can open, the chart is just not showing the current running program and the mentioned error is in the chrome console log. I'll get back to you with a debug output, hopefully tomorrow. |
Thank your for your really fast answer! Yes I updated all the libraries and framework to the newest versions beforehand and everything compiles fine. I attached a debug log, but i don't think there is anything in it. But I found something strange, when I load the program, the chart is showing until the program is started, then it's gone. |
chart.js also differs |
I have to sit on it, perhaps there are some other changes on ESP2.0.x framework, not only SPIFFS handling, that mess with file processing. |
I'm actually not even sure if this is backend problem. The file is there, but we are requesting wrong path for some reason. I didn't investigated how your code works, but here are some thougths:
|
Okay, i found the issue: |
So as I said - it's because ESP2.0.x changes in handling Spiffs - I must oversee it (see this bug) |
https://github.com/espressif/arduino-esp32/releases/tag/2.0.0 |
I'll take a look - it should be simple, but needs testing.
This is done by webserver - probably there is something more going on than just filepath.
Only 3 files can be served externally
|
Note, only Line 333 in 37ab4be
Line 438 in 37ab4be
Line 504 in 37ab4be
Line 645 in 37ab4be
I changed that and everything is working so far.
No, if i request any file that doesn't exists, it returns 500, not 404.
I mean here Line 754 in 37ab4be
and here Line 768 in 37ab4be
different versions of Chart.min.js are specified
|
I can confirm that changing Thank you for investigating @djObsidian and @Saur0o0n . |
Yah, I know - l've checked it yesterday, but I wanted to test it on full device (that I don't have at home) - not only on esp32 board, like previous bugfixes and changes. I've pushed those changes (and some memory stuff) - but there is more... |
I'm closing this one - I've pushed checked code, with some other fixes. |
First of all thank your for this awesome work.
I updated today to the newest version first after having some issues with the temperature readings, now the chart on the Main Page is no longer showing. I think it's an issue with the log file location, at least that's what i was able to determine with my limited knowledge. I tried to grasp the interactions between the PIDKiln_vars.json, chart.js and the PIDKiln_logs.ino.
The Chrome developer tools show an Error 500 when the charts.js tries to read the .csv, as it is looking for it in the current folder and not in the logs folder.
GET http://192.168.51.138/211210_105721.csv 500 (Internal Server Error) request @ chartjs-datasource.min.js:7 beforeUpdate @ chartjs-datasource.min.js:7 notify @ Chart.2.9.3.bundle.min.js:7 update @ Chart.2.9.3.bundle.min.js:7 chart_update @ chart.js:163 setTimeout (async) chart_update @ chart.js:164 Uncaught TypeError: Cannot read properties of undefined (reading 'datasets') at chartjs-datasource.min.js:7:9686 at n.<anonymous> (chartjs-datasource.min.js:7:10087) at XMLHttpRequest.n.onreadystatechange (chartjs-datasource.min.js:7:775)
If you need any more information I'd be happy to help.
The text was updated successfully, but these errors were encountered: