Dear All,

Here is my latest attempt at my connect script which posts the node's status on Twitter.

It now detects the type of connection ( IRLP, Echolink or Allstar ) and also has a lookup for some often used connections from my node to put some more detail in the tweet.

I am sure the Linux gurus out there will cringe at my crappy attempt at scripting but it works and you gotta start somewhere :-D

I bet there are much better ways of doing this but this is all I could come up with tonight.

Here it is for those that might want to do something similar:

# Detect if Echolink node number or not
if  [ $2 -lt 300000 ] ; then 
let nodeno=($2-300000)
systype="Echolink node "
if [ $2 -eq 3001332 ] ; then
name="MB7IBA"
fi
fi

# Detect if IRLP node number or not
if  [ $2 -lt 49999 ]; then
let nodeno=($2-40000) 
systype="IRLP Node "
if  [ $2 -eq 49755 ] ; then
name="UK Reflector"
elif [ $2 -eq 49453 ] ; then
name="WIN System, California"
fi
fi

# Detect if Allstar node number or not
if [ $2 -lt 3000 ]; then
let nodeno=$2
systype="AllStar Node "
if [ $2 -eq 2237 ] ; then 
name="GB3ZY"
elif [ $2 -eq 2259 ] ; then 
name="GB3DQ"
fi
fi

# Tweet it
curl -u username:password -d status="GB3FH connected  to  $systype $nodeno $name" http://twitter.com/statuses/update.xml &




On 15 February 2010 22:08, Matt Beasant <g4rky@yahoo.co.uk> wrote:
I've cracked it, if anyone else is interested in this then email me direct!

Cheers,

Matt

On 12 February 2010 14:30, Matt Beasant <g4rky@yahoo.co.uk> wrote:
Hi all!

I've been following some discussions on the IRLP list about node owners setting up their nodes to send node status updates to Twitter.

I was wondering if I could do something similar with my app_rpt node? Has anyone already done this?

I'm guessing I'll need to use the connpgm and disconpgm entries in rpt.conf.

How do I deal with the arguments that get passed out with those commands? What are they called?

The IRLP script uses curl to send info to twitter, would this work with App_rpt too?

Sorry for the dumb noob questions!

Thanks,

Matt
G4RKY