individual-it / BatteryGuesstimate

Battery estimation for Garmin sportwatches
GNU General Public License v3.0
11 stars 1 forks source link

WebDAV export broken #27

Open jacob-r-g opened 1 year ago

jacob-r-g commented 1 year ago

Love the app and idea of export feature! Unfortunately I keep getting error “-400” after setting up my WebDAV server which according to the garmin page means “response body data is invalid for the request type”. Have not got it to work yet. Presumably there is some problem in preparing the data for transfer?

individual-it commented 1 year ago

@jacob-r-g hi what webDAV server are you using? I've tested it with owncloud 10

jacob-r-g commented 1 year ago

@individual-it thanks for the response, I am using the drivehq service. is owncloud free to use? if so i would be happy to try that instead. drivehq has a free tier, so if you wanted to make an account at test there it would be possible.

individual-it commented 1 year ago

@jacob-r-g you can host OwnCloud yourself or buy it from different providers, see https://owncloud.com/

But the export worked fine for me also with drivehq As export URL in the app settings I've used: https://webdav.drivehq.com/export.json and then just simply the username and password. The app exported the data without any errors: image

jacob-r-g commented 1 year ago

@individual-it thank you for the support and advice! Unfortunately, I still cannot get it to work. I am using a Solar Instinct 2S, if that makes any difference?

I have attached some pictures here showing my configuration is the same as you, but when I try to export from the watch, I am still met with the “-400” error which seems to correspond more with formatting/handling/preparing of the data as opposed to communicating with the server or actually transmitting that data. IMG_5257 IMG_5258 IMG_5256

individual-it commented 1 year ago

The type of the watch should not make any difference (I hope) Are there any options/pemissions in drivehq that might be different between our accounts? I've just created a complete new one.

How can I reach you privately? I can send you login details that work for me. Then we can find out if it's the watch or the WebDAV server

jacob-r-g commented 1 year ago

@individual-it great idea. You can reach me at jrgoldberg32 at gmail