Friday, 24 July 2020

Understand/Install Openplotter/OpenCPN/SignalK, II

This post is the second post explaining the purpose with, and quick/simple install instructions for, OpenPlotter(OP) and some other applications that can be installed with OP. 

The first post is found here and in this post we will proceed with the install of OpenCPN(OC).

Install OpenCPN

In OP:s "Application Meny => Other => Settings" app,  mark "OpenCPN Installer" and click on "Install", at the upper right. 

Wednesday, 22 July 2020

Understand/Install Openplotter/OpenCPN/SignalK, I

This post, additional posts will follow, will explain the purpose with, and quick/simple install instructions for, OpenPlotter(OP) and some other applications that can be installed with OP. 
  • OpenCPN(OC), is the plotter software where You navigate and handle charts 
  • SignalK(SK), is the software where all the sensor inputs are handled. Could be NMEA data or SK formated inputs
  • OpenPlotter(OP), is the administration shell where all is administrated and also handles these functions.

As You investigate the different software packages You will see that there are some overlap in the functions.

With OC 5.2 + there been several updates....

Friday, 10 July 2020

VHF antenna splitter, receive

During my AIS project with SDR:s as receivers I built my own antenna for use at home, a standard DIY dipol antenna

I connected the dipol, to SDR antenna input, with an a female SMA extension cable which I cut it in two pieces and soldered to the dipol. 

For the boat I didn't want an extra VHF antenna so....

Tuesday, 7 July 2020

SignalK, measuring temperature II

An introduction to the SignalK(SK), Marine application, is given here.

A very easy way to measure temperatures with SK is to use one wire (1W) DS18B20 (DS)temperature sensors. 

In a former post the DS:s where connected direkt to the RPi GPIO:s, but in this post they are WiFi enabled via the Shelly 1(S1). Alarms are also sent when the temperature exceeds a set value.

If humidity is of interest You can use a  DHT22 sensor instead of a DS sensor.

Sunday, 14 June 2020

SeaTalk1 to NMEA 0183 converter, DIY

Updated 2020-07-27 !

Thanks to Thomas, (the guy with the nice marine interface board)it's now possible to decode, one way, the SeaTalk1(ST1) sentences in a pretty simple way. You just use OpenPlotter(OP) and/or SignalK(SK) and an Optocoupler.

The thing that made it, is that Thomas has released a "how to" and Python source code, that will read the data from a GPIO pin on the Raspberry Pi, (RPi), and format it so the standard parser in SignalK can translate it to SignalK delta format. It is then available as NMEA 0183. It's even possible to send the data in to a NMEA 2000 network, with a proper interface.

Saturday, 23 May 2020

Homebridge made simple, Homebridge

HomeBridge(HB) is the software where You make Your home automation devices appear in the Apple Home App as native products. In this post a Raspberry Pi is used as the HB server.

There has really been big improvements in the installation process and I think the latest  HB version is even better/easier than HOOBS.

Migrate from HOOBS ?! Link

Saturday, 16 May 2020

Shelly 1 quick install

This post focus on Shelly 1(S1), a really a nice automation device with great versatility, but much of the content is also valid for some of Shellys other devices.

S1 is a WiFi switch, 16 Amps, but also a hub for temperature sensors

With a great software package pre installed You probably don't need anything more, but since it is an ESP8266 You can also flash it with Your own/other software.

The function "without Internet" + that the S1 can use a 12V DC source makes it perfect for an "use case" in a boat/mobile home.

It's compatible with Alexa, Google or HomeKit using HomeBridge or Mongoose firmware 

Saturday, 9 May 2020

HomeKit showing Humidity & Internetspeed

From AppleWatch
Strange mixture ? Humidity & Internetspeed ? 

With HomeKit You can't show Your measured Internet speed in a proper way,  X Mbit/s. So why not show it in % ? Measured compared to the one You purchased from Your ISP(Internet Service Provider) ? 

So now You see the point..... Humidity is also in % and can be displayed in the Home app. The only "if" is that the speed is displayed along with a "water drop"..... but maybe You can live with that ? 

In this post NodeRed(NR), installed at a Raspberry PI(RPi), is retrieving the Internet download speed via a shell script and is also acting as the WEB endpoint to the HomeBridge "homebridge-http-humidity-sensorplugin.

Wednesday, 6 May 2020

HomeKit bridge with Shelly/Shelly 1

HomeBridge is used for this setup and to make it appear in the Apple Home app.

The main advantage with the Shelly devices are that they are WiFi enabled and therefore You don't have to use a hub, this compared to z-way/zigbee and some other solutions. 

First install Shelly1(S1).

Sunday, 3 May 2020

HomeKit with "ANY" temperature source

From AppleWatch
As long as it's possible to retrieve information, in some way, from a sensor OR a website/webserver, with temperature information, it's possible to show it in HomeKit with HomeBridge(HB).

In this post NodeRed(NR) is retrieving the temperature from Your selected source and is also acting as the WEB endpoint for the HB  "homebridge-http-temperature" plugin.

In my case I wanted an outside temperature so used the measurements from our Davis Weather station and their JSON REST API but it could for example be Your Raspberry CPU temp or showing the speed of Your Internet connection.

Friday, 1 May 2020

AIS reciever for Raspberry Pi, 2 channel

Other AIS posts on this Blogg
Updated 2020-05-01 !!

This post covers the setup for a AIS, dual channel, receiver for Raspberry Pi(RPi) with systemd autostart.

