FreshWDL and Data Currently Unavailable

I have consoleWD working. I am struggling to get FreshWDL to load data.

I continue to get FreshWDL: Data Currently Unavailable

I see the copied client files in the directory /var/www/html/fresh. However, if I nano that file it comes up blank.
In the /consolewdfiles those files do have information in them.

Is there more documentation available besides this?

There is a reference in that post to read the documentation for the changes you can make.

Thank you for any assistance.
Greg
W9IKU

Hi Greg

There is some more documentation for FreshWDL available in one of the files that form part of the package, but I think your problem is more on the Pi than with FreshWDL.

One thing to check is, are you running consolewd with sudo or just as an ordinary user? It’s possible that the copying process doesn’t have the required permissions to write the files into /var/www/html/fresh. If the files are empty that explains why FreshWDL is showing Data Currently Unavailable.

Thanks for the quick reply!

I am running it under systemctl using the script provided in the forum. I need sudo to open the config file. How would you recommend I move forward?

after ls -l for /var/www/html/fresh all files are “root” permission. Is this correct, or do I need to modify something?

Thank you.

Can you show me the output from…

cd /var/www/html
ls -la
cd /var/www/html/fresh
ls -la

Here you go. I included the consolewdfiles permissions at the end just in case.

w9iku@w9ikupi:/var/www/html $ ls -la
total 24
drwxr-xr-x 3 root root 4096 Mar 17 10:17 .
drwxr-xr-x 3 root root 4096 Oct 17 2019 …
drwxr-xr-x 2 root root 4096 Mar 17 11:10 fresh
-rw-r–r-- 1 root root 10701 Mar 17 10:17 index.html

w9iku@w9ikupi:/var/www/html/fresh $ ls -la
total 16
drwxr-xr-x 2 root root 4096 Mar 17 11:10 .
drwxr-xr-x 3 root root 4096 Mar 17 10:17 …
lrwxrwxrwx 1 root root 44 Mar 17 09:52 clientrawdaily.txt → home/w9iku/consolewdfiles/clientrawdaily.txt
lrwxrwxrwx 1 root root 44 Mar 17 09:51 clientrawextra.txt → home/w9iku/consolewdfiles/clientrawextra.txt
lrwxrwxrwx 1 root root 43 Mar 17 09:51 clientrawhour.txt → home/w9iku/consolewdfiles/clientrawhour.txt
lrwxrwxrwx 1 root root 39 Mar 17 11:10 clientraw.txt → home/w9iku/consolewdfiles/clientraw.txt
-rw-r–r-- 1 root root 2312 Mar 17 10:58 config.js
-rw-r–r-- 1 root root 2400 Mar 17 09:45 index.html

