topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 1:59 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Flood Alert (As service or tray apps)  (Read 21550 times)

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Flood Alert (As service or tray apps)
« on: October 25, 2012, 11:57 AM »
Hi guys! flooding is a major issue in our country(Philippines). I would like to ask for an app that always look on a website for an interval of 1 hour(or customizable). The user can customize/specify his region/area so he'll know if there's a flood threat in his area. the apps will specifically look for example, www.sample_storm.ph/philippines/quezon_city/0.php = if the file is 1.php it will trigger an alarm to the screen with 3 types of photo red/yellow/green(as our existing local forecaster set that) system. the weather here is unpredictable.. even if the weatherman told us, it will rain 20% tomorrow, but what actually happen is that it pulls the other's storm's water and drop in our area up to 3 story building high.

so here's the idea's overview:

1 the app can be just a service app or a tray app(the usual)
2 you can set what region you are(to tell what folder in server to look upon)
3 the app will look on the website(website.com/regionfolder/0.php or 1.php or 2.php or 3.php ) every 1 hour
4 if it trigger, it will show a jpg(3 types of color) on screen. it means there's a storm with that level in their area.

* Thanks in advanced guys.. i guess this would help thousands of filipino lives if this would work. the active community of weather in the philippines is https://www.facebook...hilippineStormUpdate i just though of the idea I think it can help that community too..




 Download HERE
« Last Edit: June 18, 2013, 04:47 AM by psionics »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #1 on: October 25, 2012, 12:15 PM »
Hmmm...the http://www.storm.ph/...es/quezon_city/0.php seems to go to a domain registrar for that domain.  Am I missing something here?

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #2 on: October 25, 2012, 12:33 PM »
Hmmm...the http://www.storm.ph/...es/quezon_city/0.php seems to go to a domain registrar for that domain.  Am I missing something here?
the website is just a sample.. that is not the specific website, I can use mine(www.psionics.biz) if ever.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #3 on: October 25, 2012, 12:39 PM »
Well, that begs the question.  Where is the weather data going to come from?

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #4 on: October 25, 2012, 01:49 PM »
Well, that begs the question.  Where is the weather data going to come from?
the weather data they(philippines storm update team) are announcing will came from 4 sources.. but the only 1 i known is www.climatex.ph, the other sensors came from japan etc.. the philippines storm update team are the people who independently dedicated themselves to research and report to that facebook group. I thought it would be great if there's an alerter application that they can control.
« Last Edit: October 25, 2012, 01:54 PM by psionics »

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #5 on: April 15, 2013, 11:25 AM »
psionics,

   I know this is an older topic... so here's a little something to try.  If you would please provide feedback.

This program checks this site for updated information every 30 minutes. From what I could tell this site appears to be reputable & gives correct data. (please confirm)

F10: Opens the link to the website so you can view it first hand
F11: Updates the findings so you  can refresh earlier than 30 minutes
F12: Displays the beginning msgbox so you can view the controls
Shift + Esc: Exits the program





Thoughts:
When an alert, alarm, or critical are triggered we could setup an (email / text) notification that will find your cell phone or other device.

I'm open for ideas, additions, anything that could help.

~BigVent
~BigVent
« Last Edit: April 16, 2013, 01:45 PM by BigVent, Reason: removed older verision of exe »

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #6 on: April 16, 2013, 03:17 AM »
life saver!!!! thanks so much for this bro!!! :up:

my thoughts are:

* to have an option to save the settings - this is for running the apps in windows startup
* able to change shortcut keys(to prevent conflict)
* able to see the last result by clicking the icon(without refreshing)
* its really neat to have an email or sms function

is it okay for you to provide the source here?
« Last Edit: April 16, 2013, 03:33 AM by psionics »

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #7 on: April 16, 2013, 01:39 PM »
I'm very happy to help psionics!  Hopefully it'll get good use & alert people as needed.

Here's an updated version:

* to have an option to save the settings - this is for running the apps in windows startup
     * Updated with save settings (once you've declared what area you are in, the program will adhere to that area until file is deleted)
          File exists in the script directory "pagasa_loc.txt  -- if you selected to remember your location
* able to change shortcut keys(to prevent conflict)
     * I will add dynamic hotkeys at a later time
* able to see the last result by clicking the icon(without refreshing)
     * Results can be viewed by pressing F9 hotkey
* its really neat to have an email or sms function
     * Email & sms functionality added (at a later time I will create a file for settings)


* Fixed memory leak (specifically multiple instances of iexplore.exe)
* Fixed HTML handler for different OS (specifically Vista & Win 7)
* Fixed inconsistencies of display variables


May I ask who would use or modify the source if it's given?

~BigVent
~BigVent
« Last Edit: April 17, 2013, 04:46 PM by BigVent, Reason: removed the older verson exe »

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #8 on: April 16, 2013, 07:56 PM »
Awesomeness!!!! Thank you so much for this!!!! I'm sure many will find this very useful :)

May I ask who would use or modify the source if it's given?
aside from the ability to change the icon(minor), I was just curious on how to write an ahk script to grab the website's data/elements and the notification function.


BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #9 on: April 17, 2013, 04:21 PM »
I was just curious on how to write an ahk script to grab the website's data/elements and the notification function.

This is my typical setup for using COM to obtain data from a webpage.
(I know... I know... using IE yuk!)


Code: Autohotkey [Select]
  1. onexit, exitsub
  2.  
  3. pwb := ComObjCreate("InternetExplorer.Application")
  4.     pwb.Visible := true
  5.         pwb.Navigate("http://www.google.com")
  6.             while pwb.ReadyState <> 4
  7.                 continue
  8.  
  9. msgbox % pwb.document.documentElement.outerHTML   ;will show the source code for Google.com
  10.    pwb.Quit
  11.    pwb := ""
  12.       Exitapp
  13.  
  14. +Esc::   ;shift + esc will exitapp
  15. exitsub:
  16.        pwb.Quit
  17.         pwb := ""

The notification process came from seeing what data I could obtain & then creating (functions/checks) based upon that data.

~BigVent
~BigVent

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,958
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #10 on: April 17, 2013, 04:41 PM »
(I know... I know... using IE yuk!)

seems logical enough, at least you're fairly sure most people have it :)
Tom

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #11 on: April 17, 2013, 04:46 PM »
Updated version:

* Dynamic Hotkeys have been added (editable txt file that is created so you can use your own)
* Menu tray items have also been added (right click the icon near the clock versus using hotkeys)
    *possibly* do away with hotkeys all together if the menu tray items are the preferred method
* Consolidated arrays, functions, and other items for better efficiency

  • Working on text & email functionality



~BigVent
~BigVent
« Last Edit: April 24, 2013, 03:57 PM by BigVent, Reason: removed older exe »

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #12 on: April 17, 2013, 06:08 PM »
@tomos:  You're correct!  Or at least it's the theory I'm counting on.

 :P


~BigVent
~BigVent

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #13 on: April 24, 2013, 03:40 PM »
Updated version:

  • Added a few tray menu items (right click icon & view options)
  • Removed the dynamic hotkeys all together
  • Added Email & TXT functionality -- enter email or txt information separated by semicolons (e.g. [email protected]; [email protected])
  • Change your location or email information easily


Please let me know if you see anything that can be improved.


~BigVent
~BigVent
« Last Edit: May 01, 2013, 01:10 PM by BigVent, Reason: removed older exe »

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #14 on: May 01, 2013, 04:36 AM »
that was way more awesome bro!!!!!  :)

