February 20, 2022

WeatherLink weather template, v2 API

I have written a post with the same subject before, also using NodeRed(NR), but this post is using the latest WeatherLink v2 API instead of the v1 API

The v2 API supports more devices and now also including the old ones.

If You want a more advanced weather site this is a very nice one coded in PHP also using the v2 API.

February 03, 2022

Read and write NMEA files, Openplotter, Signal K

This post is written for those who runs Signal K(SK), or applications that indirect are using SK, and want to write log files that could be read for later use.

Other applications could be Openplotter which includes SK or OpenCPN for example interfacing a NMEA 2000 network via SK.

There are sample files within the SK installation which can be used, for testing purposes, before you have created your own log files from your boat trips. Check here at "Input file/data".

January 23, 2022

Read & write Linux, ext4, volumes with Windows & Mac

In an other post I explained how to access and edit the data on an USB attached drive with the Linux "standard" ext4 filesystem. 

In this post I will explain how to read, write or add files using Windows, File explorer, or Mac, Finder, without third party software !

You "just" need a Linux machine, but since you want to access an ext4 filesystem there probably are a machine in the surroundings ?

In this post I will use a "simple" Raspberry Pi(RPi) and the ext4 media attached to one of the USB ports.

January 21, 2022

macOS Big Sur on unsupported Mac

Updated 2022-03-03 !

I'm having an old MacBook Air 4.2, (mid 2011, SSD, 4 Gb memory), which have been running Catalina for quite some time despite that the 
max OS is High Sierra. I have been using the great work by dosedudes1 and his Catalina patcher.

Unfortunately he didn't continue with patches for newer OS:s but have helped with a new patcher. This patcher even handles Macs with graphic cards from 2008 - 2011.

Using the patcher i got the mentioned Mac up and running with Big Sur after just over an hour.
 
New post !! Upgrade to Monterey.

January 11, 2022

Victron VE.Direct with Raspberry Pi/Signal K

Updated 2022-01-11 !

During my update of the cables going from the batteries, to the distribution panel and engines, I stumbled over the Victron SmartShunt(VSS). We had a 15 year old Mastervolt battery monitor but it didn't feel "true" and it wasn't at the right place in the boat. So instead of moving the old shunt we bought a VSS. 

January 10, 2022

Raspberry, edit config or add files before boot

The actual use case was that I have a Raspberry Pi(RPi) sourcing Vesselfinder with AIS data from nearby. I wanted to change/test a new configuration but on the other hand I didn't want to take the RPi down, during a longer period, since it's an online service.

So the solution was to make a bootable clone of the actual application and test with a second RPi. The major obstacle was that I then would have 2 hosts, with the same hostname, which will mess up the local network.

So how to change the host name on the cloned SD card before I'm using it in the second RPi ?

Another post on how to read and write Linux drives with Windows/MacOS

December 05, 2021

Davis weather station, WeatherLink, PHP

Updated 2021-12-05 !

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(WL) where you register an account. 

Another way is to retrieve the weather data as XML or JSON, from the Weatherlink web-site, and use it in your own application (open source!).

Another approach with NodeRed could be find here.

October 16, 2021

Raspberry, restart network, or reboot, at ping failure


Using a Raspberry Pi Zero(RPi), with wifi, I sometimes have problem that the WiFi connection is lost. This is due to that, at our boat, we are using the Teltonika RUT 240 router. The router just have one receiver/transmitter, LAN and WAN WiFi are shared, and in some use cases the WiFi will temporarily be disconnected. To restart the WiFi quick the following solution is used.

This post will cover a solution, a bash script, with inspiration from this blogpost, but with some fine tuning. 😉
 
Another way could be using the watchdog function, described here, with reboot.


October 15, 2021

SIGNL4, automated alerting with free mobile app

I'm involved in several projects where you, as quick as possible, want to get an alert if anything fails. After a lot of Googling I found SIGNL4.

They have several ways to create an alert, can involve a team, have a nice app and is free, up to 5 users, if you use the "STARTER" option.

In this post, as an example, I will show how I detect if my AIS receiver/dispatcher stops receiving AIS targets, sent to Vesselfinder, and how an alert is forwarded to the SIGNL4 app.

I'm using NodeRed on a Raspberry Pi to realize the function

August 24, 2021

Ring doorbell install and relay

The electrical install instructions for the Ring Doorbell maybe could be a little easier to find  ? 

So will give some links where you are connecting to
  1. Internal doorbells
  2. No internal doorbell but charging the battery
  3. External relay, triggering "anything"
  4. Wireless relay

Ring Device manuals are found here.

August 08, 2021

Homebridge made simple, HOOBS

Updated 2021-08-08 !

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

I personally prefer the Homebridge "native" install, which seems to be updated more frequently.

July 24, 2021

Raymarine AXIOM and NMEA0183

Updated 2021-07-24 !

Many newer MFD:s don't have any 
NMEA 0183(N1) connector. The  Axiom don't even have any Seatalk NG connector anymore, just the Device Net micro connector for NMEA 2000. Loosing the  N1 info, too for example the old VHF (position data for DSC), could be a problem so how to solve it ?

Some solutions

  • Pick N1 data from the AIS
  • NMEA 2000, N2 to N1 konverter
  • SeaTalk NG, NG to N1 konverter

July 14, 2021

AIS dispatcher, stand alone

Updated 2021-07-14 !

