Go Back   Android Forums > Android Discussion > Android Applications > Tasker

test: Reply
 
LinkBack Thread Tools
Old September 28th, 2012, 10:28 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default How to have Tasker read IM (imo beta) data?

I searched the forums, have not seen a discussion of parsing IM data in there.

I'm using IMO beta to aggregate IM messages from several sources. The source of most of these messages is a number of internet servers. When something goes "wrong" the monitoring servers complain via many IM messages (we used to use SMS but "message storms" tend to be a huge problem, especially without an unlimited text plan).

Anyway, here is a vastly simplified version of what I'm trying to do:

Code:
if ("IM message in app IMO beta" contains_string "Nagios") then
   if (countdowntimer == 0 OR undefined) then
      countdowntimer = 120 secs    # No audible alert more than every 2 mins
      if (DAY >= MON && Day <= FRI && TIME > 8:00 and < 23:59)
         play Problem.mp3 at 50% volume # Assume awake during day
      elsif (DAY >= SAT && Day <= SUN && TIME > 10:00 and < 1:59)
         play Problem.mp3 at 50% volume # Later on weekends
      else
         play LoudSiren.mp3 at 100% volume # Force wakeup at night
      endif
    endif
endif
Also, is there a way to edit tasker code directly w/o the GUI?

Advertisements
wayne47 is offline  
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:32 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.