Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-11-2009, 14:10   #16
Do… or do not
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 9,198
AH! maybe you can set the attributes of the script to run as administrator? I can't try it because I don't have it ;-)

cheers,
Nick.
__________________

__________________
s/v Jedi is offline   Reply With Quote
Old 16-11-2009, 17:16   #17
Registered User
 
markpj23's Avatar

Join Date: Nov 2005
Location: Black Hills, SD
Boat: Now Boatless
Posts: 1,148
Images: 47
Mucho kewl tool! Thanks for sharing this!

__________________

__________________
Mark
markpj23 is offline   Reply With Quote
Old 27-11-2009, 21:28   #18
Do… or do not
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 9,198
New version: now a real program with many new features!

Okay, let me include the download-link first before I forget like the last time ;-)

http://www.sv-jedi.org/sv_jedi/WxDow...stribution.zip

After you click this link, choose "Save File". Or right-click the link and choose "Save as".

It will get it's homepage soon but for now, here's some info:

You will get a ZIP file when you download from the link above. Put it on your desktop and unzip it there. This will create a folder called "WxDownload v2.0 Distribution". In the folder are three files. Double-click the application (that's the file with the cute fair-weather icon ;-)

Some of the new features:
  • It's a real Windows application, no more scripts. It's programmed in Free Pascal, using the Lazarus components (also free). The application is free for non-commercial use (GNU license) and you may send it to anyone you like.
  • I programmed the TCP/IP part for downloading from Internet hosts directly into the application, so the httpget.exe that was used in the previous script isn't used anymore. This was the tricky part of this little project ;-)
  • It has a standard DBase IV format database for the descriptions of what to download from where, instead of the previous text file. The application has support for browsing, editing, adding, deleting records etc. Play with that a bit to find out how it works. Look carefully at the example records as they give hints on where to find weather for different areas. Test the URL's in your web browser and use copy&paste to enter them into the database. Use your right mouse button and the drop-down menu for copying and pasting.
  • The Application comes with a database filled with the same 14 weather downloads as the script. It consists of two files: wx.dbf is the main table and wx.mdx is the index-file for sorting on the "file name" field. This means the list is automatically sorted.
    If you delete these two database files and start the application, it will create new, empty, files magically.
  • After the download is complete, it opens the new folder with all the files for you. These folders are named using the data and time of their creation (just like the old script did) so that you can easily sort them. The folders are created in the application-folder.
  • If you want more than one set of weather-files, simply copy the whole application folder and edit the database.
  • HOT TIP: copy the application folder to your USB memory stick. You can run it right from the stick on ANY computer, without installing it on that computer!
    Make sure you copy the folder to the stick, not just the three files in the stick root directory.
  • You can re-size the window but if you make it too small you can't see all the info anymore.
  • It has a progress bar to give you an indication of how long it takes to complete the download. This is only needed when your Internet connection is very slow because the application is lightning fast!
Pls. report any bugs in this thread. I think it should work on 64-bit Windows versions too now. I can even create versions for the Mac and palm-tops etc. so who knows what's next ;-)
I also have a list of improvements in my head so new versions will come as time permits.

Enjoy!
Nick.
__________________
s/v Jedi is offline   Reply With Quote
Old 27-11-2009, 22:07   #19
Registered User

Join Date: Sep 2009
Location: Blue Hill, Maine
Boat: 32' Bob Baker/Joel White Cutter (One-off wood)
Posts: 161
Hey, Nick. Fellow programmer here. I'm running Win 7 32-bit and get this error on launch "Error Creating SSL CTX: SSLCTXNew." Any thoughts?
__________________
marujo.sortudo is offline   Reply With Quote
Old 27-11-2009, 22:45   #20
Do… or do not
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 9,198
Quote:
Originally Posted by marujo.sortudo View Post
Hey, Nick. Fellow programmer here. I'm running Win 7 32-bit and get this error on launch "Error Creating SSL CTX: SSLCTXNew." Any thoughts?
Hi,

First thing next year, I'm gonna order Windows 7 ;-) I can't test now, but the error comes from the SSL layer for the HTTP socket. The question is if it's really the SSL layer or maybe a deeper problem within TCP/IP...
I can fully understand why M$ would want to change the IP stack but it looks like it breaks my app ;-(

If you have the free pascal / lazarus environment on your computer, I can send you the source project distribution so you can debug it yourself. If you haven't used that environment before, I must warn you that I worked 5 days on this app of which 4 days was finding my way in this environment ;-). But it's very nice so well worth it.

Let me know,
cheers,
Nick.
__________________
s/v Jedi is offline   Reply With Quote
Old 28-11-2009, 14:57   #21
Registered User

Join Date: Sep 2009
Location: Blue Hill, Maine
Boat: 32' Bob Baker/Joel White Cutter (One-off wood)
Posts: 161
Oh, and I'm even a Pascal programmer, but alas, I can't say I feel like setting up a new environment and debugging at this time. MAYBE later. I like to leave all that at work, but more importantly, I just bought a boat and I'm spending all my free time on her and her tender-to-be these days. I tried re-running things in the various compatibility modes Win 7 offers, but no luck.
__________________
marujo.sortudo is offline   Reply With Quote
Old 29-11-2009, 08:18   #22
Registered User

Join Date: Nov 2007
Posts: 22
Another method you can use to download weather information is to use PassageWeather's Low-Bandwidth Interface:

http://www.passageweather.com/download.htm

It works well using any low-bandwidth internet connection (such as Iridium, Globalstar, Thuraya, Inmarsat, etc.)...

For those who have a normal/fast internet connection, use http://www.passageweather.com

Bill
__________________
billreilly is offline   Reply With Quote
Old 29-11-2009, 08:46   #23
Do… or do not
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 9,198
new version again!

Quote:
Originally Posted by marujo.sortudo View Post
I tried re-running things in the various compatibility modes Win 7 offers, but no luck.
They tell me it must work on Windows 7 in both 32- and 64-bit! So, I got to think that maybe the code-optimizations are the culprit. I re-compiled without the optimizations and I have good hopes this version will work on Windows7:

http://www.sv-jedi.org/sv_jedi/WxDow...stribution.zip

I also made some other changes: you can now exit the program while a download is in progress. A warning pops up asking if you're sure. This is useful when your Internet connection is down or troubled.

I did some bug fixes that nobody noticed and changed the version number to 2.01.

ciao!
Nick.
__________________
s/v Jedi is offline   Reply With Quote
Old 29-11-2009, 08:57   #24
Do… or do not
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 9,198
Quote:
Originally Posted by billreilly View Post
Another method you can use to download weather information is to use PassageWeather's Low-Bandwidth Interface:
Hi Bill,

Unfortunately, the weather info on that (and so many other sites) is straight from a computer model, without any human forecaster interpreting the data. This is the same info as you get from grib files, which is a much better method to get that data while underway (smaller and available on SailMail & Winlink).

The weatherfax service uses human forecasters who interpret the computer generated data. You get the exact same data as from a weatherfax receiver.

cheers,
Nick.
__________________
s/v Jedi is offline   Reply With Quote
Old 29-11-2009, 09:06   #25
Registered User

Join Date: Sep 2009
Location: Blue Hill, Maine
Boat: 32' Bob Baker/Joel White Cutter (One-off wood)
Posts: 161
Quote:
Originally Posted by s/v Jedi View Post
I re-compiled without the optimizations and I have good hopes this version will work on Windows7
Alas, no such luck. Same error. I'll PM you my email in case you want to send me any other versions to test/debug.
__________________
marujo.sortudo is offline   Reply With Quote
Old 29-11-2009, 09:30   #26
Registered User

Join Date: Sep 2009
Location: the golden state
Boat: pilot cutter
Posts: 289
Since I'm against downloading anything and simply running it just to see what it does or to see if I want to use it or not, perhaps a program description could be created and posted so that potential users can read the description, see exactly what the program does (no longer just a .bat file apparently), where the program/scripts take the weather data from, and whether or not a user wants to use the program before downloading and installing it on their computer.
(I'm assuming that it data mines weather info from various internet sources and compiles it into a window for the user.)
__________________
Not Sure is offline   Reply With Quote
Old 29-11-2009, 10:29   #27
Registered User

Join Date: Aug 2008
Location: Ottawa ON
Boat: Pearson 424 Ketch
Posts: 91
Nick:

I also get the same error message on Windows XP "Error Creating SSL CTX: SSLCTXNew."
__________________
Paul Lefebvre is offline   Reply With Quote
Old 29-11-2009, 10:32   #28
Registered User

Join Date: Sep 2009
Location: Blue Hill, Maine
Boat: 32' Bob Baker/Joel White Cutter (One-off wood)
Posts: 161
Perhaps there is a DLL dependency for the SSL support?
__________________
marujo.sortudo is offline   Reply With Quote
Old 29-11-2009, 20:31   #29
Do… or do not
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 9,198
Quote:
Originally Posted by marujo.sortudo View Post
Perhaps there is a DLL dependency for the SSL support?
Yes, when Paul posted the same problem with XP it hit me ;-) The very funny thing is that I tested it on our "gaming laptop" and it just worked. I just did a filesearch and found that both AirMail and OpenOffice use these libraries and one or both of them, or something else copied it to our windows\system32 folder.

The error is generated here:
Code:
  FSSLContext := SSLCTXNew(aMethod);
  if not Assigned(FSSLContext) then
    raise Exception.Create('Error creating SSL CTX: SSLCTXNew');
Yes, I actually posted some program code on the cruisers forum! That might be a first ;-)

Anyway, the missing pieces are the OpenSSL interface. SSL is what makes the https:// (secure) URLs work. There's two small dll's and I included them in the distribution, pls download again... :

http://www.sv-jedi.org/sv_jedi/WxDow...stribution.zip

So, why did I put SSL support in... as all the examples are just regular http:// links. I don't know, but you should be able to use https:// URL's too now ;-)

Let me know if it works now ;-)
cheers,
Nick.
__________________
s/v Jedi is offline   Reply With Quote
Old 29-11-2009, 20:44   #30
Registered User

Join Date: Sep 2009
Location: Blue Hill, Maine
Boat: 32' Bob Baker/Joel White Cutter (One-off wood)
Posts: 161
Bingo. Works now.
__________________

__________________
marujo.sortudo is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP Free download faster now Bob Norson The Library 0 09-07-2006 00:36
Free ebook for cruisers to download. Bob The Library 0 06-08-2005 16:49



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 23:38.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.