The dispatcher "aisdispatcher"(AISD), Linux v1.2, from AISHub.net receives NMEA 0183 VDM/VDO messages, (NAIS) via an UDP/TCP connection, or serial interface, and forwards it to one or several destinations as UDP streams. It works at command line with no GUI.

Please note ! This software is "labeled" deprecated and the AISHub guys recommend you to use this package, with built in GUI, instead. The old version, described in this post, 
still works, for RPi OS before Bookworm, and is very lightweight.

The best AIS application ? is found here !

July 07, 2021

MySQL and NodeRed

Updated 2021-07-07 !

Sometimes the syntax for the Javascript in Node-Red is a little hard to get, despite some Googling. This was evident when i tried the run the "
node-red-node-mysql" node inserting data in a MySQL database.

Also timestamps in different environments are a little complicated.

So this post will cover both areas with some code examples done on a Raspberry Pi.

July 01, 2021

Raspberry fan control, Node-Red


Updated 2021-07-01 !

Do You want to have control over the Raspberry Pi(RPi) ? 

Functions
  • CPU Temperature
  • CPU Load %
  • Free RAM %
  • Disk Usage %
  • Shutdown and Reboot buttons
  • Fan PWM control via GPIO
Other NR posts on this site

June 15, 2021

Volvo Penta NMEA 2000 Gateway

Updated 2021-06-15

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.

There are some "standard" NMEA 2000 gateways to choose from, for example; 
  • Volvo Penta has it's own 22813366, 3889758
  • Raymarine ECI-100
  • Maretron J2K100
  • .....

May 21, 2021

HomeKit bridge with Z-Wave


Updated 2021-05-21 !

These devices are available for Apples HomeKit. The devices are Bluetooth, BLE, or WiFi connected so it could be a limited range in Your house.

The Z-Wave solution have a smarter setup running on a type of network called a "mesh network". One Z-Wave product will pass the signal along to another (“hop”) until the final destination is reached. Every device, not battery charged, acts as a messenger; the more devices you have, the more powerful and strong your network is.

Raspberry USB SSD boot made simple ? Check link 

April 25, 2021

IKEA Bäve dimmer hack II

Updated 2021-04-25 !

Dimming not dimmable LED, IKEA Bäve, produced before 2019-11 













In former post I used a Fibaro Z-Wave RGBW controller but in this post I will use an IKEA original !

April 15, 2021

Homekit, temperature with DS18B20

Updated 2021-04-15 !

A cheap and simple way to measure temperature, and have it displayed in the Home app, is to connect one wire (1W) DS18B20 (DS)temperature sensors direct to the Raspberry Pi(RPi) and install a DS plugin.


This assumes that You have Homebridge up and running on a Raspberry Pi 

Check this post !!  "ANY" temp source can be HomeKit enabled.

March 22, 2021

Wordpress with PHP Everywhere

Sometimes you have to handle things in Wordpress that you can't find any plugin for.

In our case I had to visualize a list from a MySQL database and in another case I had to fetch data from another website.

In both cases I solved it with inserted PHP code which is executing and getting the info.

March 13, 2021

SignalK switch with NodeRed and WilhelmSK

Updated 2021-03-13 !

Here I'm trying to do the "ultimate" SignalK switch blog post including(no N2K)
  • Shelly 1 as the hardware switch
  • NodeRed as the function engine
  • NodeRed dashboard as input/output interface
  • WilhelmSK as input/output, check picture
  • A http endpoint as state sensing
The post is ment to be a template where you can pick the parts which are right for your setup.

February 15, 2021

Raspberry Pi measuring Voltage

I'm always a little confused that as soon as someone wants to get an analog measure to a Raspberry Pi(RPi) they are often taking a detour via an Arduino/ESP or some other microcontroller. 

Why not just take an Arduino peripheral and use it together with a RPi ? 

In my case I needed to measure the voltage across a fresh water tank level sensor in our boat, but i could be any DC voltage. Hints for sending the data to a Signal K(SK) server is found below. 

In this post I will use an ADS 1115(AD), or ADS 1015, as AD converter.

January 01, 2021

Scanner GUI with NodeRed

In a former post I installed CUPS printer software for a Cannon printer. The scanning functionality is supported by the package SANE. But there is no nice GUI for the scanning function so I made one, with NodeRed(NR), which I really think is "wife" enabled.



December 27, 2020

Homebridge, retrieve accessories information & status

Having Homebridge(HB) up and running it's simple to retrieve and visualize status or measurements from accessories.

For example I'm using the Aeotec MultiSensor 6,(AM6), via the z-way plugin, where I'm sensing the light level. Since Im living in northern Europe it's not very accurate to switch the indoor lightning by sun-rise/set. So instead I'm using the AM6 together with the EVE app to switch the lightning. 

To visualize the measured values over time I'm using NodeRed(NR) and a HomeBridge plugin

December 15, 2020

Free Gmail mail merge with Sheets

There are several mail merges applications where you can merge information from Google:s "Sheets"(GS), but not so may free ones that are good.

The point using mail merge is that you can personalize your outgoing mails and you will fore sure get a better response rate.  

There should also be said that if you are having a free Gmail account you are limited to 100 outgoing mails per 24 hours.

The first application, free !, handles the merge via a GS with a built in JavaScript macro and in the second application, 25 free mails per 24 hours(limit in app), the merge is done via an installed GS add-on with many nice functions.