[App_rpt-users] Tweeting node status
g4rky at yahoo.co.uk
Wed Feb 17 17:21:17 EST 2010
Here is my latest attempt at my connect script which posts the node's status
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
systype="Echolink node "
if [ $2 -eq 3001332 ] ; then
# Detect if IRLP node number or not
if [ $2 -lt 49999 ]; then
systype="IRLP Node "
if [ $2 -eq 49755 ] ; then
elif [ $2 -eq 49453 ] ; then
name="WIN System, California"
# Detect if Allstar node number or not
if [ $2 -lt 3000 ]; then
systype="AllStar Node "
if [ $2 -eq 2237 ] ; then
elif [ $2 -eq 2259 ] ; then
# 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 at yahoo.co.uk> wrote:
> I've cracked it, if anyone else is interested in this then email me direct!
> On 12 February 2010 14:30, Matt Beasant <g4rky at 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
>> 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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the App_rpt-users