Linux Mint 19.2 Ver 10.37 Linux 303 WS 2310 Getting XDG_Runtime _dir error

It appears the WD is working but in Terminal It keeps saying XDG_RUNTIME_DIR not set in the environment. A search shows no hits on even XDG. After that one error I keep getting ser_read Error Resource temporarily unavailable.

ser_read Error Resource temporarily unavailable.
that error is related to not using a CU type port I think

you need to provide more info though
you have not provided what platform, what weather station type, what version of consolewd , etc etc

Some of that is in the title of the thread :wink:

https://askubuntu.com/questions/872792/what-is-xdg-runtime-dir may have a clue.

ok, yeah, but , is it the 32 or 64 bit version
and it seems like its the full gui version and not the consolewd version?
as Wim would say, I am not a mind reader :slight_smile:

I tried the 32 bit version and it never worked so I’m running the 64 bit version.

Initiating variables
Setting conditions strings
Finished doing mainform form create
showing mainform
done form broadcast create
hiding splash screen
setting up graphs
finished showing mainform
error: XDG_RUNTIME_DIR not set in the environment.
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable

This is the info when it shuts down on it

you might have set to shut down if no data received after 10 minutes in the setup, advanced /misc setup
you don’t say what type of data logger you have
the more detailed info you can provide the better

I’m using a Lacrosse WS 2310 running on a 64 bit machine running Linux Mint 19.2. . First and foremost it all works fine under Windows 7 connected to the TTY port outputting all the information the unit displays running on a Win 7 hard drive…

Now I use a SATA select-able hard drive that has Linux Mint 19.2 on it and first off I put the weatherdisplay.tar.gz on the desktop per the instructions. Then I use tar -zxvf weatherdisplay.tar.gz and it creates the wdisplay directory. Then I do a sudo apt install libwebkitgtk-3.0. Then I do a cd Desktop then cd wdisplay then cd deploy then a sudo cp . /usr/lib. Now to run the program fro terminal I have to do a cd Desktop then cd wdisplay then a sudo ./weatherdisplay at which time it loads. Note it is not in the home folder but rather in the Desktop folder. It would be nice to just have an icon on the desktop much like you have in Windows to start the program.

Next just as I found in the 32 bit version the 64 bit version ttyS0 does not work at all. You get a constant alarm and no data. The base baud rate on /dev/ttyS0 is 115200 not 9600. The reason I point out the baud rate is it is the same thing I got from my 32 bit MOBO that I tried to run the 32 bit version of linux weather display and you stated it was wrong and should be 9600. Now I can run a pl2303 usb to tty converter and I get all the data and no alarm indications. I have tried the “stty comand” and the “screen command” to adjust the baud rate on /dev/ttyS0 and they have no effect. I’ve used the ls -l /dev/ttyS0 to verify access and used the chmod to set the dialout characteristics but the ttyS0 port still shows an alarm and no output. Again note all of the same hardware works fine under Windows 7.

So the questions are “Am I getting errors because of the folder the program is installed to which is /desktop/wdisplay instead of home?” I also noted that I can not set longitude and latitude in linux at all but I could in Win 7. Is that caused by files not being in the right folder?

Does the /dev/ttyS0 port fail to work because of a buffer overflow due to an output rate of 115000 instead of 9600 which is what you expect? If so should a user be able to set a variable to get that input rate to match the uncontrollable output rate? It appears to work well on the dev/ttyUSB0 port.

WD should be setting the baud rate to 9600
have you tried running it as sudo?
i.e from a terminal window:
sudo ./weatherdisplay

also WD has its settings and files in
~/Documents/wdisplay/
make sure the permissions of that folder are set correct

big difference between the windows version and the linux version where it comes to the com port

