scubajorgen / TomTomWatch

Tool for exporting GPS files from TomTom Sports Watches
75 stars 16 forks source link

Appreciation and Feature Request - Proxy Configuration #58

Closed Pompom51150 closed 1 month ago

Pompom51150 commented 4 months ago

Dear Jorgen van der Velde,

I would like to express my sincere appreciation for your outstanding work on the program that enables the retrieval of activities from TomTom watches. It has been a tremendous help for many users, including myself, following the removal of the software by TomTom. Your contribution has truly been our savior, and I want to thank you warmly for that.

The program you have developed works remarkably well in retrieving activities. However, I am facing a challenge due to the network configuration in my environment. My setup utilizes a proxy, preventing me from updating QuickGPS and displaying the map background for activities.

Is it possible to consider adding a feature to configure the proxy in the software? This would be greatly beneficial for users like me who are on networks with specific configurations.

I understand that you may receive numerous requests and suggestions, but if you could consider this enhancement, it would make your program even more comprehensive and useful for a diverse user base.

Thank you again for your hard work and for providing a valuable solution to a challenging situation. I look forward to your future updates.

Best regards,

scubajorgen commented 4 months ago

Thanks for the feedback. A proxy wouldn't be that much work, however I cannot test it. I'll look into it...

⁣Get BlueMail for Android ​

On 5 Feb 2024, 15:38, at 15:38, Pompom51150 @.***> wrote:

Dear Jorgen van der Velde,

I would like to express my sincere appreciation for your outstanding work on the program that enables the retrieval of activities from TomTom watches. It has been a tremendous help for many users, including myself, following the removal of the software by TomTom. Your contribution has truly been our savior, and I want to thank you warmly for that.

The program you have developed works remarkably well in retrieving activities. However, I am facing a challenge due to the network configuration in my environment. My setup utilizes a proxy, preventing me from updating QuickGPS and displaying the map background for activities.

Is it possible to consider adding a feature to configure the proxy in the software? This would be greatly beneficial for users like me who are on networks with specific configurations.

I understand that you may receive numerous requests and suggestions, but if you could consider this enhancement, it would make your program even more comprehensive and useful for a diverse user base.

Thank you again for your hard work and for providing a valuable solution to a challenging situation. I look forward to your future updates.

Best regards,

-- Reply to this email directly or view it on GitHub: https://github.com/scubajorgen/TomTomWatch/issues/58 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

scubajorgen commented 4 months ago

I can test it using Burp suite, which acts like a proxy. I'll implement it one of these days...

scubajorgen commented 4 months ago

I am trying to get things working using the Java system settings. However, it works for the ephemeris file, and for the google map, not for the OSM map. The library jxviewer does not seem to support it, though under the hood it appears to use the same java.net.URL to make the connection as for retrieving the ephemeris file. I am lost :-(

You can easily try it yourself using command line parameter

java -Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8080 -jar TomTomWatch.jar

See also: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html

scubajorgen commented 4 months ago

I got this working.

The library jxviewer does not seem to support it, though under the hood it appears to use the same java.net.URL to make the connection as for retrieving the ephemeris file. I am lost :-(

I checked working of the proxy by using Burpsuite and let it block on http calls: it did not interrupt on png files :-) Took me a hell of an effort to find out.

I encompassed new proxy settings in the tomtomwatch.properties file. The username/password authentication I cannot test.

###################################################################################################
# Enable proxy for http/https
proxyEnable=false

###################################################################################################
# Proxy host, if proxyEnable=true
proxyHost=127.0.0.1

###################################################################################################
# Proxy port, if proxyEnable=true
proxyPort=8080

###################################################################################################
# Proxy user, if proxyEnable=true; leave empty for no authentication. Experimental, not tested
proxyUser=

###################################################################################################
# Proxy password, if proxyEnable=true; leave empty for no authentication. Experimental, not tested
proxyPassword=
scubajorgen commented 3 months ago

Please let me know if it works for you, @Pompom51150

scubajorgen commented 1 month ago

I close this, although I could only test the situation without credentials...