Two feature requests for WD for Raspberry Pi

I testing via stationless
and it does not stop
but I will test tomorrow with getting data from a davis station via usb

I hooked it up to my davis VP
and the data carry’s on OK after the running of the cronwindycom
(if you stop that from sending is it OK ?)

So I did a clean install of Raspbian, and it still seems to stop receiving data after it runs cronwindycom. If I disable cronwindycom, it keeps getting data fine. I’ve tried starting consolewd 3 times. This is what happened those 3 times.


Current data 19:14:58: Temperature= 73.2 Windspeed =1.8 Gustspeed =2.0 Direction =248 Humidity=82 Barometer=1005.3 Daily Rain=0.0  Rain Rate 0.0mm/min
*****Received count =  ----------------------------->  99
yes VP data 79
Doing VP routine now
raw vp baro 1005.3
raw vp temp 22.9
Vpsolar = 7
Davis Data OK
Current data 19:15:00: Temperature= 73.2 Windspeed =1.8 Gustspeed =2.0 Direction =248 Humidity=82 Barometer=1005.3 Daily Rain=0.0  Rain Rate 0.0mm/min
**** doing minute routines now 19:15:00
**** updating clientraw extra files
**** updating data logs
** opening custom input file /home/pi/consolewdfiles/wxlocal.html
***closed custom tag in file
******custom output 1 /home/pi/consolewdfiles/testtags.php
******re writing custom file 
**custom tags lines to write 1
** closed custom tag out file
Doing CWOP
updating windycom
*   Trying 35.241.28.33...
* TCP_NODELAY set
* Connected to stations.windy.com (35.241.28.33) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: OU=Domain Control Validated; OU=PositiveSSL Wildcard; CN=*.windy.com
*  start date: Apr 18 00:00:00 2017 GMT
*  expire date: Apr 17 23:59:59 2020 GMT
*  subjectAltName: host "stations.windy.com" matched cert's "*.windy.com"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x11dbea8)
> GET /pws/update/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaSI6MTExMTM1NSwiaWF0IjoxNTU4NjI4NjIzfQ.DZY61VIMH9G7Ubb578fWG0fJ9w1IA1So7wxJi8-KN4c?&station=0&winddir=256&ts=1559085300&windspeedmph=1&windgustmph=4&humidity=82&tempf=73.3&rainin=0.000&baromin=29.688&dewptf=67.5&uv=0.0 HTTP/1.1
> Host: stations.windy.com
> User-Agent: curl/7.52.1
> Accept: */*
> Connection:close
> 
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 200 
< x-powered-by: node-pws-5cd7b8cf54-r9h2d: v1.4.0 pws
< access-control-allow-origin: *
< cache-control: private, no-cache, no-store, must-revalidate
< expires: -1
< pragma: no-cache
< content-type: text/html; charset=utf-8
< content-length: 7
< vary: Accept-Encoding
< date: Tue, 28 May 2019 23:15:03 GMT
< via: 1.1 google
< alt-svc: clear
< 
* Curl_http_done: called premature == 0
* Connection #0 to host stations.windy.com left intact
SUCCESSresult 0
Terminated
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload customclientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK

Current data 19:20:00: Temperature= 73.3 Windspeed =0.6 Gustspeed =3.0 Direction =228 Humidity=81 Barometer=1005.2 Daily Rain=0.0  Rain Rate 0.0mm/min
**** doing minute routines now 19:20:00
**** updating clientraw extra files
**** updating data logs
** opening custom input file /home/pi/consolewdfiles/wxlocal.html
***closed custom tag in file
******custom output 1 /home/pi/consolewdfiles/testtags.php
******re writing custom file 
**custom tags lines to write 1
** closed custom tag out file
Doing CWOP
Sending CWOP data now
updating windycom
*   Trying 35.241.28.33...
* TCP_NODELAY set
* Connected to stations.windy.com (35.241.28.33) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
status  0
connected to CWOP server Ok
status  0
cwop sending user EW1682 pass -1 // -1 is default (you do not have a Ham call si vers wxdisplay WD_console_18.0 31
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: OU=Domain Control Validated; OU=PositiveSSL Wildcard; CN=*.windy.com
*  start date: Apr 18 00:00:00 2017 GMT
*  expire date: Apr 17 23:59:59 2020 GMT
*  subjectAltName: host "stations.windy.com" matched cert's "*.windy.com"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x97bea8)
> GET /pws/update/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaSI6MTExMTM1NSwiaWF0IjoxNTU4NjI4NjIzfQ.DZY61VIMH9G7Ubb578fWG0fJ9w1IA1So7wxJi8-KN4c?&station=0&winddir=261&ts=1559085638&windspeedmph=0&windgustmph=5&humidity=82&tempf=73.3&rainin=0.000&baromin=29.686&dewptf=67.5&uv=0.0 HTTP/1.1
> Host: stations.windy.com
> User-Agent: curl/7.52.1
> Accept: */*
> Connection:close
> 
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 200 
< x-powered-by: node-pws-5cd7b8cf54-r9h2d: v1.4.0 pws
< access-control-allow-origin: *
< cache-control: private, no-cache, no-store, must-revalidate
< expires: -1
< pragma: no-cache
< content-type: text/html; charset=utf-8
< content-length: 97
< vary: Accept-Encoding
< date: Tue, 28 May 2019 23:20:02 GMT
< via: 1.1 google
< alt-svc: clear
< 
* Curl_http_done: called premature == 0
* Connection #0 to host stations.windy.com left intact
SUCCESS (partial) 
 'ts': value is greater then our now time (our time is used) dt=36s;  
 result 0