don@don-P43T-ES3G:~$ ls -l /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 64 May 30 20:36 /dev/ttyS0
don@don-P43T-ES3G:~$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.880494] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.938793] tty ttyS30: hash matches
[ 20.346108] usb 5-1: pl2303 converter now attached to ttyUSB0
don@don-P43T-ES3G:~$ cd Desktop/wdisplay
don@don-P43T-ES3G:~/Desktop/wdisplay$ sudo ./weatherdisplay
[sudo] password for don:
Starting
Loaded main form
Loaded internet form
Loaded graph form
Loaded settings form
Loaded control form
Loaded view form
Loaded weather station type
Loaded user daily report
Loaded com port
Loaded timer1
Loaded log settingd
Loaded graph setup
Loaded uv/solar
Loaded ws2000
Loaded extra sensor graph
Loaded daily hi/lo
Loaded metar
Loaded new graph
Loaded large display
Loaded dials
Loaded weather dials
Loaded sun moon
Loaded sensor list
Loaded trends
Loaded sun moon images
Loaded moon
Loaded summary
Loaded extra metars
Loaded 3D graph
Loaded energy
Loaded new rain chart
Doing mainform formcreate
Setting program location to: /home/don/Documents/wdisplay/
Creating ini files
Writing exit to ftp ini file
Setting up graph axis
Initiating variables
Setting conditions strings
Finished doing mainform form create
showing mainform
done form broadcast create
hiding splash screen
setting up graphs
finished showing mainform
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable

Still does not work on TTYS0
don@don-P43T-ES3G:~$ ls -l /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 64 May 30 20:57 /dev/ttyS0
don@don-P43T-ES3G:~$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.880494] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.938793] tty ttyS30: hash matches
[ 20.346108] usb 5-1: pl2303 converter now attached to ttyUSB0

Access for /documents/wdisplay

