Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't SEND_PACKET using Tasker #202

Closed
joweebee opened this issue Jan 13, 2018 · 4 comments
Closed

Can't SEND_PACKET using Tasker #202

joweebee opened this issue Jan 13, 2018 · 4 comments
Labels
Milestone

Comments

@joweebee
Copy link

Hi,

I'm trying to send the battery level in a packet, using Tasker to do this.
I can get Tasker to send a single location packet using the task below:

Action Category: System then Send Intent
Action: org.aprsdroid.app.ONCE
Package: org.aprsdroid.app
Target: Service

But I can't seem to make it send a packet with a specific text string at all, which according to the FAQ should be:

Action Category: System then Send Intent
Action: org.aprsdroid.app.SEND_PACKET
Package: org.aprsdroid.app
Data: battery level is %BATT
Target: Service

I've tried changing the contents of the DATA field to no success (with and without a preceeding >, with and without spaces, and nothing at all).
All the other commands outlined at https://aprsdroid.org/api/
I'm following the instructions at https://github.com/ge0rg/aprsdroid/wiki/Frequently-Asked-Questions

I'm new to Tasker, what am I doing wrong please?

Thanks in advance,
Joe G0EVB

@ge0rg
Copy link
Owner

ge0rg commented Feb 8, 2018

The SEND_PACKET intent is only working when APRSdroid service is running and successfully connected. Normally it takes some seconds after launching it, before a connection is established.

@ghost
Copy link

ghost commented Mar 6, 2018

I have the same problem. Even when the APRSdroid service is running and successfully connected. I use AFSK, not the internet servers.

@ge0rg ge0rg added the bug label Oct 20, 2018
@ge0rg ge0rg added this to the 1.4.1 milestone Oct 20, 2018
@ge0rg
Copy link
Owner

ge0rg commented Oct 23, 2018

I'm sorry, there was a subtle but significant error in the documentation. The "Data" parameter changes how Android will handle the intent, leading to it never arriving at APRSdroid. The correct way to add the packet is to add an Extra with the name data. The correct syntax is:

Extra: data:rawpacketcontent

Sorry for the confusion. I just tested that and it should work on all APRSdroid releases since 2014. I also changed the FAQ text (the API document was right all along).

@ge0rg ge0rg closed this as completed Oct 23, 2018
@ve7gvs
Copy link

ve7gvs commented Jan 28, 2019

Thanks, that helped me as well. Would it be possible to see an example of how to receive a message and save the "body" as %rxbody ? i've got:
Action: org.aprsdroid.app.MESSAGE
Data: %rxbody
Extra: body
package: org.aprsdroid.app
target: broadcast receiver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants