HOWTO: ConsoleWD for Raspberry Pi Setup Instructions - Old version

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)

When buying a RPi do you need to install any specific Linux software on it firstfirst? If so what’s recommended?
Once (should be if) I get it up and running at home is it possible to view the data on my iPad?
Complete novice on Linux and RPi.

I have been trying to get consolewd working on my RPi 2, but no luck. I have followed the instructions given by Wim back in 2013 to the letter. When I try to execute the command ./consolewd, I get an error message saying that it can’t find the command anywhere. I am running the latest version of Raspian on my Pi 2. Can anyone suggest where I might be going wrong?

@rkoradio
that error is because that version of the raspberry pi is 64 bit
but consolewd is only 64 bit

I now have a rasperry pi 3
nice unit

I see you can not download libhid from the link provided
but I already had that
seems to go through all the hoops in compiling and installing
but I do not get any new libhid .so files
which need to be 64 bit compiled

as the error I get on running consolewd is can not open those shared hid library files

need help wvdkuil ! :slight_smile:

Huh?

Typo
I meant that the current version of consolewd is 32 bit
Which will not run on a 64 bit distro raspberry pi
Which I am now trying to compile

Got it :smiley:

the libhid you can download from
http://www.weather-display.com/downloadfiles/libhid-0.2.16.tar.gz

re trying to get it to compile to the needed .so files under 64 bit raspberry pi

Hi Brian,

the “disaster” has happened after about 2 years I was brave or stupid enough to run a apt-get upgrade on the Raspberry Pi that runs the consolewd and now it doest work anymore. I could cry now.

I am getting this:

Weather Display vers WD_console_12.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
Irox opened OK
irox write 5
irox read 34
Raw irox baro 4095.9
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
irox read -1

and the clientraw.txt stays empty.

pi@raspberrypi ~/WX $ uname -a
Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux
pi@raspberrypi ~/WX $

this raspy is on a remote station 2000km away from me, only SSH access.
Is there any change to make it work again?

Raspberry PI 2 and IROX Pro X2.

Many thanks

that looks like the data is out of sync
it might come back into sync?
re the 64 bit compile, I did get that to work now on my raspberry 3 ( there was another thread about that) :wink:

Brian,

i did restart the raspberry but all the time same issue, barometer is crazy reading and nothing in here

pi@raspberrypi ~/WX $ ls -la clientraw.txt
-rwxrwxrwx 1 pi pi 0 Jul 7 21:11 clientraw.txt
pi@raspberrypi ~/WX $

I can not restart the IROX as it is in remote, also I can not rewrite the SD card image to an old raspbian.
I am pretty sure the raspbian upgrade killed it.

Is there a way to make it work with the lastest raspbian? Are you aware of that issue that if someone upgrade the OS, it stops working?

Can you please make a test or what should i try to do to give you some debug info? Many thanks

