Friday, 11 August 2017

OpenPlotter, NMEA data TO file

             Updated 2017-08-14

Sometimes You want to "take home" Your latest trip on sea and "replay" it or replay it doing some changes in the settings for the OpenPlotter or OpenCPN applikation and se the result direct.

One way is to create log files with the the "raw" NMEA data and then use them at home with tips from this post.

Creating log files from NMEA 2000 bus, N2K, is the most straightforward.

Check what name Your CAN usb interface have. One way doing it is reading the log from auto setup found in OP=> Tools => Auto Setup.

Open Terminal and just type the following with Your CAN usb name

actisense-serial -r /dev/ttyUSB0 > N2K_2017-08-08.txt

Thursday, 10 August 2017

Volvo Penta NMEA 2000 Gateway


It's always nice to have ALL information at the same place, navigator/plotter, when You are out with the boat. 

What could be missing is the engine information/data. If You have a Volvo Penta from 2006 or later it could be pretty easy.

Volvo Penta has it's own 22813366, 3889758
Raymarine ECI-100
Maretron J2K100

and so on.

But there is a pretty new one from Yacth Devices which is OK priced and have some additional features.

Thursday, 3 August 2017

OpenPlotter USB sensors install

If You started with my quick instal guide You are a little familiar with OpenPlotter, (OP), basics and now we proceed with the sensors. Don't forget to delete the RMC sentence from the "NMEA 0183 generator" which we used.

In OP there is clever function that attempts to auto detect the connected USB devices This function auto starts until You uncheck the "setup autostart on every boot". If You want to start this manually it is found in OP=> Tools => Auto Setup. Please note that just USB serial devices will be listed. If You connect a SDR-USB for AIS reception it will not show in the "USB manager" because it s not a serial device.

Read the log from auto setup and check what have happened and then open the "USB manager" tab. If the USB-devices don't show up but are found You have to add them manually according to the instructions.

Friday, 21 July 2017

OpenPlotter, NMEA data FROM file


          Updated 2017-08-14

To test Openplotter, (OP), together with OpenCPN,(OC), without connecting to the navigation network on board there are two features 
  • Using the NMEA generators, found in the OP "Tools" meny 
  • Use logfiles which are stored within the SignalK application.

The generators are explained in the documentation and here will be a description how to use the logfiles.

The engine in OP is SignalK, (SK), and the configuration for this a
pplication is stored in

/home/pi/.config/openplotter/OP-signalk/openplotter-settings.json

Tuesday, 18 July 2017

OpenPlotter quick install guide

OpenPlotter is;
  • A complete boat navigation system
  • Includes OpenCPN, Chart plotter navigation
  • OpenSource, so it's free !
  • Running on Raspberry Pi
  • Its hardware is cheap
  • Running on Unix, so its reliable
  • It comes with NOOBS(New Out Of Box Software) which makes it very simple to install
Its also a compilation of several other nice software which makes it a fantastic package for additional functions.

The Openplotter WEB-site, the nice forum with active people and god documentation makes it almost easy, but if You are a newbie to both OpenPlotter(OP) and OpenCPN(OC), as I was, it can be to much.....

Monday, 15 May 2017

RPi, Raspberry image backup to Mac


This backup method will make a copy/image of the whole card even if there is very little data on it. So if the card is 16Gb, the backup file also will be 16Gb. On the other hand You can ZIP the image file to save space.

Connect the card reader, with the SD card inserted, to Your Mac.

Start the program Terminal, on Your Mac, and check Your SD cards name type.

$ diskutil list

and You will have something like

/dev/disk0 (internal, physical):                                              
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0     
   1:                        EFI EFI                     209.7 MB   disk0s1  
   2:          Apple_CoreStorage Macintosh HD            120.5 GB   disk0s2  
/dev/disk1 (internal, virtual):                                              
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Macintosh HD           +120.1 GB   disk1    
                                 Logical Volume on disk0s2                  
                                 9519AF9B-4C53-41CE-BB98-1139A7C82D9D        
                                 Unencrypted                                
/dev/disk2 (external, physical):                                            
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *8.1 GB     disk2    

Saturday, 13 May 2017

Weather34 install at WEB hotel



Updated 2017-08-07 !

Prerequisites is listed in the beginning of post for installation on Raspberry Pi(RPi)

Hosted installation

In this guide I will use Loopia as an example but other hosts schould be similar

In our case we have created a subdomain http://vader.domstensbatklubb.se/ which is used for the W34 application

In the root of the subdomain a folder, named "public_html" , is created by the host and this is the webserver document root.

Saturday, 15 April 2017

