HOWTO: ConsoleWD for Raspberry Pi Setup Instructions - Old version

Been searching the forum but, have not been able to find what I am looking for. Is there a basic setup guide or some documentation for setting up WD on Linux, specifically the Raspberry Pi? Step 1 do this, step 2 do this etc. Any information would be helpful.

Thanks!

al…

[Made sticky and changed title - Niko]

there is a number of threads sepecifly about consolewd on raspberry pi

what exact steps were you have a problem with

First step install extra libs

1.1 modify /etc/apt/sources.list

Add one line to that file, remember to use sudo or use the gui in a root file-manager window

deb http://ftp.nl.debian.org/debian/pool/main/u/udev/libudev-dev_175-7.2_armhf.deb sid main

execute in a terminal window
sudo apt-get install libudev-dev
sudo apt-get install libusb-dev

1.2 install libhid

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

1.2.2 modify in the downloaded folder libhid/test/lshid.c line 41
Reads now:
len = ((unsigned long)custom);
modify that one line and add the extra two lines:
//len = ((unsigned long)custom);
len = len;
custom = custom;

1.2.3 When you are in that folder in a terminal window
sudo ./configure && make
at the end you will get an error 2 in the make part, ignore that
sudo make install
this finishes without errors

1.3 install libusb

1.3.1 download from http://www.libusb.org/

1.3.2 in a terminal-window go into that folder and type
sudo ./configure --prefix=/usr --disable-static && make
at the end you will get an error 1, ignore those
sudo make install
this finishes without errors

            • this finishes the first step

Second step, install and test consolewd

2.1 download from http://www.weather-display.com/downloadfiles/consolewdfilespi.zip

2.2 unzip the folder

2.3 modify the text file config.txt in the unzipped folder with your settings

2.4 and copy the consolewdfiles folder to your pi folder on the RaspberryPI

Do not read or use the readme.txt when it is dated in the past.
So do not try to use sudo ./GoWdconsole.sh

2.3 Set all rights of the consolewdfiles folder to 777 including all of its its contents

2.4 copy all files from the consolewdfiles/deploy to the systemfolders
go into the consolewdfiles/deploy folder in your terminal window and type
sudo cp *.so /usr/lib/
sudo cp *.so /usr/local/lib/

2.6 start consolewd by typing
sudo ./consolewd


errors which may pop up
Missing libhid.so.0
In the deploy folder simply copy libhid.so.0.0 to libhid.so.0 and do step 2.4 again

At least this list (got it from Raspi), tested it a few times for writing an instruction in Dutch, works for me.

Succes, Wim

I have been following the thread but just looking for a simple step1 etc. guide.

Looks like one has been privied. Manay thanks!

thanks for the step by step instructions :slight_smile:
maybe this can be made a sticky?

Bravo Wim =D> =D> =D>

Everything is in it. Nothing to add…

This How-to must really become a sticky :thumbright:

Bernez

Thanks, just tried this today on My Pi which has been doing nothing but gathering dust for the last few months. The guide is excellent and everything works pretty much as it should.

Done.

If Wim can copy the step-by-step into a new thread then we can put it into the forums FAQ section. :wink:

I put it in a new thread
http://discourse.weather-watch.com/t/58766
Wim

Wim,

Good job on write, thanks for posting that. :smiley:

http://alioth.debian.org is not available.

Are there any other site where download libhid library?

Regards

I have problems with the directory structures,
As i have /public_html on my server. I have done:

Do clientraw FTP=Y //(set to Y for yes, N for no), uploads every 1 minute
FTP server=hetweerindiemen.nl
FTP username=“username”
FTP password=“password”
FTP port=21 //default is 21
FTP remote dir=/public_html/voorpagina/
FTP remote dir wx.html=/public_html/voorpagina/
FTP remote dir wx2.html=/public_html/
FTP use passive=Y //(set to Y for yes, N for no)
FTP use remote file rename= //Write here the remote name: NOTE that not all FTP servers allow remote file rename"
FTP time interval=60 //the interval between two upload of the clientraw.txt and custom file
Save logfile=Y //to save the .txt logfile (set to N to save on disk space)
Logfile metric=Y
Create custom file=Y //converts the custom tags in a file called wxlocal.html to wx.html
Use this filename instead of wx.html=testtags.php
Use this filename instead of wx2.html=customtextout10.txt

Even tried ./public_html/ I only get clientdraw.txt and it is placed on top (above /public_html/

Had a chat with my domain provider, They had an issue with the security of my php files, now i get everything exept customtextoud10.txt that also is writing to /voorpagina but should go to the home directory. But that is not a big problem.

re

http://alioth.debian.org is not available.

that worked OK here
maybe try again now

2015-April 29:

There is also a image available for use with the first raspberry B and the B+ So not (yet) for the 2.

The pdf is at: http://www.weerstation-leuven.be/CW-image-install-english.pdf
In the pdf is the download link.
md5 in the pdf is not updated
The download versions name = 2 but contains the latest (4) version. Although that is not important because those discussions are lost forever.

What would be the procedure to update to the latest version?

Maybe this could be added to the FAQ.

Have a nice day

Urs

I plan on running my own web server on my RPi.

How would I go about configuring the config.txt ? since I don’t want to FTP the clientraw to a server, instead just copying from /home/pi/consolewdfiles/clientraw.txt to /var/www/weather28/uploadCW/ (when using Leuven-Template 2.8 for example)

Ive seen config.txt with this text, will that work? :

copy clientraw/customclient raw to this directory=/var/www/weather28/uploadCW/
copy datafiles to this directory=
copy logfiles to this directory=

/Niklas

Hi
that should work, yes

Perfect, thanks.

or… maybe even better (to help reduce the number of read/write on the SD-card), if you could specify the path in which to create the original clientraw.txt file… is there a setting for that in config.txt ?

or… can you create a symbolic link in the /var/www/weather28/uploadCW/ that points to the /home/pi/consolewdfiles/clientraw.txt ?

/Niklas (Linux NOOB)