HOWTO: ConsoleWD for Raspberry Pi Setup Instructions - Old version

Hello,

How can I integrate ./consolewd into the autostart or crontab?

Thank You

not sure why you are asking about windows then when you say you have stopped running WD windows

re auto start, google should shows lots of ways to get a program to auto start on a raspberry pi

maybe a misunderstanding, i do not use windows anymore. Now I use raspberry pi. no matter what I try the command ./ does not exist.

how do you mean the ./ command?
what are you trying to do exactly?

to start the console I have to enter comando sudo ./consolewd
it does not work with consolewd start
my question i write the command line
crontab -e

@reboot /bin/bash/home/pi/consolewdfiles/./consolewd ??? this is not working

URL not working…

Did you ever get this working?

1.2.1 download from http://alioth.debian.org/frs/?group_id=30451. It is placed into your home folder

URL not working…


you do not need to do that step though I think you will find

Hi all,

We installed consolewd using the procedure at this link http://discourse.weather-watch.com/p/458513.
We started the program and the output is the following:


pi@raspberrypi:~/meteo/consolewdfiles32 $ sudo ./consolewd 
Station type raw=235<
Station type =235
Weather station type is an wmr300
meteobridge user=  <
meteobridge ip= 192.168.0.1<
meteobridge pass=  <
Davis com method d
OWW file location= <-
program location= /home/pi/meteo/consolewdfiles32/<-
Davis VP IP data logger port= 22222<
Davis VP IP data logger IP= 192.168.2.3<-
Station name =xxx
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 =-5
Dir offset= 0
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 = =166
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 = kts
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=16
local hour=18
****Weather Display vers WD_console_17.3****
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
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt
looking for file /home/pi/meteo/consolewdfiles32/outdata.txt

no way to get the software working.
Anyone has the same issue ?

my configuration is the following:


Raspberry PI 1 model B
Raspbian 9 (stretch)
Kernel: 4.14.62+
libhid version: libhid-0.2.16
libusb version: libusb-1.0.22

I checked the procedure on a virtual instance of raspberry pi and the software works great. The only difference between the phisical raspberry pi and virtual raspberry pi is the older kernel version on the virtual instance. it could be a kernel compatibility problem ?

Thank you very much in advance

i see you have set station type to raw input (station type 235) and then its trying to use a input file but cant find it
what weather station type do you have exactly?

Oregon scientific wmr300, in the example i posted the station was not connected. I tried also with station plugged in but the result was the same.

with it plugged in, you would need to set the station type to wmr300

Hi Brian,

Wmr300 code is 235 correct ?

Thank you

my bad, you are right
the problem is , try setting the station type as 234 instead

ok Brian, as soon as i have my raspberry pi back i will try and i will let you know.
Thank you.

Hi Brian,

my raspberry pi just came back and I’m trying your suggestion of setting the parameter Station type raw=234. Unfortunately it is not working and I’m getting this error:


www.weather-display.com
Write Error :: Broken pipe
WMR300 opened OK
data read length ->-1
data read length ->-1
data read length ->-1
data read length ->-1
data read length ->-1
data read length ->-1
data read length ->-1
data read length ->-1
data read length ->-1
USBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeUSBWrite Write Erro Broken pipeU^C


Do you have any suggestion? Any help is appreciated.

Thank you very much

looks like a usb/hid driver problem
you could try disconnecting then reconnecting the usb plug to the station

Profuse apologies, it has taken me a long long time to get back to this. I now have the Gui working (wdpi) and I have ./consoelwd running on the command line…so I am connecting to the Davis, the dials are spinning, the time is set correctly but the Data Received continues to show 0!,I can see the raw output coming in on the terminal…but no increase in data received and graphs only showing straight lines.

What have I missed?

I should have included a screen shot…now attached!

Also, how do I run this headless…do I just let ./consolewd run from the command line?..ok got this sorted now!


so the current conditions are correct?
if you run wdpi from the terminal, does any errors show when it should be updating the data every minute?
I wonder if its a permissions problem