WXforum.net
June 18, 2013, 01:17:56 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6695  •  Posts: 181298  •  Topics: 18400
Please welcome KD0RII, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: wxstatus - email?  (Read 1467 times)
0 Members and 1 Guest are viewing this topic.
mackbig
Forecaster
*****
Offline Offline

Posts: 4085



WWW
« on: October 21, 2009, 06:54:25 AM »

I am using a modified version of a status page, Ken posted his raw code here a while back.

Wondering how hard it would be to throw some php into it to fire an email when it encounters a "NOT current"

I know that email by php is possible as its in my contact us script.    So I was thinking the status.php could be combined with email php, then I could run a cron job hourly (or at some interval), then it would crank out an email.   

Trying to fix my GR3 uploads that occasionally stop, with a push vs a pull solution.  I check my email everyday while walking the dog, and have a bb the rest of the day, but its first thing, that is the issue. Helps me going a few hours without radar and having to walk my tech support (wife) through restarting/sizing/upload enabling each time.    Dont have a ton of time in the morning, so cant always check the status online.

Anyone already have something like this?  Is it hard? Up for the challenge?

Thanks,
Andrew

status page on site
http://www.mackweather.com/wxstatus.php

base status page.
http://www.mackweather.com/status.php

source for Ken's script
http://www.wxforum.net/index.php?topic=2576.msg18416#msg18416
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
jwwd
Senior Member
**
Offline Offline

Posts: 58



WWW
« Reply #1 on: October 21, 2009, 07:31:47 AM »

Hi

I think Mike Challis has made the script once - but cant find it on his site.

I have attached my status.ph (renamed to .txt).

The script will send me an e-mail if the files are not uploaded correctly.

Best regards,

Henrik
Logged


Davis Vantage Pro2 w/FARS & solarsensor. Boltek LD-250 Lightningdetector
mackbig
Forecaster
*****
Offline Offline

Posts: 4085



WWW
« Reply #2 on: October 21, 2009, 07:35:30 AM »

thanks Henrik.
I cant see attachments through my work firewall, so I will take a look tonight.

Andrew
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
mackbig
Forecaster
*****
Offline Offline

Posts: 4085



WWW
« Reply #3 on: October 21, 2009, 08:29:56 PM »

Henrik,
It worked.  Still have to customize a bit more.

I had to change this code to stop getting php errors.
Code:
<?PHP date_default_timezone_set("Europe/Copenhagen");?> <!--Change to your time zone, see scripts website for help identifying your timezone-->

to this format. I guess a php version issue?
Code:
<?php putenv("TZ=America/Toronto");?>

It does not like it, when it cant find a file, but it still emails report fine.
This is very cool.

Thanks
Andrew
« Last Edit: October 21, 2009, 09:48:07 PM by mackbig » Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
jwwd
Senior Member
**
Offline Offline

Posts: 58



WWW
« Reply #4 on: October 22, 2009, 12:31:16 AM »

Henrik,
It worked.  Still have to customize a bit more.

I had to change this code to stop getting php errors.
Code:
<?PHP date_default_timezone_set("Europe/Copenhagen");?> <!--Change to your time zone, see scripts website for help identifying your timezone-->

to this format. I guess a php version issue?
Code:
<?php putenv("TZ=America/Toronto");?>

It does not like it, when it cant find a file, but it still emails report fine.
This is very cool.

Thanks
Andrew


Hi Andrew

Glad you got it working.

About the timezone setting - then I think you are right - its a PHP version issue. I use PHP 5.3.

Best regards,

Henrik
Logged


Davis Vantage Pro2 w/FARS & solarsensor. Boltek LD-250 Lightningdetector
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.104 seconds with 18 queries.
anything