Replies: 17 comments 6 replies
-
Hmm, could you set it to show both graphs and enclosures. Then reload the page. And then look at the browser console. I suspect a javascript error. https://appuals.com/open-browser-console/ And look for the 'console' where javascript errors can appear. If there are, please make a screenshot or copy the contents and post it here. |
Beta Was this translation helpful? Give feedback.
-
Ok,
This is what I get.
main.js:290 Uncaught (in promise) TypeError: Reduce of empty array with no initial value
at Array.reduce (<anonymous>)
at h2 (main.js:290:15745)
at main.js:310:32167
at Array.map (<anonymous>)
at main.js:310:31930
at main.js:31:7318
at Generator.next (<anonymous>)
at r (main.js:31:6174)
h2 @ main.js:290
(anonymous) @ main.js:310
(anonymous) @ main.js:310
(anonymous) @ main.js:31
r @ main.js:31
Promise.then (async)
Mo @ main.js:1
(anonymous) @ main.js:1
Nt @ main.js:1
(anonymous) @ main.js:310
Em @ main.js:24
(anonymous) @ main.js:27
Mm @ main.js:27
Promise.then (async)
Im @ main.js:27
qE @ main.js:27
(anonymous) @ main.js:27
(anonymous) @ main.js:290
Hc @ main.js:1
Promise.then (async)
Mo @ main.js:1
Hc @ main.js:1
Promise.then (async)
Mo @ main.js:1
(anonymous) @ main.js:1
Nt @ main.js:1
(anonymous) @ main.js:290
o @ main.js:27
n2 @ main.js:290
It @ main.js:27
a2 @ main.js:290
n8 @ main.js:558
It @ main.js:27
r8 @ main.js:562
(anonymous) @ main.js:562
(anonymous) @ main.js:562
From: TheYOSH ***@***.***>
Sent: Tuesday, April 4, 2023 5:17 PM
To: theyosh/TerrariumPI ***@***.***>
Cc: steveava ***@***.***>; Author ***@***.***>
Subject: Re: [theyosh/TerrariumPI] Dashboard graphics and enclosures (Discussion #791)
Hmm, could you set it to show both graphs and enclosures. Then reload the page. And then look at the browser console. I suspect a javascript error.
https://appuals.com/open-browser-console/
And look for the 'console' where javascript errors can appear. If there are, please make a screenshot or copy the contents and post it here.
—
Reply to this email directly, view it on GitHub <#791 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJPF2DYZID4LO7GARKKLFBLW7RCRJANCNFSM6AAAAAAWQHQESU> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AJPF2D3IUSAH5JXFYXZAEUTW7RCRJA5CNFSM6AAAAAAWQHQESWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAKRDJY.gif> Message ID: ***@***.*** ***@***.***> >
…--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
|
Beta Was this translation helpful? Give feedback.
-
Hmm, not sure what is causing the error. So I tried to see if I could find something. Do if you do a If that does not solves it, I need to think a bit more. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Just to add information and again not sure if its related, I also tried to make use of the calendar for veg nutrient levels and dates. I made an entry for feeding start date and although it was acepted, it didn't show in the calendar. |
Beta Was this translation helpful? Give feedback.
-
Think I may have discovered a setting that stops the graphs from displaying in Dashboard. I have two Enclosures with separate nutrient tanks with their own pump, heater and temperature sensors. The Exclude Average on the temperature sensors is turned on as the two systems are separately controlled. Switching them off seem to make a difference to how things are displayed in dashboard and the console error disappears. However this doesn't make both enclosures display details, only one seems to show up. And the calendar displays the same error regardless. |
Beta Was this translation helpful? Give feedback.
-
I found the bug, and I updated the code. So do a And you second enclosure is correct, try clicking on the title ;) |
Beta Was this translation helpful? Give feedback.
-
Ah yes, clicking the title does show Enclosure details. Not sure why I didn't try that before!! Done a git pull on one pi and it updated. Refreshed browser but it still doesn't show the graphs for each enclosure unless I enable the sensor averaging. The second pi is a little odd. Had this when trying a git pull. |
Beta Was this translation helpful? Give feedback.
-
Ok, understand. Any thoughts on the calendar not displaying entries? |
Beta Was this translation helpful? Give feedback.
-
Hmm, easiest is to run in debug mode. So make sure TerrariumPI is stopped: https://theyosh.github.io/TerrariumPI/faq/how-to-start-stop-restart-and-disable-enable-terrariumpi/ And then run it in debug mode: https://theyosh.github.io/TerrariumPI/faq/how-to-debug-terrariumpi/ Then you can try to load the calendar. I expect some errors showing up in the console. If you can post that here, I can have a look what is happening. |
Beta Was this translation helpful? Give feedback.
-
This is what I get from debug. Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
Ok, do a |
Beta Was this translation helpful? Give feedback.
-
Tried to make a an entry for yesterday and you get the dialog box to fill out and save as before but it still doesn't show in calendar. The little icon at the top of the page shows a "1" in a small blue box but nothing on the calendar. Get this in browser console which is a different error. |
Beta Was this translation helpful? Give feedback.
-
Looks like we get the same error refreshing the calendar and I also tried to add an entry. When you click the save button you get the same error. /home/pi/TerrariumPI/venv/lib/python3.7/site-packages/bottle.py:3383: DeprecationWarning: Absolute template path names are deprecated. |
Beta Was this translation helpful? Give feedback.
-
Tried that several times already and still get this, although it did update some files earlier. |
Beta Was this translation helpful? Give feedback.
-
Yep, been restarted several times. Git Status: |
Beta Was this translation helpful? Give feedback.
-
Tried git pull --rebase, then git checkout main to get back to the main branch. Tried git pull, still get the same git status response(above screen shot). Still getting this on a git pull. Haven't seen this in past git pulls. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have added a second enclosure to TP and seem to have lost graphs on the Dashboard as well as details of the second enclosure.
Dashboard mode seems to be set correctly.
When changing to "Only graphs", I get the usual "Up Time, Power Usa.................. etc. but no graphs. If I change to "Only enclosures " I get this.
If I change back to "Graphs and enclosures I lose the graphs as well as the second enclosure details(top image),
I have a second RPI/TP that also doesn't display the graphs on the Dashboard but there is only one enclosure on that setup.
Cant seem to find any other settings that would change Dashboard behaviour so just wondered if I have missed a setting somewhere.
Any help would be appreciated.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions