craigerl / aprsd

Amateur radio APRS daemon which listens for messages and responds. By KM6LYW.
Apache License 2.0
120 stars 19 forks source link

Twitter Messaging Plugin Issue #117

Open CtrlAltDel-Irl opened 1 year ago

CtrlAltDel-Irl commented 1 year ago

It seems the virtual radio isn't picking up the messages destined for twitter. I haven't tried with another plugin for full disclosure. Using aprsd version 3.0.3 and python 3.9.2

I tried sending 2 messages formatted like :

t Testing twitter aprsd plugin

sent to MI7DJT-12 (my virtual radio in aprsd)

As you can see in the logfile there is no activity picked up by the virtual radio.

I have attached logfile and aprsd.yml

hemna commented 12 months ago

I don't see the attachment for the log

CtrlAltDel-Irl commented 12 months ago

Hey Walter,

I don't have this equipment now so can't run logs. I did send them months ago though on github.

On Sat, 8 Jul 2023 at 22:58, Walter A. Boring IV @.***> wrote:

I don't see the attachment for the log

— Reply to this email directly, view it on GitHub https://github.com/craigerl/aprsd/issues/117#issuecomment-1627526383, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAIW2Y5WBZQGBYDCKX2PI7DXPHJW5ANCNFSM6AAAAAAYYSETEE . You are receiving this because you authored the thread.Message ID: @.***>

hemna commented 12 months ago

I just fired up the latest version of aprsd and enabled the twitter plugin and aprsd was able to get the request over the aprs network to send a tweet. The tweet command when the twitter plugin is enabled and configured is 'tw '.

That works, but the problem is the twitter API has been altered to need a paying subscription.

You can see my log here:

Screenshot 2023-07-09 at 9 35 06 AM

When aprsd starts up, it tries to load all of the plugins as defined in the config file. When a plugin loads correctly you should see something like this.

07/09/2023 09:20:50 AM MainThread           INFO     Registering Regex plugin 'aprsd_twitter_plugin.twitter.SendTweetPlugin'(0.5.0) -- plugin.py:421
                                                     ^([t][w]\s|twitter)

When a plugin fails to load you would see this

07/09/2023 09:20:49 AM MainThread           ERROR    Failed to load Plugin 'aprsd_slack_plugin.notify_plugin' : 'No module named       plugin.py:376