w interface driver hub
[ 0.601025] usbcore: registered new device driver usb
[ 0.607036] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-03-15 14:47
[ 0.642715] Switched to clocksource stc
[ 0.696270] FS-Cache: Loaded
[ 0.699593] CacheFiles: Loaded
[ 0.718003] NET: Registered protocol family 2
[ 0.723933] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.731124] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.737756] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.744400] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.750299] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.757007] NET: Registered protocol family 1
[ 0.761972] RPC: Registered named UNIX socket transport module.
[ 0.768023] RPC: Registered udp transport module.
[ 0.772797] RPC: Registered tcp transport module.
[ 0.777531] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.785245] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[ 0.794385] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.816731] VFS: Disk quotas dquot_6.6.0
[ 0.821103] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.830761] FS-Cache: Netfs ‘nfs’ registered for caching
[ 0.837533] NFS: Registering the id_resolver key type
[ 0.842834] Key type id_resolver registered
[ 0.847058] Key type id_legacy registered
[ 0.854890] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.862881] io scheduler noop registered
[ 0.866882] io scheduler deadline registered (default)
[ 0.872462] io scheduler cfq registered
[ 0.878861] BCM2708FB: allocated DMA memory 5b800000
[ 0.884034] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 0.894582] Console: switching to colour frame buffer device 82x26
[ 0.905847] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[ 0.914741] KGDB: Registered I/O driver kgdboc
[ 0.921898] vc-cma: Videocore CMA driver
[ 0.927644] vc-cma: vc_cma_base = 0x00000000
[ 0.934043] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 0.941024] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 0.948308] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 0.978841] brd: module loaded
[ 0.992655] loop: module loaded
[ 0.998545] vchiq: vchiq_init_state: slot_zero = 0xdb880000, is_master = 0
[ 1.009087] Loading iSCSI transport class v2.0-870.
[ 1.017230] usbcore: registered new interface driver smsc95xx
[ 1.024835] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.232417] Core Release: 2.80a
[ 1.237195] Setting default values for core params
[ 1.243578] Finished setting default values for core params
[ 1.450862] Using Buffer DMA mode
[ 1.455798] Periodic Transfer Interrupt Enhancement - disabled
[ 1.463266] Multiprocessor Interrupt Enhancement - disabled
[ 1.470415] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.476408] Dedicated Tx FIFOs mode
[ 1.481861] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[ 1.494990] FIQ FSM acceleration enabled for :
[ 1.494990] Non-periodic Split Transactions
[ 1.494990] Periodic Split Transactions
[ 1.494990] High-Speed Isochronous Endpoints
[ 1.518172] dwc_otg: Microframe scheduler enabled
[ 1.518301] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc03dd8e0
[ 1.525881] WARN::hcd_init_fiq:413: FIQ ASM at 0xc03ddbbc length 36
[ 1.533793] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc896000
[ 1.541522] dwc_otg 20980000.usb: DWC OTG Controller
[ 1.548186] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 1.557221] dwc_otg 20980000.usb: irq 32, io mem 0x00000000
[ 1.564464] Init: Port Power? op_state=1
[ 1.569935] Init: Power Port (0)
[ 1.575063] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.583520] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.592330] usb usb1: Product: DWC OTG Controller
[ 1.598630] usb usb1: Manufacturer: Linux 4.1.19+ dwc_otg_hcd
[ 1.605970] usb usb1: SerialNumber: 20980000.usb
[ 1.613264] hub 1-0:1.0: USB hub found
[ 1.618704] hub 1-0:1.0: 1 port detected
[ 1.624803] dwc_otg: FIQ enabled
[ 1.624826] dwc_otg: NAK holdoff enabled
[ 1.624841] dwc_otg: FIQ split-transaction FSM enabled
[ 1.624906] Module dwc_common_port init
[ 1.625450] usbcore: registered new interface driver usb-storage
[ 1.633519] mousedev: PS/2 mouse device common for all mice
[ 1.641688] bcm2835-cpufreq: min=700000 max=700000
[ 1.648487] sdhci: Secure Digital Host Controller Interface driver
[ 1.656293] sdhci: Copyright(c) Pierre Ossman
[ 1.662602] sdhost: log_buf @ db813000 (5b813000)
[ 1.742801] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 1.750460] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.778682] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.786646] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.794028] usbcore: registered new interface driver usbhid
[ 1.801192] usbhid: USB HID core driver
[ 1.811147] Initializing XFRM netlink socket
[ 1.817471] NET: Registered protocol family 17
[ 1.823783] Indeed it is in host mode hprt0 = 00021501
[ 1.891814] Key type dns_resolver registered
[ 1.904446] registered taskstats version 1
[ 1.910544] vc-sm: Videocore shared memory driver
[ 1.917154] [vc_sm_connected_init]: start
[ 1.924264] [vc_sm_connected_init]: end - returning 0
[ 1.933452] Waiting for root device /dev/mmcblk0p2…
[ 1.950479] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.963712] mmc0: new high speed SDHC card at address b368
[ 1.971669] mmcblk0: mmc0:b368 AF SD 15.1 GiB
[ 1.979775] mmcblk0: p1 p2
[ 2.052833] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.062013] Indeed it is in host mode hprt0 = 00001101
[ 2.131072] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.142703] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.160791] devtmpfs: mounted
[ 2.166763] Freeing unused kernel memory: 348K (c0771000 - c07c8000)
[ 2.283300] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 2.292043] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.303813] hub 1-1:1.0: USB hub found
[ 2.310822] hub 1-1:1.0: 3 ports detected
[ 2.592943] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.723347] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 2.732247] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.755540] smsc95xx v1.0.4
[ 2.839184] smsc95xx 1-1.1:1.0 eth0: register ‘smsc95xx’ at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:5c:4d:18
[ 2.952891] usb 1-1.3: new low-speed USB device number 4 using dwc_otg
[ 3.088886] usb 1-1.3: New USB device found, idVendor=1130, idProduct=6801
[ 3.097930] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.107233] usb 1-1.3: Product:
[ 3.129487] hid-generic 0003:1130:6801.0001: hiddev0,hidraw0: USB HID v1.10 Device [ ] on usb-20980000.usb-1.3/input0
[ 3.836950] udevd[156]: starting version 175
[ 6.081529] bcm2835-rng 20104000.rng: hwrng registered
[ 8.102840] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 10.575039] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 10.966272] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 17.304855] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 19.648512] random: dd urandom read with 108 bits of entropy available
[ 20.455918] smsc95xx 1-1.1:1.0 eth0: hardware isn’t capable of remote wakeup
[ 21.956644] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x51E1
[ 22.514210] random: nonblocking pool is initialized
[ 30.605222] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:507900k SSFS
[ 40.444090] uart-pl011 20201000.uart: no DMA platform data
[ 44.463466] fuse init (API version 7.23)
[ 130.526073] usb 1-1.3: usbfs: process 3112 (consolewd) did not claim interface 0 before use
[ 130.526556] usb 1-1.3: usbfs: process 3112 (consolewd) did not claim interface 0 before use
[ 130.526949] usb 1-1.3: usbfs: process 3112 (consolewd) did not claim interface 0 before use
root@raspberrypi:~#

root@raspberrypi:~# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1130:6801 Tenx Technology, Inc.
root@raspberrypi:~#

I could add more debug info
e.g like the raw data that has arrived
and you have tried restarting consolewd a few times?

how long had it being running with no problems?

Hi Brian,

first many thanks for your help. It has been running like this for 2 years, that was just my huge mistake that I wanted to updated the raspbian OS on it 2 days ago and since then it behaves like that. There is no rawdate in the txt files, also if i start it i just see the high, unreal barometric measurement, and nothing else.

I restarted the raspy like 20 times, and even if i wait like 8 hours ( a night) same issue.

I would like to use this consolewd app if possible with the new/ latest raspbian. Worst case I can clone the SD card of my other weather raspy that have not been updated, but it would be really great if consolewd would run on the latest OS.

How can i give you more logs or debug info ?

there must have been a change to the usb/hid library
great that it ran for 2 years (was that non stop, or?)
re more info, I would need to get a new version up for you…with more raw data…