I'm using the RTL-SDR dongle V3 with almost zero temperature drift or the even better NooElec NESDR Nano 3

AIS posts with maps
Improve receiving range? Calibrate ! Instructions in this post

Tuesday, 21 April 2020

OpenPlotter, Stable V2, install guide

Updated 2020-07-28 !

OpenPlotter is now released as stable. It's really a nice and simple installation of
and other supporting programs for Your boat.

Please note ! I'm doing a new series of posts, using OpenCPN 5.2 +, with a more detailed information of the functions and the installations.

Thursday, 2 April 2020

Underfloor heating hack

I have tried to find some basics how a standard underfloor control system is regulating the heating, but haven't, so started with checking up our own temperature control system from LK(TCS).

I used Node-Red, with Raspberry Pi(RPi), sensing when the TCS applied voltage to the actuator. Since the actuator is running on 24 VAC and the input on a GPIO PIN is maximum 3,3 VDC I used a optocoupler to level shift. Schematics below

Lesson learned 
according to the first picture.

Saturday, 28 March 2020

Raspberry LCD displays

There are many displays for Raspberry Pi and following some of the manufacturers instructions isn't always so easy.

But there are scripts available which will make it very simple.

As an example, in this post, I will install the LCD touch display from Joy-IT RB-TFT3.2-V2. The size is 3,2" with a resolution of 320 x 240, has a touch display and comes with 3 buttons.

Friday, 20 March 2020

Homebridge made simple, HOOBS

Updated 2020-03-20 !

I have written several post about the HomeKit Bridge, Homebridge(HB), but if You want a simple way to handle the server and plugins the guys at HOOBS have done a nice software package with a browser interface.

They even created an image with Buster, for use with Raspberry Pi(RPi) and the HOOBS V3 package, which You can download here.

Check this post !! with the Homebridge "native" install !! Even better than HOOBS ?

Monday, 2 March 2020

Homebridge update installation on RPi

Updated 2020-03-02 !

Raspberry Pi(RPi)update

Start updating the Homebridge(HB) installation, after You logged on to the RPi, with;

sudo apt update && sudo apt full-upgrade -y

If You are using HOOBS or Homebridge with UX their updates can be done via respective GUI interface.

Other HomeKit posts on this Blogg

Wednesday, 26 February 2020

Battery cables for cars & boats, DIY

At higher outputs, current, from the batteries I had detected an increasing voltage drop. So I decided to change and update the supply cables from the batteries, see picture, to a more correct solution. 

The solution was
  • Cable lugs on all cables
  • The lug is crimped and soldered to the cable
  • Heat shrink tubes, with glue, to cover the transition between the lug and cable
  • Battery terminals with M10 distributer

Monday, 24 February 2020

OpenPlotter V2, NMEA or SignalK data TO file

If You want to capture Your data from a sailing trip there are several ways. Here I will check out these
  • SignalK delta, via plugin signalk-data-logger 
  • NMEA 0183(N1), via netcat
  • NMEA 2000(N2), via actisense-serial
If you then want to use these files as input for OpenPlotter, OpenCPN or SignalK check out this post.

Sunday, 23 February 2020

OpenPlotter V2, NMEA or SignalK data FROM file

The easiest way to test Your OpenPlotter, OpenCPN or SignalK(SK) applications is to use the supplied sample files in SK.

Another way is to capture Your own data from a sailing trip, which is described here. Then You can use them instead of the supplied sample files.

Monday, 17 February 2020

Node-Red & Mosquitto quick install

A fantastic way to distribute data between devices is using MQTT. In this post I will do a quick and simple setup with Node-Red(NR) and the Mosquitto(MQ) broker on a Raspberry Pi.

Very short, the Broker, installed on a server, handles incoming Publishing and Subscriptions from clients. Every published Message is "linked" to a Topic. All Subscribers use a Topic to "link" to the right Message.

How to install Node-Red(NR) is found here and the MQ manual here.

Monday, 20 January 2020

Homebridge, autostart made simple

There have been some questions about how to handle Homebridge, (HB), autostart at power on and restart at failure using Raspbians systemd

I have written a post how to manually set it up but now in this post I will present a script which handles it automagically !! 

Despite this simple set up I recommend using the app " hb-service", which is installed together with "homebridge-config-ui-x"

How to install HB is found here !

Thursday, 9 January 2020

Node-Red quick install

                           Updated 2020-01-09 !

Node-Red(NR) is Flow-based programming for the Internet of Things

This post isn't made as a complete install guide, there are several, just some links to the best information I have found.

The best thing is that even if You don't are a skilled programmer, but like logic flows, You can make really advanced things. It's pre-installed on some Raspberry Pi(RPi) distributions.

Saturday, 4 January 2020

Install Weather34 with WeatherLink

                        Updated 2020-01-04 !!

If 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. 

This is made without additional software such as Cumulus, Weather display or the Meteobridge product.

Monday, 9 December 2019

RPi, Clone the Raspberry boot disk

Updated 2019-12-09 !

A very nice way to fix a backup is to make a copy, bootable, of the actual SD card You are using in the RPi and this when the RPi is up and running. 

You clone from the command line so You don't need the standard GUI, Pixel, and the SD card copy function.

It is also possible to set up a cronjob, explained later, which for example makes a clone every night at 1 o'clock.

Tuesday, 3 December 2019

Raspbian install with Mac/Windows/Linux

Updated 2019-12-03 !

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 a ssh client.

Here You find a post with headless WiFi install.