Just in case:
w9iku@w9ikupi:~/consolewdfiles $ ls -la
total 62384
drwxr-xr-x 5 w9iku w9iku 4096 Mar 17 11:24 .
drwxr-xr-x 22 w9iku w9iku 4096 Mar 17 10:32 …
-rw-r–r-- 1 root root 1743 Mar 17 12:05 clientrawdaily.txt
-rw-r–r-- 1 w9iku w9iku 2730 Mar 17 12:37 clientrawextra.txt
-rw-r–r-- 1 w9iku w9iku 2551 Mar 17 12:37 clientrawhour.txt
-rw-r–r-- 1 w9iku w9iku 629 Mar 17 12:37 clientraw.txt
-rw-r–r-- 1 w9iku w9iku 64081 Feb 2 19:01 config.html
-rw-r–r-- 1 w9iku w9iku 2344 Nov 7 2019 config.js
-rw-r–r-- 1 w9iku w9iku 4970 Mar 17 09:31 config.txt
-rwxr-xr-x 1 w9iku w9iku 2074804 Mar 16 14:54 consolewd
-rwxr-xr-x 1 w9iku w9iku 859824 Jan 28 2019 croncloud
-rwxr-xr-x 1 w9iku w9iku 1317196 Feb 9 17:09 croncreatetable
-rwxr-xr-x 1 w9iku w9iku 893668 Mar 21 2020 croncwop
-rwxr-xr-x 1 w9iku w9iku 889580 Dec 4 16:03 crondavisair
-rwxr-xr-x 1 w9iku w9iku 877292 Dec 4 16:05 crondavisip
-rwxr-xr-x 1 w9iku w9iku 889572 May 24 2020 crondaviswll
-rwxr-xr-x 1 w9iku w9iku 884248 Nov 27 2017 cronftpnoaareport
-rwxr-xr-x 1 w9iku w9iku 934948 Mar 16 14:52 cronftpreal
-rwxr-xr-x 1 w9iku w9iku 1073092 Nov 7 17:08 crongw1000
-rwxr-xr-x 1 w9iku w9iku 751408 Feb 3 02:27 cronmetar
-rwxr-xr-x 1 w9iku w9iku 906116 Nov 5 14:01 cronmeteobridge
-rwxr-xr-x 1 w9iku w9iku 888240 Dec 30 2018 cronmeteotemplate
-rwxr-xr-x 1 w9iku w9iku 1333580 Feb 9 17:09 cronmysql
-rw-r–r-- 1 w9iku w9iku 689963 Jul 11 2013 cronmysql2
-rwxr-xr-x 1 w9iku w9iku 859680 Dec 18 2017 cronpws
-rwxr-xr-x 1 w9iku w9iku 918404 Dec 12 15:46 cronweatherflowconsole
-rwxr-xr-x 1 w9iku w9iku 859920 Feb 15 2019 cronweatherlink
-rwxr-xr-x 1 w9iku w9iku 859712 Nov 27 2017 cronwindfinder
-rwxr-xr-x 1 w9iku w9iku 859680 Nov 27 2017 cronwow
-rwxr-xr-x 1 w9iku w9iku 859696 Nov 27 2017 cronwu
-rw-r–r-- 1 w9iku w9iku 2088 Jul 25 2013 customclientrawlocal.txt
-rw-r–r-- 1 root root 1461 Mar 17 12:32 customclientraw.txt
-rw-r–r-- 1 w9iku w9iku 118 Feb 1 2019 custommail.txt
-rw-r–r-- 1 root root 92 Mar 17 12:30 cwopdata.txt
drwxr-xr-x 2 w9iku w9iku 4096 Mar 17 08:45 datafiles
drwxr-xr-x 2 w9iku w9iku 4096 Dec 9 12:09 Deploy
-rw-r–r-- 1 w9iku w9iku 210 Mar 17 12:37 extravpdata.txt
-rw-r–r-- 1 w9iku w9iku 2841 Jun 29 2018 FreshWDLmaster.html
-rw-r–r-- 1 w9iku w9iku 719 Jul 13 2013 GoWdconsole.sh
drwxr-xr-x 2 w9iku w9iku 4096 Mar 17 08:45 logfiles
-rw-r–r-- 1 w9iku w9iku 664 Jan 9 15:50 readme.txt
-rw-r–r-- 1 w9iku w9iku 1365 May 22 2008 tagslist.txt
-rw-r–r-- 1 w9iku w9iku 0 Jan 30 2018 tempdata.inf
-rw-r–r-- 1 w9iku w9iku 47522 Apr 20 2020 testtags.txt
-rw-r–r-- 1 w9iku w9iku 6190 Mar 17 12:37 wdconsole.ini
-rwxr-xr-x 1 w9iku w9iku 43143648 Dec 12 2019 wdpi
-rw-r–r-- 1 w9iku w9iku 506 Mar 17 12:37 wudata.txt
-rw-r–r-- 1 w9iku w9iku 13 Oct 16 2008 wxlocal.html

consolewd.service - Weather-Display
Loaded: loaded (/lib/systemd/system/consolewd.service; enabled; vendor preset
Active: active (running) since Wed 2021-03-17 10:32:46 CDT; 2h 8min ago
Main PID: 632 (consolewd)
Tasks: 1 (limit: 2062)
CGroup: /system.slice/consolewd.service
\u2514\u2500632 /home/w9iku/consolewdfiles/consolewd

Thanks for looking at this. I’m learning Pi/Debian slowly.

Greg

I wouldn’t say I’m a wizard at it but I’ve used Linux and RPi over a number of year so I’m kinda used to it :wink:

That all looks reasonable. I assume you’ve created your own user on the Pi rather than using the default ‘pi’ account that I used. If you

cd /var/www/html/fresh
cat clientraw.txt

what happens? Do you get an error or just no data?

Time to eat here so my next reply will take somewhat longer!

Yes. I created a separate user - w9iku

after cat clientraw.txt

cat: clientraw.txt: no such file or directory

Enjoy your meal!

I think I see the problem. I think you’ve created the links as

sudo ln -s home/w9iku/clientraw.txt clientraw.txt

without the leading ‘/’. Try deleting the links and re-creating them as

sudo ln -s /home/w9iku/clientraw.txt clientraw.txt

I think it will work then.

PS. I assume w9iku is your callsign? I’m G6FCI :slight_smile:

Bingo! It is live!

That is correct. W9IKU is my callsign. This page will be available on my AREDN mesh node. I appreciate all your help with this.

Thank you.

Greg

I’m glad you got it working. The missing ‘/’ was too subtle to notice initially.