Offline
I've written a simple iphone "app" trying to sending information about what sail I'm sailing with the purpose of accessing it with my logfiles for later analysis.
The "app" sends the information to a pyhton script running on the computer, and access Expedition via the DLL. Updating simple values like BSP works perfectly, so I have the structure up and running.
However, is there a way too pass information about the sail flying? I'm thinking event, but I can't figure out how to launch an event via the DLL, is it possible? If not, are there any options I can try?
Offline
You could use SetExpVar to set the sail in Exp. The value to pass is the id in the database.
ExSailEvent
ExSailNow
ExSailMark
ExSailNext
Offline
Thanks Nick! I’ve tried them, but nothing seams to change in expedition, no events logged with SailEvent and ”Sail” numberbox doesn’t change with SailNow.
My sail list in expedition doesn’t seem to by in sync with the sails in my db … could knd sailchart change the IDs in some way? I can’t see any IDs in the knd xml files.
Offline
Yes, it doesn't set events. There is currently no way to do that with the dll.
I just realised it won't help the number boxes as Exp will immediately over-write it.
The IDs in the database are independent of the xml sail chart.
Offline
Okay thanks, I changed the approach slightly and just had the script running on the computer make a new EVENT entry in the DB instead of going through the DLL. Works fine for what I was after
Offline
Hi, I’m setting the event straight into the DB, no problem. But I would also like to update SailEvent through the DLL, I thought it might work after setting the event. But it does not … is there anything I can do to change what sail the numberbox for Event sail shows? I would like it as a reminder to know that I’ve actually made a note of the sail I’m flying.
Offline
I might be able to add an entry in the dll.
Maybe email me.