my thoughts:

* if we didn't put an entry on email/txt/smtp functions, will it not function by default? or can we have an enable/disable box for the email/txt/smtp functions(to save bandwidth/sms during non-alerting days) or a button to toggles between alerting/normal days?

* have a hyperlink to http://121.58.193.22.../html/wl/wl_map.html  - near the location selector(so they will have the initial idea where they are located)

* can we use a different icon? (lets look for one)

* can we name the apps as floodwatch.exe(instead of pagasa.exe) and rename "Philippines Flood Information and Alert" into "Flood Watch Philippines"

thanks in advanced :)
« Last Edit: May 01, 2013, 04:51 AM by psionics »

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #15 on: May 01, 2013, 01:09 PM »
Hey psionics, thank you for the feedback!

* if we didn't put an entry on email/txt/smtp functions, will it not function by default? or can we have an enable/disable box for the email/txt/smtp functions(to save bandwidth/sms during non-alerting days) or a button to toggles between alerting/normal days?

  • Now you can select whether or not you'd like to enter your information.  At any time you can rt. click tray icon & change location or email/text information

* have a hyperlink to http://121.58.193.22.../html/wl/wl_map.html  - near the location selector(so they will have the initial idea where they are located)

  • Great idea & has been implemented

* can we use a different icon? (lets look for one)
  • I chose the Philippines flag for the current icon.  If you think of one better just let me know & we'll incorporate

* can we name the apps as floodwatch.exe(instead of pagasa.exe) and rename "Philippines Flood Information and Alert" into "Flood Watch Philippines"

  • Absolutely!  Done

Items that I'll work on:
  • Make a better GUI for the program. (I've only been focused on the functionality)
  • Testing on different OS to ensure everything works properly
  • Will remove the "Press F10 for direct site within the notification

~BigVent
~BigVent
« Last Edit: August 20, 2013, 04:05 PM by BigVent, Reason: *removed zip* »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #16 on: May 02, 2013, 11:48 AM »
I always love watching threads like this -- nice work, BigVent!  :up:

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #17 on: May 02, 2013, 12:14 PM »
Thank you mouser!!! Much appreciated!

~BigVent
~BigVent

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #18 on: May 02, 2013, 04:21 PM »
Sweetness!!!!  :)

the website http://121.58.193.22.../html/wl/wl_map.html is inaccessible on my end at the moment
« Last Edit: May 02, 2013, 04:29 PM by psionics »

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #19 on: May 02, 2013, 04:51 PM »
Seems to be back up now


~BigVent
~BigVent
« Last Edit: May 02, 2013, 05:09 PM by BigVent »

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #20 on: June 16, 2013, 01:49 PM »
again, thanks so much sir BigVent, it is working now  :Thmbsup: save us alot and is working to us now, its flooding again here.

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Weather Alert (As service or tray apps)
« Reply #21 on: June 17, 2013, 08:44 AM »
psionics,

   You're most welcome!  I'm VERY happy to hear that this is aiding you!!!  I figured that if it could (save/warn) at least one person then it's worth any amount of time invested!

   Did this app alert you personally?   Is there anything you can see that needs to be adjusted, changed, added?


Again, thank you for the feedback!


~BigVent
~BigVent

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Flood Alert (As service or tray apps)
« Reply #22 on: June 18, 2013, 04:56 AM »
Yes bro, I saw it gets in 'alarm' state and I have moved my car earlier before it gets higher(critical). My neigbor has moved earlier as he seen it moves to alert state. our area is 'mindanao' avenue and the sensor is located under the bridge. I guess mindanao has the deepest water lever in that sensor.

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: Flood Alert (As service or tray apps)
« Reply #23 on: August 19, 2013, 09:36 PM »
Now it's flooding again..

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: Flood Alert (As service or tray apps)
« Reply #24 on: August 20, 2013, 09:50 AM »
Did the program alert you again?   :D

I need to revisit this program & do some work on the GUI & other items.


~BigVent
~BigVent