![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Chief
![]() Join Date: May 2010
Location: France
Posts: 326
Downloads: 23
Uploads: 1
|
![]()
Is it possible to send the sub's current position (in m) from Python to a webservice, when the send report or a custom button is pressed (along with an identifier, of course).
I was interested in making the server side coding for a widget that will allow to track our positions in the campaign. |
![]() |
![]() |
![]() |
#2 | |
Black Magic
![]() |
![]() Quote:
I could add some code to my UIs mod that would have it spit out the sub's position every x amount of time to a file. Then you could read that file. |
|
![]() |
![]() |
![]() |
#3 | |
Chief
![]() Join Date: May 2010
Location: France
Posts: 326
Downloads: 23
Uploads: 1
|
![]() Quote:
Maybe the position could be uploaded along with a report generated from your journal tool, and when you click the sub on the map you would have an option to read it. Do you think it would be interesting? |
|
![]() |
![]() |
![]() |
#4 | |
Black Magic
![]() |
![]() Quote:
I already have functions defined for converting the meters from game origin to lat and long coordinates (then it's a simple matter of rearranging the digits to Google Earth specs). Not following you on the position could be uploaded along with a report thing ![]() |
|
![]() |
![]() |
![]() |
#5 | |
Chief
![]() Join Date: May 2010
Location: France
Posts: 326
Downloads: 23
Uploads: 1
|
![]() Quote:
Click the COMSUBPAC Online link in my sig. That was what I was trying to do for SH4. But instead of a simple status it should display on demand the ship's journal. |
|
![]() |
![]() |
![]() |
#6 | |
Black Magic
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
|
|