don@don-P43T-ES3G:~/Desktop$ cd
don@don-P43T-ES3G:~$ dir
Desktop Documents Downloads Music Pictures Public Templates Videos
don@don-P43T-ES3G:~$ cd Documents
don@don-P43T-ES3G:~/Documents$ dir
wdisplay wetherfail.odt
don@don-P43T-ES3G:~/Documents$ ls -l wdisplay
total 112
drwxr-xr-x 2 root root 4096 May 15 03:10 datafiles
drwxr-xr-x 2 root root 4096 May 8 20:34 downloads
-rw-r–r-- 1 root root 5 May 29 03:10 exitftp2.txt
-rw-r–r-- 1 root root 5 May 29 03:10 exitwebcam.txt
-rw-r–r-- 1 root root 4 May 8 20:34 ftplogfull.txt
-rw-r–r-- 1 root root 2 May 8 20:34 ftplog.txt
drwxr-xr-x 2 root root 4096 May 14 20:58 logfiles
drwxr-xr-x 2 root root 4096 May 8 20:34 metar
-rw-r–r-- 1 root root 0 May 8 20:34 programerrorlog.txt
-rw-r–r-- 1 root root 0 May 27 21:12 rawultimeterdata.txt
-rw-r–r-- 1 root root 12481 May 29 20:40 recordssetlog.txt
-rw-r–r-- 1 root root 306 May 29 20:48 sunmoonout.txt
-rw-r–r-- 1 root root 210 May 29 21:40 SYNOP.INI
drwxr-xr-x 2 root root 4096 May 8 20:34 synopmetar
drwxr-xr-x 2 root root 4096 May 8 20:34 synops
-rw-r–r-- 1 root root 0 May 27 21:12 ultimeterrain.txt
-rw-r–r-- 1 root root 7 May 14 19:06 wbm.unt
-rw-r–r-- 1 root root 4362 May 29 03:10 wdisplayftp.ini
-rw-r–r-- 1 root root 25194 May 29 21:40 WDISPLAY.INI
drwxr-xr-x 2 root root 4096 May 8 20:34 weathermaps
drwxr-xr-x 2 root root 4096 May 14 23:10 webfiles
don@don-P43T-ES3G:~/Documents$ su
Password:
su: Authentication failure
don@don-P43T-ES3G:~/Documents$ su
Password:
root@don-P43T-ES3G:/home/don/Documents# chmod 777 wdisplay
root@don-P43T-ES3G:/home/don/Documents# ls -l wdisplay
total 112
drwxr-xr-x 2 root root 4096 May 15 03:10 datafiles
drwxr-xr-x 2 root root 4096 May 8 20:34 downloads
-rw-r–r-- 1 root root 5 May 29 03:10 exitftp2.txt
-rw-r–r-- 1 root root 5 May 29 03:10 exitwebcam.txt
-rw-r–r-- 1 root root 4 May 8 20:34 ftplogfull.txt
-rw-r–r-- 1 root root 2 May 8 20:34 ftplog.txt
drwxr-xr-x 2 root root 4096 May 14 20:58 logfiles
drwxr-xr-x 2 root root 4096 May 8 20:34 metar
-rw-r–r-- 1 root root 0 May 8 20:34 programerrorlog.txt
-rw-r–r-- 1 root root 0 May 27 21:12 rawultimeterdata.txt
-rw-r–r-- 1 root root 12481 May 29 20:40 recordssetlog.txt
-rw-r–r-- 1 root root 306 May 29 20:48 sunmoonout.txt
-rw-r–r-- 1 root root 210 May 29 21:40 SYNOP.INI
drwxr-xr-x 2 root root 4096 May 8 20:34 synopmetar
drwxr-xr-x 2 root root 4096 May 8 20:34 synops
-rw-r–r-- 1 root root 0 May 27 21:12 ultimeterrain.txt
-rw-r–r-- 1 root root 7 May 14 19:06 wbm.unt
-rw-r–r-- 1 root root 4362 May 29 03:10 wdisplayftp.ini
-rw-r–r-- 1 root root 25194 May 29 21:40 WDISPLAY.INI
drwxr-xr-x 2 root root 4096 May 8 20:34 weathermaps
drwxr-xr-x 2 root root 4096 May 14 23:10 webfiles
root@don-P43T-ES3G:/home/don/Documents# ^C
root@don-P43T-ES3G:/home/don/Documents# chmod 777 /dev/ttyS0
root@don-P43T-ES3G:/home/don/Documents# ls -l /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 64 May 30 20:36 /dev/ttyS0
root@don-P43T-ES3G:/home/don/Documents# Loading

Loading with TTYS0 as output port
on@don-P43T-ES3G:~$ ls -l dev/tty
ls: cannot access ‘dev/tty’: No such file or directory
don@don-P43T-ES3G:~$ ls -l /dev/tty
crwxrwxrwx 1 root tty 5, 0 May 30 21:14 /dev/tty
don@don-P43T-ES3G:~$ ls -l /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 64 May 30 21:07 /dev/ttyS0
don@don-P43T-ES3G:~$ ls -l /dev/ttyUSB0
crwxrwxrwx 1 root dialout 188, 0 May 30 21:15 /dev/ttyUSB0
don@don-P43T-ES3G:~$ cd Desktop/wdisplay
don@don-P43T-ES3G:~/Desktop/wdisplay$ sudo ./weatherdisplay
[sudo] password for don:
Starting
Loaded main form
Loaded internet form
Loaded graph form
Loaded settings form
Loaded control form
Loaded view form
Loaded weather station type
Loaded user daily report
Loaded com port
Loaded timer1
Loaded log settingd
Loaded graph setup
Loaded uv/solar
Loaded ws2000
Loaded extra sensor graph
Loaded daily hi/lo
Loaded metar
Loaded new graph
Loaded large display
Loaded dials
Loaded weather dials
Loaded sun moon
Loaded sensor list
Loaded trends
Loaded sun moon images
Loaded moon
Loaded summary
Loaded extra metars
Loaded 3D graph
Loaded energy
Loaded new rain chart
Doing mainform formcreate
Setting program location to: /home/don/Documents/wdisplay/
Creating ini files
Writing exit to ftp ini file
Setting up graph axis
Initiating variables
Setting conditions strings
Finished doing mainform form create
showing mainform
done form broadcast create
hiding splash screen
setting up graphs
finished showing mainform
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailab

