cloudy cloudy

Author Topic: ConsoleWD for Raspberry Pi Setup Instructions  (Read 17691 times)

0 Members and 1 Guest are viewing this topic.

Offline Weather Display

  • Posts: 81,933
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 51.0.2704.103
    • Weather Display
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #45 on: July 09, 2016, 09:16:54 AM »
OK, the data is synced OK, the 5A at the start is what is to be expected
the barometer data is this data:
FF 22
FF 23

which are both NULL 255

which points to a hardware issue with the barometer (its basicly out of range/not working or similar)

and because of that , the program is ignoring all the other data
(I could make this special version carry on so you at least get outdoor/indoor temperature?
« Last Edit: July 09, 2016, 09:19:30 AM by Weather Display »

Offline Weather Display

  • Posts: 81,933
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 51.0.2704.103
    • Weather Display
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #46 on: July 09, 2016, 09:31:25 AM »
download again, ...same URL..
so that it will carry on and ignore that NULL barometer values

Offline IROXproX

  • Posts: 20
  • from the Land of Mountains & Banks - Switzerland
  • OS/Browser:
  • (Linux Mint)
  • Firefox 47.0
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #47 on: July 09, 2016, 11:07:59 AM »
Brian, you are a BIG BIG Magican !!  :D

irox write 5
irox read 34
Raw irox baro 4095.9 FF FF
 irox Data OK
Current data : Temperature= 30.1 Windspeed =0.0 Gustspeed =0.0 Direction =0 Humidity=52 Barometer=1013.0 Daily Rain=0.0
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox write 5
irox read 34
Raw irox baro 4095.9 FF FF
 irox Data OK
Current data : Temperature= 30.1 Windspeed =0.0 Gustspeed =0.0 Direction =0 Humidity=52 Barometer=1013.0 Daily Rain=0.0
irox read -1
irox read -1


and now I have data:

pi@raspberrypi ~/consolewdfiles $ cat clientraw.txt
12345 0.0 0.0 0 30.1 52 1013.0 0.0 0.0 0.0 0.000 0.000 30.8 50 0.0 0 0.0 0 0 0.0 -1.0 -1.0 -1.0 -1.0 166.5 0.0 10 10 10 13 04 49 My_station-13:04:49 0 0 9 7 0 0 0 0 0 0 0 30.1 37.0 30.1 30.1 0 Dry 0.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0 19.2 4506.6 9/7/2016 37.0 37.0 30.1 30.1 0.0 0 0 0 0 0 0 0 0 0 0 13.0 13.0 13.0 13.0 13.0 13.0 13.0 13.0 13.0 23.3 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 31.5 31.5 31.5 0.0 0 --- --- 0 0 0 0.0 0.0 10 165 0 0 0 0.0 30.8 30.8 33.0 1013.0 1013.0 0 00:00:00 00:00:00 33.0 33.0 19.2 19.2 0 2016 2016 1 1 -1 0 0 0 0 0 0 0 0 0 0 0.0 0.0 0.0 22.9 0.0 0.0 0.0 52 52 !!CWD_console_12.3!!
pi@raspberrypi ~/consolewdfiles $


OK, I thank you million times, and now we all know that if some of the data is missing because of disconnected units or faulty sensors we have such issue. Actually now I will use this test variant, as I really like this way, if i lose connection to some of the wireless sensors, I will still have data to monitor.

Great job Sir!
« Last Edit: July 09, 2016, 11:12:39 AM by IROXproX »

Offline Weather Display

  • Posts: 81,933
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 51.0.2704.103
    • Weather Display
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #48 on: July 09, 2016, 06:02:15 PM »
donations gladly accepted  :wink:

Offline roar

  • Posts: 2
  • OS/Browser:
  • Win NT 10.0
  • Chrome 51.0.2704.79
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #49 on: November 13, 2016, 02:01:13 PM »
Hi Bryan

I have tried to install and reinstall the distro for Rasburry Pi 3 64 bit, I got from you in june, after the instructions here in  the forum
with the post from 28. August 2013, but used the lib-files from your new distro:

I do get message Error while loading shared libraries: libhid.so.0: Cannot open shared object file: no such file or directory

Regards

Roar

Offline staccermaccer

  • Posts: 188
  • Antwerp,Belgium
  • OS/Browser:
  • Win NT 10.0
  • Chrome 51.0.2704.79
    • Weather in Ekeren and Harbour of Antwerp
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #50 on: January 16, 2017, 07:58:55 AM »
At page 1 you can try this, maybe it helps!

Quote
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.

Staccermaccer,

Offline mihec

  • Posts: 140
  • OS/Browser:
  • (Linux Mint)
  • Firefox 54.0
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #51 on: July 17, 2017, 06:11:46 AM »
Anyone interested can download an image for the Raspberry PI with consolewd preinstalled. Tested with Irox station type.

https://www.dropbox.com/s/x4ryw78637hm99i/rpi_consolewd.gz?dl=0

md5sum: 2463de4fd0b77a2268546761cf2b107a

Image shall fit onto 8 GB SD card (this is where I created it from) but I suggest to use a 16 GB instead. Username/pass are RPi default (pi/raspberry). SSH is enabled.

All consolewd parameters are left default.

Offline Jed42

  • Posts: 17
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 59.0.3071.115
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #52 on: July 18, 2017, 09:11:04 PM »
Anyone interested can download an image for the Raspberry PI with consolewd preinstalled. Tested with Irox station type.

https://www.dropbox.com/s/x4ryw78637hm99i/rpi_consolewd.gz?dl=0

md5sum: 2463de4fd0b77a2268546761cf2b107a

Image shall fit onto 8 GB SD card (this is where I created it from) but I suggest to use a 16 GB instead. Username/pass are RPi default (pi/raspberry). SSH is enabled.

All consolewd parameters are left default.

I just download it, and the only thing it has is a file. Here is a screen shoot . Maybe I'm doing something wrong.
What version of the Pi is this image for?


Offline mihec

  • Posts: 140
  • OS/Browser:
  • (Linux Mint)
  • Firefox 54.0
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #53 on: July 20, 2017, 06:44:28 AM »
Unzip and restore the image to the SD card. Plug the SD card to your RPi and set the config.txt file in the consolewd directory.
Image was created from the 8 GB SD card but the size may slightly vary. I suggest you use a 16 GB SD card.

Offline medic29

  • Posts: 10
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #54 on: July 21, 2017, 01:13:37 AM »
Anyone interested can download an image for the Raspberry PI with consolewd preinstalled. Tested with Irox station type.

https://www.dropbox.com/s/x4ryw78637hm99i/rpi_consolewd.gz?dl=0

md5sum: 2463de4fd0b77a2268546761cf2b107a

Image shall fit onto 8 GB SD card (this is where I created it from) but I suggest to use a 16 GB instead. Username/pass are RPi default (pi/raspberry). SSH is enabled.

All consolewd parameters are left default.

I'm not sure what the "Irox station type" is...I google searched and I believe it is a different weather station.  Will this setup for the RPi be compatible if I'm using the Davis Vantage Pro 2?

Thanks!!!

Offline medic29

  • Posts: 10
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #55 on: July 21, 2017, 01:44:24 AM »
Anyone interested can download an image for the Raspberry PI with consolewd preinstalled. Tested with Irox station type.

https://www.dropbox.com/s/x4ryw78637hm99i/rpi_consolewd.gz?dl=0

md5sum: 2463de4fd0b77a2268546761cf2b107a

Image shall fit onto 8 GB SD card (this is where I created it from) but I suggest to use a 16 GB instead. Username/pass are RPi default (pi/raspberry). SSH is enabled.

All consolewd parameters are left default.

Okay, please bare with another dumb question from me...

How do I launch the program?  I loaded that image on an SD card and booted the Raspberry Pi up and am at the terminal.

Thanks!!!

Offline mihec

  • Posts: 140
  • OS/Browser:
  • (Linux Mint)
  • Firefox 54.0
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #56 on: July 21, 2017, 04:57:31 AM »
I don't have it on my RPi right now, but it goes something like:

Code: [Select]
cd consolewd
nano config.txt

This is the consolewd's configuration file. Please check out the comments in the file. For Davis station, you must set value 31 in line 1. Check other settings as well.

Save the file and run:
Code: [Select]
./GoWdconsole.sh

That's it.

Offline medic29

  • Posts: 10
  • OS/Browser:
  • Win NT 10.0
  • Chrome 51.0.2704.79
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #57 on: July 21, 2017, 09:06:56 PM »
I don't have it on my RPi right now, but it goes something like:

Code: [Select]
cd consolewd
nano config.txt

This is the consolewd's configuration file. Please check out the comments in the file. For Davis station, you must set value 31 in line 1. Check other settings as well.

Save the file and run:
Code: [Select]
./GoWdconsole.sh

That's it.

Woo hoo...I got it to work.  Not perfect yet, but it is working.  I need to check the config.txt file again.

Thanks!!

Offline Andre Germain

  • Posts: 7
  • OS/Browser:
  • Win XP
  • Firefox 52.0
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #58 on: August 24, 2017, 02:36:36 AM »
Any chance libhid is available other than from alioth? I don't have an account there nor a debian one, and when I tried to create a debian account, the captcha over IE on XP isn't working and I was then blacklisted from debian (!!!!!) for having tried to create an account a couple of times (the web page timed out as well). 

NEVER MIND, I had not noticed this thread was larger than a single page and saw the tar ball... will try it out.

Cheers
« Last Edit: August 25, 2017, 12:06:15 PM by Andre Germain »

Offline medic29

  • Posts: 10
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: ConsoleWD for Raspberry Pi Setup Instructions
« Reply #59 on: October 07, 2017, 06:26:08 PM »
I thought I would post the following for anyone who wants to set their Raspberry Pi up to run the WD Console automatically at boot.  I had been looking for a way to run the WD Console on my Raspberry Pi and by using the file provided by Mihec I was able to get it up and running, but every time the RPi lost power it would re-boot, then stop at the login prompt. So I would have to login, then issue the command to start the WD Console.  I finally found a way to have all of this done automatically, so now if the RPi reboots, it will automatically login, then start the WD Console.  Doesn't sound like it should have been very complicated to do, but it took some digging because no one would comment to give direction which would allow the application to actually do what it was supposed to do.  It would run, but would error "not able to find ./cronwu" thus it would work correctly.  Like I said, I found a way to make everything work as it should.  Below is what I found.

There are 2 parts to the problem:
1.Automatically login.
2.Automatically launch the program.

Assuming you're logging into the command prompt (no GUI):

To automatically login to the command prompt:

Create a file with sudo nano /etc/systemd/system/getty@tty1.service.d/override.confwith the following content:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM


For some reason, it works with the 1st ExecStart but not without it, so I just include it.

To Automatically launch the program:

a. Open up .bashrc for configuration:

sudo nano .bashrc

b. Scroll down to the bottom and add the following lines:

cd consolewdfiles
sleep 5
./GoWdconsole.sh

c. Save and exit:

Ctrl+X, Y, Enter

d. reboot the RPi (now it will automatically login, then start the WD Console)

sudo reboot (press enter)


I hope this helps others out.  I worked on it on/off for a few months before I finally figured it out.  I am fairly new to the RPi, so it's no surprise it took me this long.

Enjoy,
Rick