Terminated
status  0
cwop sending EW1682>APRS,TCPIP*:@282320z4007.81N/07412.87W_354/001g005t073r000p000P000b10053h82.WD 31
status  0

Current data 20:24:58: Temperature= 71.4 Windspeed =1.5 Gustspeed =1.0 Direction =270 Humidity=87 Barometer=1004.9 Daily Rain=0.0  Rain Rate 0.0mm/min
*****Received count =  ----------------------------->  99
yes VP data 79
Doing VP routine now
raw vp baro 1004.9
raw vp temp 21.9
Vpsolar = 0
Davis Data OK
Current data 20:25:00: Temperature= 71.4 Windspeed =1.5 Gustspeed =1.0 Direction =270 Humidity=87 Barometer=1004.9 Daily Rain=0.0  Rain Rate 0.0mm/min
**** doing minute routines now 20:25:00
**** updating clientraw extra files
**** updating data logs
** opening custom input file /home/pi/consolewdfiles/wxlocal.html
***closed custom tag in file
******custom output 1 /home/pi/consolewdfiles/testtags.php
******re writing custom file 
**custom tags lines to write 1
** closed custom tag out file
Doing CWOP
updating windycom
*   Trying 35.241.28.33...
* TCP_NODELAY set
* Connected to stations.windy.com (35.241.28.33) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: OU=Domain Control Validated; OU=PositiveSSL Wildcard; CN=*.windy.com
*  start date: Apr 18 00:00:00 2017 GMT
*  expire date: Apr 17 23:59:59 2020 GMT
*  subjectAltName: host "stations.windy.com" matched cert's "*.windy.com"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x1307ea8)
> GET /pws/update/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaSI6MTExMTM1NSwiaWF0IjoxNTU4NjI4NjIzfQ.DZY61VIMH9G7Ubb578fWG0fJ9w1IA1So7wxJi8-KN4c?&station=0&winddir=249&ts=1559089350&windspeedmph=1&windgustmph=4&humidity=87&tempf=71.4&rainin=0.000&baromin=29.673&dewptf=67.4&uv=0.0 HTTP/1.1
> Host: stations.windy.com
> User-Agent: curl/7.52.1
> Accept: */*
> Connection:close
> 
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 200 
< x-powered-by: node-pws-5cd7b8cf54-r9h2d: v1.4.0 pws
< access-control-allow-origin: *
< cache-control: private, no-cache, no-store, must-revalidate
< expires: -1
< pragma: no-cache
< content-type: text/html; charset=utf-8
< content-length: 7
< vary: Accept-Encoding
< date: Wed, 29 May 2019 00:25:01 GMT
< via: 1.1 google
< alt-svc: clear
< 
* Curl_http_done: called premature == 0
* Connection #0 to host stations.windy.com left intact
SUCCESSresult 0
Terminated
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload customclientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK
login OK to ftp.midatlwx.com
changing to /
upload clientraw.txt to ftp.midatlwx.com OK
upload testtags.php to ftp.midatlwx.com OK


The last time I tried killing cronwindycom and it just got stuck in a loop FTP’ing to my website.

humm
email me your config.txt file and your custom web files wxlocal.html and testtags.php
and I will test here

I can duplicate
the fix goes back to the orginal problem problem of cronwindycom not closing
I will try calling curl from within consolewd and see how that works

finally fixed it
vers 18.1
ready now

Hi Brian,
Just curious if you’ve been able to make any progress on adding extra sensor data (soil moisture and temperature) to wdpi?

Hi, all

I have one question: How do i convert the testtags.txt in consolewd to testtags.php, do i just copy the testtags into the wxlocal file or?

For the rest, consolewd is now running without a glitch for more than a year, occasionally i have to do a apt-get update/upgrade, without that it would have been running without a restart for all that time!

Great Work!!

Thanks in advance for the answer to my testtags question!

I noticed that when i run the testtags-file consolewd stops sending the other data after a wile and just sends the same clientraw-file every 30 seconds, is it perhaps to much load for the RPI3 or do the files overlap each other in the upload times?

Staccermaccer,

@TheOtherJohnN
I have been away for a week
I will see about doing something soo

@staccermaccer
one solution is I could make it a separate cron program to process custom tags

Hi, Brian

Thanks for the reply, perhaps that is a solution!

Staccermaccer,

Hi, Brian

We are expecting here in Belgium an all-time weather record of 40

there should be some all time record custom tags you can use