Thursday, November 19, 2015

Monitor the Boat, remotely

With a FONA connected on the Raspberry PI (where the NMEA Console is running), you can remotely monitor what's going on.
The feature has been implemented - as usual - as a UserExit. This UserExit is in the Desktop repo, the FONA Java interface is here.

Just by sending an SMS, you can retrieve the data read by the Raspberry PI on board, like True Wind Speed, Battery Voltage, Air and Water Temperature, etc, all you need is a smart phone that can send and receive SMSs.

That sounds promising...

This assumes that the boat is docked in a place where there is SMS coverage, of course. I'm working on an Internet version...

Saturday, September 12, 2015

Ephemeris emails

Along with the headless mode, you can now send ephemeris emails to whoever you want.
The email you'd receive would look like this:

Ephemeris for 12 Sep 2015

At N  37°46.00' / W 122°31.00'
Sun Rise:12 Sep 2015 06:52
Sun Set :12 Sep 2015 19:20
Moon Phase: 28 day(s).

Tide at Ocean Beach:
LW Sat Sep 12 04:52:00 PDT 2015 : +0.40 feet
HW Sat Sep 12 11:34:00 PDT 2015 : +5.27 feet
LW Sat Sep 12 17:09:00 PDT 2015 : +1.45 feet
HW Sat Sep 12 23:14:00 PDT 2015 : +5.47 feet


For this, you need to set some preferences:
  • The position is used for the sun rise and set
  • The tide station must be spelled exactly as in the tide application (in the Navigation Console)
  • You can send to several recepients, separated with a semi-column
  • The timezone is used to display the sun ephemeris
  • The email provider refers to the file ephemeris.email.properties, see below
ephemeris.email.properties, this file must be in the all-scripts directory.
ee.yahoo.mail.protocol=pop3
ee.yahoo.incoming.server=pop.mail.yahoo.com
ee.yahoo.outgoing.server=smtp.mail.yahoo.com
ee.yahoo.mail.smtpauth=true
ee.yahoo.outgoing.server.port=587
ee.yahoo.mail.username=olivier.lediouris
ee.yahoo.mail.password=XXXXXX
ee.yahoo.mail.replyto=olivier@lediouris.net
#
ee.google.mail.protocol=pop3
ee.google.incoming.server=pop.gmail.com
ee.google.outgoing.server=smtp.gmail.com
ee.google.mail.smtpauth=true
ee.google.outgoing.server.port=465
ee.google.incoming.server.port=995
ee.google.mail.username=olivier.lediouris@gmail.com
ee.google.mail.password=XXXXXX
ee.google.mail.replyto=olivier.lediouris@gmail.com
#
ee.oracle.mail.protocol=imap
ee.oracle.incoming.server=stbeehive.oracle.com
ee.oracle.outgoing.server=stbeehive.oracle.com
ee.oracle.mail.smtpauth=true
ee.oracle.outgoing.server.port=465
ee.oracle.incoming.server.port=993
ee.oracle.mail.username=olivier.lediouris@oracle.com
ee.oracle.mail.password=XXXXXX
ee.oracle.mail.replyto=olivier.lediouris@oracle.com
#
The email provider mentionned in the preferences can be in this example yahoo, google, or oracle.
When all this is set, you have to modify the command line that starts the Weather Wizard in headless mode:
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dheadless=true -Dephemeris.email=true -Dstart.ephemeris.loop.at=05:00
This will generate the email displayed above every day at 5am local time.
Enjoy!
PS: The code is in github, see below for details.

Wednesday, April 8, 2015

GoogleCode going out of business

GoogleCode will close soon, I moved everything on github. For the navigation part, you can build everything for yourself from here.

This could be the opportunity to move things around, and do some cleanup, to make the distribution and the result of such builds identical.
With the integration of the Raspberry PI in the navigation console, the paradign has slightly shifted, the architecture becomes more hub-and-spoke oriented.
It makes the data avaiable to any software able to understand non-serial protocols like TCP, UDP, etc.
OpenCPN, SeaWi, fall in that category, specially that now, I found a way to create an Access-Point network from the Raspberry PI, it makes it available to Android devices.
For the Raspberry, the easiest seems to post SD Card images, like here.

More to come, stay tuned.

Thursday, January 8, 2015

Version 3.0.1.5 available

New version - for both the Weather Wizard and the Navigation Console - 3.0.1.5 is available, at the usual place.
Few new features, minor UI improvements, and big uptake for the Raspberry PI.
A new feature for the Weather Wizard in headless mode, you can download several composites at the same time (one after the other actually). Use the -composite: and -pattern: parameters, separate each value with a comma.
For example, on Windows:
 set PRMS=-composite:./patterns/01.Favorites/01.3.00.Pacific.Sfc.500.Tropic.GRIB.ptrn
 set PRMS=%PRMS%,./patterns/01.Favorites/06.01.AllPac.Faxes.Satellite.ptrn
 set PRMS=%PRMS% -interval:360 
 set PRMS=%PRMS% "-pattern:/yyyy/MM-MMM | | yyyy-MM-dd_HHmmss_z | _Pacific | waz,/yyyy/MM-MMM | | yyyy-MM-dd_HHmmss_z | _Pacific.SatPic | waz"
 ::
 set command=java %JAVA_OPTIONS% -client -classpath "%CP%" -Dheadless=true main.splash.Splasher %PRMS%
On Linux and Mac:
 PRMS=-composite:./patterns/01.Favorites/01.3.00.Pacific.Sfc.500.Tropic.GRIB.ptrn
 PRMS=$PRMS,./patterns/01.Favorites/06.01.AllPac.Faxes.Satellite.ptrn
 PRMS=$PRMS -interval:360 
 PRMS=$PRMS "-pattern:/yyyy/MM-MMM | | yyyy-MM-dd_HHmmss_z | _Pacific | waz,/yyyy/MM-MMM | | yyyy-MM-dd_HHmmss_z | _Pacific.SatPic | waz"
 #
 command=java $JAVA_OPTIONS -client -classpath "$CP" -Dheadless=true main.splash.Splasher $PRMS