Latest Linux WD, won't start

Hi guys. Trying to get start latest Weatherdisplay for Linux. Got Ubuntu, did step by step as in readme.txt. But still no luck. Here is output sudo ./weatherdisplay
~/wdisplay$ sudo ./weatherdisplay
[sudo] Passwort für xx:
program location ./
Setting program location to: /root/Documents/wdisplay/
Exception EFCreateError in module weatherdisplay at 0000000000545933.
Cannot create file “/root/Documents/wdisplay/wdisplayftp.ini”. Datei oder Verzeichnis nicht gefunden.
Can’t find any info. Thanks in advance

Are you upgrading or doing a new install? If it’s a new install check that the directories referred to exist and that the weatherdisplay user has permission to access them. I’m a little concerned that non-root users don’t usually have acccess to the root directories and the install seems to be in /root.

I’m new to linux, so I thought it would be done with sudo command, Can you install/start this without root permission?

Apologies - it was evening after a long day I misread your post. I read sudo as su. “su weatherdisplay” would make you act as a user called weatherdisplay which wouldn’t have root access. OK moving on from that mistake!

What directory structure do you have? You appear to start in ~/wdisplay which is the wdisplay directory below your home directory. If your home directory is /home/kwwa12 this suggests you’re starting in /home/kwaa12/wdisplay.

What looks odd is that you’re trying to run ./weatherdisplay as root using sudo but the program location is being set to /root/Documents/wdisplay. I’d have expected that to either run /home/kwwq12/wdisplay/weatherdisplay or /root/weatherdisplay but not something in /root/Documents.

I have never used Linux WD though, so my comments are merely from a Linux perspetive and seeing the command you typed.

Hi, thanks for quick replay. Here is output as user :
x@xx-SATELLITE-C70-A:~$ cd /home/xx/wdisplay/
xx@xx-SATELLITE-C70-A:~/wdisplay$ ./weatherdisplay
program location ./
Setting program location to: /home/xx/Documents/wdisplay/
Exception EFCreateError in module weatherdisplay at 0000000000545933.
Cannot create file “/home/xx/Documents/wdisplay/wdisplayftp.ini”. Datei oder Verzeichnis nicht gefunden.
xx@xx-SATELLITE-C70-A:~/wdisplay$
…file or folder is not found…

I think Linux WD must work differently to Windows WD. In Windows pretty much everything lives under the wdisplay directory, but it seems that WD is looking in Documents for some of its files.

So…

  1. Check that /home/xx/Documents/wdisplay directory exists and if not, create it
  2. Try setting the permissions of /home/xx/Documents/wdisplay to 777, e.g.
chmod -R 777 /home/xx/Documents/wdisplay

If that doesn’t work, try running through the install process again after having set permissions to 777, because it’s possible that the files/sub-directories in /home/xx/Documents are created during that process. sudo should really allow you to have the correct access but if the access wasn’t correct when the file creation was attempted then maybe that was the problem.

Final thought, one thing that’s caught a number of people out of the years is that there are (or certainly were in the past) files that you had to copy to different system locations (/var/lib springs to mind). Check that those files are in the correct places.

Hard to believe, but it worked. Thank you so much. I still can’t decide whether to use the WD console or Linux. The console runs on an RPi 5, and it works until I connect to MySQL. No connection, etc. Do you have any instructions for me on how to connect/set it up correctly?

Kind regards

If you’d like to run consolewd on a Pi these instructions should still work - HOWTO: ConsoleWD for Raspberry PI - Setup Instructions - New version

You’ll probably want to run it in the background too. There are a few ways of doing this. I think the best way is this one Running consolewd in the Background Using serviced

The instructions don’t include setting up the MySQL connection though and I’ve never used consolewd with a database so I’ve no experience of setting it up. I think you’ll need to do this:

  1. Get consolewd working first so that it’s downloading data from your station reliably
  2. Install MySQL (MariaDB would be better) if it’s not already installed
  3. Create a database user for consolewd to use.
  4. Manually create the database for WD to use
  5. Edit the config.txt to add the database details (hostname, user, password, database name). I think you’ll also need to turn on the MySQL option
  6. I think - run ./croncreatetable to create the data table with the required fields
  7. Run consolewd

Thank you very much, I’ll try it out today and report back. Kind regards.

1 Like

5 posts were split to a new topic: Load WD MySQL with historic data