How to have Tasker read IM (imo beta) data?


Last Updated:

  1. wayne47

    wayne47 New Member

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

    Advertisement

Share This Page