nD-enerserve Forums
Webpage 'No Data Available' - Printable Version

+- nD-enerserve Forums (https://forum.enerserve.eu)
+-- Forum: SmartPi (https://forum.enerserve.eu/forumdisplay.php?fid=1)
+--- Forum: SmartPi - English (https://forum.enerserve.eu/forumdisplay.php?fid=2)
+--- Thread: Webpage 'No Data Available' (/showthread.php?tid=1279)



Webpage 'No Data Available' - ila - 01.02.2018

Hello,

We got our smartpi yesterday and want to thank you folks for putting it all together. Everything works out of the box and setup was fairly smooth. However, more documentation would certainly help!

We have connected one device on L1 for initial setup and values can be seen in webpage.  Pi was  running for few hours but the main webpage keep displaying 'No Data Available' with empty CSV/table under download option. Here is the output from /var/smartpi/db:

ls -alh /var/smartpi/db

total 69M
drwxrwxrwx 2 pi pi 4.0K Nov 23 11:26 .
drwxr-xr-x 5 pi pi 4.0K Oct 10 15:21 ..
-rwxrwxrwx 1 pi pi 156K Sep 27 11:59 smartpi_logdata_201702.db
-rwxrwxrwx 1 pi pi 8.4M Sep 27 11:59 smartpi_logdata_201703.db
-rwxrwxrwx 1 pi pi 9.2M Sep 27 12:00 smartpi_logdata_201704.db
-rwxrwxrwx 1 pi pi 9.6M Sep 27 12:00 smartpi_logdata_201705.db
-rwxrwxrwx 1 pi pi 9.8M Sep 27 12:00 smartpi_logdata_201706.db
-rwxrwxrwx 1 pi pi  11M Sep 27 12:00 smartpi_logdata_201707.db
-rwxrwxrwx 1 pi pi  11M Sep 27 12:01 smartpi_logdata_201708.db
-rwxrwxrwx 1 pi pi 9.1M Sep 29 12:27 smartpi_logdata_201709.db
-rwxrwxrwx 1 pi pi 1.8M Oct 23 15:18 smartpi_logdata_201710.db
-rwxrwxrwx 1 pi pi 544K Nov 23 11:26 smartpi_logdata_201711.db
-rwxrwxrwx 1 pi pi  12K Jan 23  2018 smartpi_logdata_201801.db
-rwxrwxrwx 1 pi pi  12K Nov 23 09:07 smartpi_logdata_201802.db


Any thoughts?

Thanks
ila


RE: Webpage 'No Data Available' - ila - 01.02.2018

Hi Again,

Let me try to rephrase the problem. The dashboard and chart are both empty with a message of 'No Data Available'. However, I can see data being fetched under /var/tmp/smartpi/values

Thanks,


RE: Webpage 'No Data Available' - jens - 02.02.2018

Please send me the content of the /etc/smartpi file.

Best regards Jens


RE: Webpage 'No Data Available' - ila - 02.02.2018

Hi,

Thanks jens for followup.

It happen to be date and time issue. I suspect it has to do something with nvd3/build/nv.d3.js It is strange that even getting historical data didn't work either.

Apparently ntp fails to fetch date and needs a restart with update in config file. Here is the quick fix without ntp:

hwcolck --show
hwclock --set --date="2018-02-01 15:43:00" --localtime
date -s "01 FEB 2018 15:43:00"

Date Time:
https://www.garron.me/en/linux/set-time-date-timezone-ntp-linux-shell-gnome-command-line.html

Regards,