HOWTO: ConsoleWD for Raspberry Pi Setup Instructions - Old version

Hi,

As per instruction in the readme i have tried to get the croncreatetable to work, but to no avail…

Staccermaccer,

that is different to what you posted before
so do you mean you are trying to get a MYSQL table created?
what is the error returned?

Hi, I send you a screenshot of my terminalwindow…Perhaps this tells the story…
Staccermaccer,


consolewd.png

that just shows normal output of data from a running consolewd program
and not the error about creating a mysql table

Hi, Brian

I am just trying to get the data to uplaod to my site, WDPE is showing data but not recent ones. Do i need the mysql to work? Can it also be done just by FTP?

Staccermaccer,

yes you can use FTP
you can set that in the config file (and then restart WD)
what weather station type?

so you are not wanting to update a mysql file?

Hi, Brian

Sorry for the confusion but my ftp is working and it is updating, i just don’t see the live data appearing…

Staccermaccer,

what weather station type/data logger type?

Hi, Brian

Sorry for the late answer, my station is a Davis Pro 2 with a USB-logger, all my clientraw-files are updating, see screenshot and my config.text is also attached…Hope this helps!

Staccermaccer,


config.txt (3.85 KB)

so the problem is, that the data is not updating very fast?
in your config.txt
there is a setting to use davis usb
make sure that is set to Y
then restart

Hi to everyone.
I am trying to evaluate WD use for Linux in order to run it on a Raspberry Pi. For the moment I use a Pi 2 Model B. r I run the proper consolewdfiles tarball and WM918 station. So far I encounter the following issues.

  1. I see the connection ok on the terminal. The program reads the serial data sending “ok” messages and printing the values for weather parameters. Then I have several in a raw serial reads with message “resource temporarily unavailable”. Is this typical? Data are flowing though…
  2. I see no ftp activity at all. I have set everything to default values needed for using ftp but I see nothing uploaded on the ftp/web server (another Pi).
  3. Last but not least I see no place to insert my APRS details for Ham Radio (maybe this should be posted elsewhere). Config.txt has no entries and wdconsole.ini has some but anything written there, is whipped out the next time the program runs.

I would appreciate any suggestions / ideas?
Regards and Thanks in advance
Manos

wow, I am not sure I have had anyone use a WM918 before
it looks like its not completely syncing OK with the station

can you copy/paste or show a screen shot of what you do see?

also for the previous person, a update of the silicon labs usb driver might help

Hi Brian from down under, (my daughter lives and works in Auckland, Hi).
I have solved the ftp issue. Now only remains APRS and syncing. Weather station is a Huger WX200 a clone of WM918. Here is a capture:

Weather Display vers WD_console_12.4
If use this program,then please consider sending a PayPal donation to [email protected] (Brian Hamilton)
to help with costs, and support, thanks!
www.weather-display.com
Comport /dev/ttyUSB0 opened
setting baud rate to 9600
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
ser_read error Resource temporarily unavailable
*****Received count = -----------------------------> 35
WMR Data OK
*****Received count = -----------------------------> 106
Temp/Hum Data OK
Data OK
Data OK
Data OK
Current data : Temperature= 17.6 Windspeed =8.6 Gustspeed =8.6 Direction =43 Humidity=34 Barometer=1012.0 Daily Rain=0.0
Current data : Temperature= 17.6 Windspeed =8.6 Gustspeed =11.1 Direction =5 Humidity=34 Barometer=1012.0 Daily Rain=0.0
**** doing minute routines now 21:58:00
**** updating clientraw extra files
**** updating data logs
sudo: unable to resolve host raspiweather
cronftpreal: no process found
Starting cronftpreal
Time 180 seconds
Remote name
Port to use 21
*****Received count = -----------------------------> 72
Data OK
Data OK
Data OK
Current data : Temperature= 17.6 Windspeed =8.6 Gustspeed =10.1 Direction =39 Humidity=34 Barometer=1012.0 Daily Rain=0.0
login OK to 10.0.0.43
upload clientraw.txt to 10.0.0.43 OK
upload wx.html to 10.0.0.43 OK
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable

re CWOP
make sure for the ID you remove the // and anything after that
i.e you just have the ID only in the config
(and similar for any other settings)

Hmm, I am useing the Davis Weather Envoy 6316 and an RS323/USB converter (startech.com ICUSB2321F)…usb plugged into my Pi…and this is what I get…no USB connection …/dev/ttyUSB0 does not exist, I have looked!

pi@WeatherPi:~/Downloads/consolewdfiles $ sudo ./consolewd
Station type raw=31<
Station type =31
Weather station type is a Davis VP
meteobridge user= <
meteobridge ip= 192.168.0.1<
meteobridge pass= <
Davis com method d
OWW file location= ←
program location= /home/pi/Downloads/consolewdfiles/<-
Davis VP IP data logger port= 22222<
Davis VP IP data logger IP= 192.168.0.101<-
Latitude= -45.1
Longitude= -168.6
Station name =Wilson Bay Weather
Daily rain startup= 0.0
start up month rain found=0.0<-
Monthly rain startup= 0.0
Yearly rain startup= 0.0
wunderground username = ************************
wunderground password = ************
wunderground utc =12
Dir offset= 180
Barooffset= 0.0
Comport is USB to serial
Davis com method d
Yes Revb Davis VP
Davis rain gauge .01 inch
mysql username =
mysql server =
mysql databasename =
mysql tablename =
Will do mysql metric
mysql time interval = 300
cwop station id =
cwop call sign = -1 // -1 is default (you do not have a Ham call si
cwop latitude=
cwop longitude=
FTP server = *************
FTP username = **********
FTP port = 21
FTPremote dir = ***********
Will do ftp passive
remote file =
FTP time interval = 60
wu =Y
Will save logfile
logfile metric
Custom file name = wx.html
Custom file name 2=
Custom file name 3=
Custom file name 4=
Custom file name 5=
Tag units in celsius
wind units = mph
baro metric= Y
rain metric= Y
Will run cron files
Custom log out = customlogout.txt
temp offset raw = <
hum offset raw =<
wmr300 channel =1
Modified rain gauge= <
WOW id=<-
WOW pass=<-
PWS id=<-
PWS pass=<-
windfinder id=<-
windfinder pass=<-
meteotemplatepass=<-
meteotemplateurl=<-
univeral update rate 2
utc hour=6
local hour=18
Weather Display vers WD_console_17.1
If use this program,then please consider sending a PayPal donation to [email protected] (Brian Hamilton)
to help with costs, and support, thanks!
www.weather-display.com
The serial device /dev/ttyUSB0 does not exist or is not s tty
Could not open /dev/ttyUSB0
Check the port exist in “/dev”, or the permissions are set to rw-rw-rw

I thought the problem was (and probably is) that I did not plug the USB in on boot…I tried rebooting with USB plugged in and it will not boot now (7 green flashes mode!), so it must have become corruped when booting with the USB attached…???

I seem to be getting places…slowly. Got the Data Logger to work finally…

For the line (below) in the config file…as I have a serial Data Logger converted via cable to a USB output, should I use 1 or 2?

Davis com method=2 //1 for serial, 2 for usb data logger

Comport number (e.g 1)=U //For non USB stations (e.g Davis, OS WMR968)…not sure what to use for this either??

…or for these two??

Davis com method=2 // 1 for regular 2 for special davis serial read
Revb Davis VP=Y (Y for Yes (new model (default) ) N for No)

you could always experiment

I could …but as there are a lot of variables, I could be experimenting for some time! I was rather hoping that some kind soul who had been down this path would be able to give me pointers!

there is only 1 variable