what shows under view
Debug info
I will get our my old 2310 console
And do some testing here later today

Port is set to /dev/ttyS0

Loaded all time records
Loaded units
com port port handle /dev/ttyS0 14
#connected OK to com port /dev/ttyS0 14
set the comport OK to speed 2400
restarting the 2310 wake up procedure

Still no data so I tried setting the port to devttyS0 14 and restated the program and got

Loaded all time records
Loaded units
com port port handle /dev/ttyS0 14 -1
set the comport OK to speed 2400
restarting the 2310 wake up procedure

Still no data but it does keep saying

restarting the 2310 wake up procedure.

Loaded all time records Loaded units com port port handle /dev/ttyS0 14 #connected OK to com port /dev/ttyS0 14 set the comport OK to speed 2400 restarting the 2310 wake up procedure

that all looks correct
so not sure why its getting data
it might be the comport driver/com port hardware

What is the changing number after the com port? I set it to /dev/ttyS0 and the debug says /dev/ttyS0 14. If I set it to /dev/ttyS0 14 it adds another digit.

that is just a handle number

Update on progress. One of the items I noted is

don@don-P43T-ES3G:~$ ls -l /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 64 May 30 21:07 /dev/ttyS0
don@don-P43T-ES3G:~$ ls -l /dev/ttyUSB0
crwxrwxrwx 1 root dialout 188, 0 May 30 21:15 /dev/ttyUSB0

The various TTY ports are part of Dialout. It in fact does not exist as a group. I used the newgrp command to create the group then I did a

don@don-P43T-ES3G:~$ ls -l /dev/ttyUSB0
crwxrwxrwx 1 root dialout 188, 0 Jun 1 21:40 /dev/ttyUSB0
don@don-P43T-ES3G:~$ groups
don adm dialout cdrom sudo dip plugdev lpadmin sambashare
don@don-P43T-ES3G:~$ groups don
don : don adm dialout cdrom sudo dip plugdev lpadmin sambashare

I had to add dialout to my group vis sudo gpasswd --add don dialout in order for me to access the group.

No matter what testing I’ve tried /dev/ttyS0 still fails.
However /dev/ttyUSB0 appears to work

Debug report.

Loaded all time records
Loaded units
com port port handle /dev/ttyUSB0 14
#connected OK to com port /dev/ttyUSB0 14
set the comport OK to speed 2400
restarting the 2310 wake up procedure
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
re creating the main logfile, does not exist /home/don/Documents/wdisplay/logfiles/62019lg.txt
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK

It’s running so I will see how long it lasts.

don@don-P43T-ES3G:~$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.880480] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 32.421083] usb 5-1: pl2303 converter now attached to ttyUSB0
don@don-P43T-ES3G:~$ ls -l /dev/ttyUSB0
crwxrwxrwx 1 root dialout 188, 0 Jun 1 22:20 /dev/ttyUSB0
don@don-P43T-ES3G:~$ groups
don adm dialout cdrom sudo dip plugdev lpadmin sambashare
don@don-P43T-ES3G:~$ groups don
don : don adm dialout cdrom sudo dip plugdev lpadmin sambashare
don@don-P43T-ES3G:~$

ah, yes, using the USB type will be the answer
I should have realised that
i.e usb to serial
unless you actually have an old tower type pc with those old original serial cards or built in serial

It appears the original XDG runtime error was caused by a conflict in measurements with some places saying rain in inches and others blank or metric. I went back and reset values and eliminated others so everything was uniform to inches. After I redid values I stopped getting the XDG runtime error.