Missing sqlite database in directory

86 views
Skip to first unread message

Taro Katayama

unread,
Jun 30, 2022, 2:54:43 PM6/30/22
to weewx-user
Hello,

new weewx & raspberry pi zero W user here. 

I am trying to set up a Davis Vantage with a raspberry pi zero W with a Meteo Pi hat used to communicate between the Vantage and rpi zero w. 

My rpi is running raspian bullseye Debian 11. 

I have followed along the weewx user guide, and have tried installing weewx using the DEB package. Everything had gone smoothly until I tried making sure that the layout was all there. However, 
sqlite databases: /var/lib/weewx/
generated web pages and images: /var/www/html/weewx/

are missing from the directory. When I try ls /var/lib/weewx, I get the command of 'no such file or directory'

I suspect that one problem may stem from trying to set up a serial or ethernet connection. I chose serial connection and have tried serial ports: /dev/ttyAMA0 and /dev/serial1... My rpi does not have /dev/ttyUSB0 or /dev/ttyS0.

Any help is much appreciated.

Cheers,
Taro

p q

unread,
Jun 30, 2022, 3:14:22 PM6/30/22
to weewx...@googlegroups.com
Might want to try setting up Weewx with the Simulator driver and then switch over to your hardware once you have it running. That way you can separate software issues with connectivity/hardware issues.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6382985d-8591-4b85-a15e-dac1a9689ff9n%40googlegroups.com.


--
Peter Quinn
(415)794-2264

vince

unread,
Jun 30, 2022, 3:32:41 PM6/30/22
to weewx-user
The linux os won't create the /dev device(s) until something is connected to the pi, which the 'dmesg' command can tell you.  A quick search of the weewx archives says that it might matter which wire that came with the meteo pi hat - see (this thread) near the bottom of the thread.   Which wire did you use to connect the Meteo Pi to the zeroW ?

Also since you're a new user, I'll mention that you should definitely read the FAQ for how to report a problem and how to debug your setup.  I posted a pointer to the FAQ yesterday.

When you get it working, please follow up with what you did so the next person can get there a little easier based on you blazing the trail !

Taro Katayama

unread,
Jul 7, 2022, 10:43:40 AM7/7/22
to weewx-user
Thank you Peter and Vince,

An update: We got it to work!

I did three things differently: 
1) since I am using the meteo-pi

I edited the: /boot/config.txt and add on the end

“enable_uart=1”

edit /boot/cmdline.txt and remove
“console=serial0,115200”

This made dev/tty/S0 show up. 

2) Instead of using the installation on DEM based systems, I used the python 3 setup.py method. This placed the weewx directory in the home directory which may have had something to do with the issues I was running into initially. 

3) Last thing I did was I switched from using bullseye 11 to Buster 10- not sure if this really did anything but on the weewx installation guide Buster was the last program that was mentioned.

Cheers guys and thanks for the help. 


Taro

Peter Fletcher

unread,
Jul 18, 2022, 10:36:09 AM7/18/22
to weewx-user
FWIW, weewx does work fine with a Vantage Pro 2 and a Meteo-Pi under bullseye.
Reply all
Reply to author
Forward
0 new messages