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

Auto send? #46

Closed
keepcarlson opened this issue Jan 28, 2018 · 9 comments
Closed

Auto send? #46

keepcarlson opened this issue Jan 28, 2018 · 9 comments

Comments

@keepcarlson
Copy link

Is there a way to have the data sent to the receiver endpoint without having to manually press the Send Now icon? Even if I set the points to send in batch to fifty, and start, nothing goes to my receiver endpoint until I press the Send Now icon. Knowing about battery drain, I am interested in live, real time tracking without user interaction.

@aaronpk
Copy link
Owner

aaronpk commented Jan 28, 2018

The "send interval" slider selects how often the phone will send data to the server automatically. You can set that to a few options between 1 second and 30 minutes. The more often it sends the faster the battery will drain.

The app will send to the server when it gets a new location after the selected amount of time has passed since the last send. You can watch the "last sent" label to see this.

@keepcarlson
Copy link
Author

Thanks for writing back so soon....
Hmmm I have the send interval slider set to 1 second.
On the settings page, I have the following in order:
Enabled
Other
Best
Never
50
Pause set to off
Resume set to off
Enable notifications set to on

Queued locations never clears and is now at 40,941
The Last Sent never changes from n/a even after I press Send Now.
Although I can see the data coming in on my server when I press Send Now. So I know there is communication.

Doing something wrong, just not sure what?
Thank you!

@aaronpk
Copy link
Owner

aaronpk commented Jan 28, 2018

In that case it's likely that your server is not sending back the acknowledgement that the data was received. The app will hold on to the data until the server says "ok".

https://github.com/aaronpk/Overland-iOS#response

Once your server replies with that, the app will delete that set of queued locations.

@keepcarlson
Copy link
Author

Thank you for the response. I have no idea how to get the server to send the “ok” back. The data is getting to it as I am able to have the locations added to an ESRI feature class via Geoevent server. Any recommendations on where I can find help on how to make the server return the “ok”? Thamk you again.

@aaronpk
Copy link
Owner

aaronpk commented Jan 31, 2018

That's a great question. Is there any way to configure what response the GeoEvent server sends to an HTTP request? I'm not really sure where to find documentation on it, a little bit of searching only turned up some tutorials that I couldn't really tell what they were for.

This is an interesting case, and I'm tempted to add a setting that will let you configure the app to accept any HTTP 200 response as an "ok". That should work with GeoEvent server without any changes on the server then. Tho for myself, I still want the more strict check that the app currently does, so I'd want it to be a setting.

@keepcarlson
Copy link
Author

I am using an input "connector" called rest-json-in which captures the incoming data from Overland (see inputfromoverland.png). I've captured the incoming data as a .csv file (attached as zip). The rest-json-in connector can be configured with certain parameters (restjsonin-properties.png) but I can't find one that seems to allow for sending back an "ok" response. ESRI documentation is poor for how to configure these and/or explain what they do.
inputfromoverland
output2018-01-31_12-53-38.zip
restjsonin-properties

@aaronpk
Copy link
Owner

aaronpk commented Jul 14, 2018

I've opened an issue to track this feature request. There will be a setting to enable treating any HTTP 200 response as a success: #55

@aaronpk aaronpk closed this as completed Jul 14, 2018
@keepcarlson
Copy link
Author

I have not been able to find this setting to treat any response as a success in the app. Can you direct me to where I can find it? I was looking for an "on" switch or something. I am still unable to send locations to the custom URL. Thank you.

@aaronpk
Copy link
Owner

aaronpk commented Nov 5, 2019

Sorry, I haven't actually built this yet. I opened issue #55 to track the feature but haven't actually made any progress on it.

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

No branches or pull requests

2 participants