Command not found when running sudo ./configure && make for libhid

actually in checking my code, all the raw data that arrives is shown
e.g like
data read length ->15
01 FF FF 00 42 C1 23 00 59 14 00 00 20 B3 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

can you collate and post all that data that arrives?

Hi,

I’ve uploaded the output from running consolewd for a while to my website:

http://digitalessence.net/weather/console-output.txt

thanks,

Hedley

OK I see the problem
the data other than temp/hum is arriving all at once, i.e all in the same data line
and so it needs to be split/teased out (the FF’s divde the data)

I will work on that and let you know

Sweet. That’s great news, thank you.

BTW, have you/anyone else written a doc on how WD works in terms of how it collects and parses the data? Would be interested to know what the process is and what the numbers mean.

try vers 14.0
http://www.weather-display.com/downloadfiles/consolewdtest.zip

That’s looking better. I’m now getting Windspeed, Gust and Direction coming in but the Windspeed and Gustspeed are the same.

Barometer is still showing 1013.0
And the temp data is still off.

On Windows and the weather base station it is showing as 0.5C but in consolewd it is showing as -0.5C. Pressure is showing as 1020 but WD shows it as the default 1013

I noticed a discrepancy in temps on the 14C as well.

Also of note. the temp was showing as 3.5C before and after on Windows and on the base station. On the Pi it was showing as 2.5C

Let me output it to a txt file for a few minutes and upload it again.

Thanks.

Current data 10:15:37: Temperature= -0.5 Windspeed =8.6 Gustspeed =8.6 Direction =270 Humidity=98 Barometer=1013.0 Daily Rain=0.0
data read length ->15
 01 FF FF 00 42 C1 05 00 62 0A 00 00 20 94 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 01 FF FF 00 42 C1 05 00 62 0A 00 00 20 94 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 FF FF 00 42 C1 05 00 62 0A 00 00 20 94 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
temperature found, sensor # 0
Temperature data found
send PC ready result 1
Current data 10:15:53: Temperature= -0.5 Windspeed =8.6 Gustspeed =8.6 Direction =270 Humidity=98 Barometer=1013.0 Daily Rain=0.0

the barometer data does not update very often
it should come in though
re the temperature, maybe you have set a temperature offset in the config.txt file
??

Good spot. The config I was using was the one supplied with the image and had a -1 in temp offset=

I have now removed this and the temp is correct.

So

  1. windspeed & gustspeed are still duplicated with the same value for both
  2. Will wait for the barometer to update until which time I assume it will sit at the default 1013.0 it has updated and is now showing the correct reading.

I’ve uploaded the output from running the most recent version of consolewd to my website:

http://digitalessence.net/weather/console-output.txt
thanks.

the default config.txt does not have a -1 for temp offset

anyway, I will check on the windspeed

I have checked and the windspeed and gustspeed should be different data
but I could add debug code to show the raw data coming in

Sorry, I meant the image provided by Peter that was a complete Pi OS & WD install. Not your WD files.

That would be great thanks. So close i’m getting excited.

I have added more wind debug info
download from the normal download this time, the update

Thanks.

I’ve downloaded the file consolewd64.tar.gz (Version on 17 January 2018 - 03:20:04) and placed all of the files but I’m still getting the gust and speed mirroring.

I’m piping it into a text file again and will update this thread.

EDIT

Updated output from running the new version of consolewd.

http://digitalessence.net/weather/console-output.txt

Interesting. The data uploaded to Wunderground is showing a different value for windspeedmph &windgustmph. see this excerpt: We don’t have much wind today so I don’t have much data to go on but I will monitor it and report back.

data read length ->15
 01 FF FF 00 42 C1 01 00 62 00 00 00 20 86 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 01 FF FF 00 42 C1 01 00 62 00 00 00 20 86 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 FF FF 00 42 C1 01 00 62 00 00 00 20 86 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
temperature found, sensor # 0
Temperature data found
send PC ready result 1
Current data 08:44:49: Temperature= 0.1 Windspeed =0.0 Gustspeed =0.0 Direction =135 Humidity=98 Barometer=991.0 Daily Rain=0.0
data read length ->-1
send PC ready result 1
data read length ->-1
send PC ready result 1
**** doing minute rWU data to send http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=ISCOTTIS5&PASSWORD=XXXXXXXXX&dateutc=2018-01-17+08%3A48%3A00&winddir=111&windspeedmph=1&windgustmph=3&humidity=98&tempf=32.1&rainin=0.00&baromin=29.264&dewptf=31.6&weather=&clouds=&dailyrainin=0.00&solarradiation=0.0&UV=0.0&softwaretype=WeatherDisplay%3AWD_console_14.0&action=updateraw
Wunderground data send Ok 08:45:01

regards,

Hedley

that link does not work?

Oops.

Does now. Sorry about that. Fat fingers.

http://digitalessence.net/weather/console-output.txt

wind found
speed= 0.9 m/s dir 135 average 0.9

that shows that for the raw data, the 2 values are the same
for wunderground data though, it will be sending an average of the average speed values (and then maximum of the current speed values since last data send), sort of thing

Ok.

So in WD, the Windspeed and Gustspeed will always be the same value?

not normally for other station types
but this station type they are being provided as the same number
(I could then make it so that there is a running average for the average speed)

The WMR180 only transmits a wind value about each minute, so there’s no real current/gust data.

Ah ok thanks.

So, I think everything is working correctly and I now have my WMR180 connected to my Raspberry Pi 3 feeding into Wunderground and you don’t know how happy this makes me.

Thank you ever so much for all your hard work, coding and testing while I’ve sat for 4 pages on this forum going “nope, doesn’t work”.

EDIT:

I switched from my install provided by mihec which is a console only distro to the Raspbian one provided on the Raspberry Pi website.

I followed the install instructions and oddly the barometer never changed from the default 1013.0 even though I left it all day.

Powered down and restarted the one provided by mihec and within 10 minutes it had picked up the correct barometer reading. This is odd as the other settings were all correct and as expected.

My install procedure is as follows:

1.1 modify /etc/apt/sources.list
sudo pico /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.

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

Or if you get errors:

sh configure && make

At the end you will may get an error 2 in the make part, ignore that
sudo make install

This finishes without errors

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 Copy the consolewdfiles folder to your pi folder on the RaspberryPI

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

chmod 777 -R consolewd/*

2.6 copy all files from the consolewdfiles/deploy to the systemfolders

Copy libhid.so.0.0 to libhid.so.0
to stop error when running consolewd

cp libhid.so.0.0 libhid.so.0

Then copy all the files.
sudo cp . /usr/lib
sudo cp . /usr/local/lib

Reboot.

sudo ./consolewd