Suunto Logbook to HTML v1.2 Content 1. About the program 2. parts 3. html code 4. Availability 1. About the program This program made for the Suunto Dive Manager, because that program cannot make a correct and nice html export. With this program You can make a personalized html page from a SDM CSV export. The output html page code is absolute flexible because the program use html templates and variables to generate it. So, just make a CSV export in the SDM (file/export.../ANSI in CSV format), then open this with the SL2H. The SDM made 4 CSV files, of course we need that what we made in the SDM. The $NOT,$PRO,$DGE are system CSV, don't open its, but the program need its! The program made for the metric units, but it can working with the imperials too. It have only one problem, the profile gif is nicer in the metric than imperial but everything workink well ! 2. Parts - SuuntoToHtml.exe / main program - html\head.html / template for the html head - html\lines.html / template, the logbook lines - html\foot.html / template, the end of the html - html\note.html / template of note and subpage - pict\note.gif / the note sign picture - pict\chart.gif / the profile sign picture - pict\nog.gif / note, profile or subpage picture - Output\ / this is the output folder 3. html code So, the program for the maximum flexible use html templates. These are simple html code with only one speciality, the variables. There is the formula how made the final html code: head.html lines.html link -> note.html lines.html link -> note.html ... foot.html Very impartant ! The program just merge the lines, the correct html syntax is Your responsibility ! For the logbook datas the program use variables. It's begin with an at sign @ and finished a same one. For the variables check the list below. If You want show an at sign in the html (for example in an email address) use the @at@ variable, never write just an @ because the program will try compite the whole html code after that sign ! :-) So, check the lines.html and You can understand everything ! In the head.html must be an "nw" javascript code with a number parameter. The note, noteorgif, note_ico and subpage variables call this javascript with a dive number parameter. This script maybe open a new window for the parameter html file. In the example code use can found a simple code. In the profil gif have some thin lines, that show you 10 meter or feet. Every icon (note.gif, etc) are changable of course, just use a same filename. The summarize variables avaiable just in the head or foot html, and the logbook lines in the lines and note code as well. The variables are not case sensitive. Lines.html and note.html variables *************************************** @Variable@ Comment ========= =================================================== System: at @ sign in the html code. basic logbook: DiveNo Dive number Date The day of the Dive date Time The day of the Dive time DiveTime Dive time (how long the dives) in minutes Surface Surface time MaxDepth Max deept AvDepth Average depth Location Dive location Site Dive site AirTemp Air temperature MaxTemp Water temp in the max depth EndTemp Water temp in the end of dive Buddy Buddy DM Dive Master Boat Boat name TankL Tank size StartP Start pressure EndP End pressure Customs Customs (Custom1-5 divide with comma) Weight Weight O2 O2 percent in the Nitrox dive. In Air mode 0. Gas Nothing with air, but with nitrox a green EANxx sign where the xx is the O2 percent in the mixture. comment, note, profile: note Dive comment noteorgif Show a nog.gif when have a note or profile in the dive. When You click the nog.gif will open a new windows with the page that made from note.html and its name d9999.html where the 9999 is the dive number. subpage Always show a nog.gif and open a d9999.html. Use this when You want give more information about the dive independently the note and profile. note_ico If have a dive comment show a note.gif and open the d9999.html. profile_ico If have a dive profile show a chart.gif and show the d9999.gif where the 9999 is the dive number. profile_gif The profile GIF picture, named d9999.gif. The X axis is the time in the samplerate, the Y axis is the depth. Other dive data: series Dive series number. diveseries Dive number in it's series comptypeid Computer ID (Vyper = 10) compsernum Computer serial number diverid Diver ID in the computer samplerate Sample rate (10-20-30s) altmode Altitude mode (A0-A2) persmode Personal mode (P0-P2) weather Weather visibility Visibility tankname Tank name workingp working pressure of tank sac SAC (Calculated Surface Air Consumption) compmode Computer gas model (Gauge, Air, Nitrox) "head and foot" variables: ***************************** @Variable@ Comment ========= =================================================== totaldivetime Total dive time. averdivetime Average dive time. totalmaxdepth Maximal depth. totalsac Average Surface Air Consumption 4. Availability The program is absolute free, if You like it send me an email with Your comment or suggest or just with a flower :-) I just want know how many people use this program, that's all. I never send You spam or something same emails, I promise You. If something wrong or missing in the program send me an email, and if I have time I'll change it. The program site: http://vyper.bunny.hu My email: bunny@bunny.hu aug, 2002.