Homebridge update installation on RPi

Update the Raspberry Pi OS, after You logged on to the RPi, with;

sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean

If You have installed the Razberry Daughter card check the current software version on the Razberry WEB-site.

If You need to update just run the installation command

wget -q -O - http://razberry.z-wave.me/install | sudo bash 

Monday, 27 February 2017

RPi install Apache/PHP WEB-server

As a part of one of my project, the ultimate Weather site ?? Weather34, I needed a WEB-host with PHP.

I started up with a fresh Raspbian Lite SD Card with Samba installed.

Log on, with ssh, to the RaspberryPi(RPi), with in this case hostname "pws01", and start to install the Apache server with

$ sudo apt-get install apache2

Check that the Apache server works with a WEB-browser and the URL

http://pws01/

And the default Apache2 page will show (See picture)

Full documentation is available at Apache.org

Saturday, 25 February 2017

RPi Raspbian install with Mac


Updated 2017-05-15 !

When starting up a new project with Raspberry Pi I like to start up fresh and with a minimal OS. Therefore i always use Raspbian Lite. Doing it right You don't have to use an external display, keybord and mouse, just the ssh client from Your Mac

Connect the card reader, with the SD card inserted, to Your Mac and format the card with SD Formatter and use the "Owerwrite Formate" option. This will also check that the SD card is OK.

Download the latest OS, as image, from Raspberrypi.org unzip it and put it in Your root directory. The same directory as the one You start in when using the program Terminal

Start the program Terminal, on Your Mac, and check Your SD cards name type

$ diskutil list

Thursday, 26 January 2017

Install Weather34 with WeatherLink

Updated 2017-08-07 !!

I You want Your Private Weather Station(PWS), Davis Vantage Pro2 or other Davis products that use WeatherLink, to provide data for the template we use at Domstens Båtklubb just follow the instructions below

And this is without additional software such as Cumulus, Weather display or the Meteobridge product.

Before You start You must ensure that;
When you have logged on to Your WL account You will find the link "Uploads" in the upper part. Click on it and register Your StationID and Password for WU data transfer.

W34 is built so it can get online data from many different PWS solutions which should update their respective online files at the W34 web-server. In our case we pull the XML data direct from the WL site and update an online file, type "cumulus", on the W34 web-server

Installation

Sunday, 22 January 2017

Davis weather station, WLink, PHP


In the harbour we are using a Davis weather station, Vantage Pro2, as our PWS(Private Weather Station).

If You like to display the data, online on the web, You can use the Davis service, Weatherlink . We use the WeatherLinkIP to push the data to the web.

If You want to customise Your own website You could retrieve the weather data with serial communication direct from the WeatherLinkIP. There are some applications on Github but then, in this case, You have to have a server with Node.js

Another way is to retrieve the weather data as XML from the Weatherlink web-site.

Below You will find some PHP code which will do the work.

Wednesday, 18 January 2017

The ULTIMATE Weather WEB-site ??

Project terminated by developer 2017-08-07 !!




If You have a Private Weather Station(PWS) and would like to have a good view over the data and, as an add on, also forecasts from Weather Underground (WU) this free software probably solves Your problem.

https://weather34.com/homeweatherstation/

As You could se in the information the online data could be picked up from many different PWS solutions which should leave their online files at the weather WEB-server.

Weather34 is written in PHP so "any" web server, even a hosted(web hotel), should be able to run it.

The picture is taken from a project where a Davis Vantage Pro2 is the data source and software is running on a Raspberry Pi 3 with a Apache server and PHP installed.

Some code to start with 

Monday, 16 January 2017

Homebridge, autostart with systemd



systemd is service manger which autostart jobs and it will even

               restart the homebridge job if it fails  



!!! Disable any other homebridge autostart job before You enable systemd  !!! 

If You followed my earlier setup the homebridge command is placed in

/usr/bin/homebridge

If You used another setup check with 

$ which homebridge

so the path in file ”homebridge.service” will be correct

ExecStart=/usr/bin/homebridge

Create the service file for systemd

Saturday, 26 November 2016

Samba, RPi as Windows file server

If You want that the Raspberry Pi, RPi, shall appear in MS Explorer or Mac Finder, as a File server, the easiest way is to install Samba.

This also makes it much easier if You want to edit files on the RPi with editors from Your MS/Apple device. Or maybe moving files from/to the RPi.


Log on to the RPi and install Samba

$ sudo apt-get install samba samba-common-bin

Edit the Samba configuration file so that You have more than "Read Only" rights.

$ sudo nano /etc/samba/smb.conf