cloudy cloudy

Author Topic: E-mail weather report on ConsoleWD  (Read 784 times)

0 Members and 1 Guest are viewing this topic.

Offline tbnilen

  • Posts: 23
  • Kr.Sonnerup, Sjaelland, Denmark
  • OS/Browser:
  • iOS 12.1.1
  • Safari 12.0
    • Weather from (Roskilde) Denmark
E-mail weather report on ConsoleWD
« on: January 31, 2019, 09:41:43 PM »
Hey
Iím running Weather Display on Windows pc now and upload e-mail report every 10min to the Danish Meteorological Institute.
I want to replace the old pc with a Raspberry Pi, now iím  testing the ConsoleWD on a Raspberry Pi3 B+  and I don't see any way to email Weather report, (http://www.dmi.dk/vejr/maalinger/borgervejr/borgervejr-opsaetning-af-software/) would it be possible to get that added in ?

Thanks Tommy
« Last Edit: February 02, 2019, 12:27:28 PM by tbnilen »

Offline Weather Display

  • Posts: 87,212
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: E-mail weather report on ConsoleWD
« Reply #1 on: January 31, 2019, 11:36:14 PM »
i guess that could be added (I could use curl to send it)

Offline Weather Display

  • Posts: 87,212
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: E-mail weather report on ConsoleWD
« Reply #2 on: February 01, 2019, 05:11:55 AM »
using curl works in testing
(using gmail server)

Offline tbnilen

  • Posts: 23
  • Kr.Sonnerup, Sjaelland, Denmark
  • OS/Browser:
  • iOS 12.1.1
  • Safari 12.0
    • Weather from (Roskilde) Denmark
Re: E-mail weather report on ConsoleWD
« Reply #3 on: February 01, 2019, 09:21:47 AM »
look forward to getting it added, Iíll buy you a Jacobsen, good weekend  :D

Offline Weather Display

  • Posts: 87,212
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: E-mail weather report on ConsoleWD
« Reply #4 on: February 01, 2019, 11:15:51 PM »
I have it working
latest raspberry pi 3 update

set the needed settings in the new confi.txt format
works here with my gmail mail server

you set the hour and minute to send

there is a custommail.txt file to get you started..you can customise that to what you want to send (i.e uses custom tags)
(have that file where consolewd is)

Offline tbnilen

  • Posts: 23
  • Kr.Sonnerup, Sjaelland, Denmark
  • OS/Browser:
  • iOS 12.1.1
  • Safari 12.0
    • Weather from (Roskilde) Denmark
Re: E-mail weather report on ConsoleWD
« Reply #5 on: February 02, 2019, 11:59:48 PM »
Hey Brian
Have tested the new email funktion and the email working, but after the email is send the logging from the weatherstation is stopped?
If I want to send a report every 10minute>24/7, is there a easy way to set it up or must I repeat all hours and minutes?

/Tommy

Offline Weather Display

  • Posts: 87,212
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: E-mail weather report on ConsoleWD
« Reply #6 on: February 03, 2019, 12:14:38 AM »
at the moment its only a one time send (at hour/minute you set)
you had not said how often
I could add to set how often

re logging stopped
not sure why that would occur...
when you say logging, how you do you mean exactly?

Offline tbnilen

  • Posts: 23
  • Kr.Sonnerup, Sjaelland, Denmark
  • OS/Browser:
  • (Linux Mint)
  • Chrome 65.0.3325.181
    • Weather from (Roskilde) Denmark
Re: E-mail weather report on ConsoleWD
« Reply #7 on: February 03, 2019, 10:53:06 AM »
Hey Brian
Sorry it wasn't clear what I wanted, but citizen weatherstations weatherdata on DMI.dk is updated every 10 minutes, via an email weather report.

Relating to  data received stops, i insert a screen shoot where you can see the data stream running perfect until the email is sent, the data stream stops flowing, but it continues to upload to website (every 120  sec.)?

/Tommy
 
Quote
Wind Data OK
Current data 11:14:51: Temperature= 1.1 Windspeed =0.0 Gustspeed =0.0 Direction =270 Humidity=81 Barometer=1012.8 Daily Rain=0.0  Rain Rate 0.0mm/min
ser_read error Resource temporarily unavailable
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  9
out door temp Data OK
Current data 11:14:54: Temperature= 1.1 Windspeed =0.0 Gustspeed =0.0 Direction =270 Humidity=81 Barometer=1012.8 Daily Rain=0.0  Rain Rate 0.0mm/min
ser_read error Resource temporarily unavailable
stage 1 2310 OK
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  5
Outdoor Hum Data OK
ser_read error Resource temporarily unavailable
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  1
*****Received count =  ----------------------------->  5
Wind Data OK
Current data 11:15:00: Temperature= 1.1 Windspeed =0.0 Gustspeed =0.0 Direction =270 Humidity=81 Barometer=1012.8 Daily Rain=0.0  Rain Rate 0.0mm/min
**** doing minute routines now 11:15:00
**** updating clientraw extra files
**** updating data logs
cronftpreal: ingen proces fundet
Starting cronftpreal
Sending email 11:15:01
updating custom email now
******custom email output /home/pi/Desktop/consolewdfiles/mail.txt
Time       120 seconds
Remote name 
Port to use 21
login OK to vesty.dk
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0changing to /public_html/weather28/uploadCW
upload clientraw.txt to vesty.dk OK
upload tagsCW.txt to vesty.dk OK
100   131    0     0  100   131      0     84  0:00:01  0:00:01 --:--:--    84
login OK to vesty.dk
changing to /public_html/weather28/uploadCW
upload clientraw.txt to vesty.dk OK
upload tagsCW.txt to vesty.dk OK
login OK to vesty.dk
changing to /public_html/weather28/uploadCW
upload clientraw.txt to vesty.dk OK
upload tagsCW.txt to vesty.dk OK



Offline Weather Display

  • Posts: 87,212
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: E-mail weather report on ConsoleWD
« Reply #8 on: February 03, 2019, 06:08:53 PM »
what weather station type?

Offline tbnilen

  • Posts: 23
  • Kr.Sonnerup, Sjaelland, Denmark
  • OS/Browser:
  • iOS 12.1.2
  • Safari 12.0
    • Weather from (Roskilde) Denmark
Re: E-mail weather report on ConsoleWD
« Reply #9 on: February 04, 2019, 09:07:39 AM »
Test is on an older Ls Crosse 2310, station type 60, later I Will switch to Davis Vantage Pro2

/Tommy
« Last Edit: February 06, 2019, 03:25:16 PM by tbnilen »

Offline Weather Display

  • Posts: 87,212
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: E-mail weather report on ConsoleWD
« Reply #10 on: February 05, 2019, 07:35:38 PM »
try another update
email now sent via a separate cron program
(at the one time you set currently still)

Offline tbnilen

  • Posts: 23
  • Kr.Sonnerup, Sjaelland, Denmark
  • OS/Browser:
  • iOS 12.1.1
  • Safari 12.0
    • Weather from (Roskilde) Denmark
Re: E-mail weather report on ConsoleWD
« Reply #11 on: February 08, 2019, 12:52:48 PM »
I have updated, and made the first test, and now the program continues to read data, but cpu load increases from 1% to 25% when it has sent the email and does not fall again. I lose the serial communication after a few hours, it may be due to the 15 year old weather station, with serial to USB adapter, but the Console WD program continues to run .. I will try to test the connection with Davis weather station later.
Meanwhile, DMI.dk has chosen to remove citizen weather, so I can't test against their site, (just testing email locally) but it comes back in a new version later this year.
/Tommy