January 20, 2024

AIS reciever for Raspberry Pi, 2 channel

Updated 2024-01-20 !! OK with Bookworm !!

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 charts/maps
Improve receiving range? Calibrate ! Instructions in this post

The best AIS application ? is found here !

January 08, 2024

Install Weather34 with WeatherLink, v2 API

Updated 2024-01-08 OK with Bookworm 64 bit, PHP 8.2 !

This post is an update from a former post which handles on how to set up a weather WEB-site with data from Davis Weather Link(WL) but here adapted to the latest WL API v2.

Any product that reports weather data to WL can be used as a source for this weather template.

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

January 07, 2024

RPi install Apache/PHP WEB-server

Updated 2024-01-07 ! OK with Bookworm & PHP 8.2 !

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 Raspberry OS Lite SD Card with Samba installed.

Log on, with ssh/terminal to the RaspberryPi(RPi), 
in this case hostname "pws01", and update the OS with

sudo apt update
sudo apt full-upgrade -y
sudo apt clean

go on and install the Apache server with

sudo apt install apache2

January 05, 2024

Samba, RPi as Windows file/print server

Updated 2024-01-05 OK with Bookworm !

If You want that the Raspberry Pi(RPi), shall appear in MS File 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.


January 03, 2024

SeaTalk1 to NMEA 0183 converter, DIY

Updated 2024-01-03 !  Not for RPi 5 !!

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 hardware interface.

December 06, 2023

Raspberry Pi OS install with Mac/Windows/Linux

Updated 2023-12-06 !

When starting up a new project with Raspberry Pi I like to start up fresh and with a minimal OS. 
Therefore i always use Raspberry Pi OS(ROS) Lite and then adding what I need

Doing it right You don't have to use an external display, keybord and mouse, just a "sshclient.

Flash to a SSD ? Check this post.

December 05, 2023

SDR calibrate with kalibrate-rtl

Updated 2023-12-05 !! OK, with Bookworm (32/64 bit) !!

To optimize the reception with SDR:s, Software Defined Radios, it is important to receive on the proper frequency. Due to variations in production there could be deviations.


The calibration could be done against standard GSM transmitters which are providing a stable reference frequency.

Another way is found in the AIS-catcher application and use the information supplied in the graphs "Frequency Shift". 

December 01, 2023

Signal K quick install

Updated 2023-12-01 !

I have got some questions installing, just, Signal K(SK) so will do a summary, on a Raspberry Pi, with links.

Signal K is the hub to receive data, from different devices in different data formats, and send it on to different equipment, or databases, in different formats. Most common for standard marine equipment are the old NMEA 0183 and the newer NMEA 2000 protocol which is also handled. 

Besides the SK "hub" function developers have created plugins for different purposes. This is due to that SK is open-source ! Sharing is caring !

In this post you can check the devices I'm using connected to the SK server and also my setup.

November 09, 2023

AIS receiver & dispatcher with OpenSeaMap

Updated 2023-11-09 !

The AIS posts on this blog have been very popular so this post will be a follow up which will enable You to show AIS targets, including AtoN:s, on OpenSeaMap, (OSM), together with buoys and beacons.


The application showing the map is SignalK, (SK) a OpenSource project for marine use. 

With the "ais-forwarder" plugin you could send/dispatch the NMEA AIS data to Marinetraffic or Vesselfinder. Another AIS-dispatcher.

The best AIS application ? is found here !

November 08, 2023

Raspberry Pi watchdog made simple

Updated 2023-11-08 for Bookworm !

The purpose of a watchdog timer(WD) is very well described here but a more practical answer is;

If your Raspberry Pi(RPi) "freezes", or hangs, it will automagically reboot within a very short time.

This is made with a combination of hardware and software which is all ready available, on the RPi, and just have to be enabled.

After some hours Googling and testing these are my findings !

November 06, 2023

NMEA WiFi gateway

WillhelmSK

Updated 2023-11-06 !

I have searched for a solution transmitting the NMEA data, from the navigation network, via WiFi, to for example iSailor or other Tablet/Phone applications.

Most of these applications just accepts NMEA0183(N1) but many boats are also using SeaTalk 1(ST1) and NMEA2000(N2K).

This post will cover, kept compact, my best findings covering both a DIY and a commercial approach to handle the different protocols.

November 05, 2023

SignalK, measuring temperature

Updated 2023-11-05 !

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

A very easy way to measure temperature with Raspberry Pi, RPi, is to connect one wire (1W) DS18B20 (DS)temperature sensors direkt to the RPi GPIO.

Here You find a post where the temperatures are transfered via WiFi

November 04, 2023

AIS for Raspberry with Map, Dispatcher

Updated 2023-11-04, OK with Bookworm 32 bit !
Not Bookworm 64 Bit !

This is a setup, on a Raspberry Pi(RPi), with a software package, AIS Dispatcher, from http://www.aishub.net which includes
  • receiving and processing of all standard AIS messages
  • streaming raw AIS feeds to multiple destinations
  • advanced monitoring of device status, coverage and message statistics
  • embedded electronic map with all received vessels
The best AIS application ? is found here !

October 30, 2023

RuuviTag and Node-Red

 Updated 2023-10-30 ! OK with Bookworm ! New simple install ! 

For a new project I needed a small wireless temperature sensor, there You don't have to change battery so often, and this gave the RuuviTag.


Having used Node-Red(NR) on Raspberry Pi before, the first application was this dashboard. 
Tested and works with with Node.js V18 !












October 26, 2023

Homebridge made simple, Homebridge

Updated 2023-10-26 !

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 HB version is better/easier than HOOBS.

Migrate from HOOBS ?! Link

October 17, 2023

Raspberry headless install with WiFi

Updated 2023-10-17 !

To make a headless, without monitor, keyboard and mouse, install of Raspberry Pi OS on a Raspberry Pi(RPi) with built in WiFi and no LAN cable connection, please follow the instructions below.

For example the RPi Zero and Raspberry Pi 3 Model A+ don't have any LAN cable port so the setup is quite usable.

To make an active WiFi connection at first boot You have to use the "Advanced options" in Raspberry Pi Imager or create, old way, a configuration file called "wpa_supplicant.conf".

October 16, 2023

Understand/Install Openplotter/OpenCPN/SignalK, II

Updated 2023-10-16 !

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

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

October 15, 2023

Understand/Install Openplotter/OpenCPN/SignalK, I

Updated 2023-10-15 !

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 was several updates....

October 13, 2023

NetworkManager on Raspberry, easy start

Updated 2023-10-13 !

There is a "new kid in the block" called
NetworkManager(NM), configuration of network interfaces, which in OS "Bookworm", Debian 12, is replacing the former used dhcpcd.

NM isn't really new since the first public release was made 2004.

In this post I will write down some NM hints for an easy start since I didn't find any myself.

October 12, 2023

NetworkManager UI and access point, hotspot

Updated 2023-10-12 !

In a former post I shared some thoughts about how to start using NetworkManager (NM), on a Raspberry, and here I will continue with additional examples that can help with network setup.
  • NMTUI is NetworkManager text UI which can handle the most common tasks in a easy way.
  • An access point or hotspot will be configured.
  • "sudo nmcli connection edit xxxx" is a command that guides you throw a change of parameters.

October 04, 2023

TP-Link Deco M9 V2 Plus software update

Updated 2023-10-04 !

TP-link Deco M9(M9) is a nice Mesh solution but it could be that the software/firmware is dated 2019. This is an old one and you really shall update ! Probably you can't update via the TP-link Deco app and therefore you have to make some extra measures updating via a Mac/Windows program.

In a former post I gave some hints and links if you are using an ethernet backhaul, using access point mode, and please check below how to set up without a router and manage more than one network.

Post with Teltonika 4G router as receiver / bridge for the mesh network.

October 02, 2023

Bluetooth Beacon and Raspberry

Updated 2023-10-02 !

The latest models of Rasberry Pi, (RPi), comes with built in Bluetooth, (BT), so how to receive data from Your Bluetooth devices ?


A Bluetooth Beacon, could be a RuuvuTag, is a device that You don't have to pair with, You just scan and receive the data that they are transmitting.

Start with checking that Your BT interface is working, in a terminal windowtyping

hciconfig 

September 24, 2023

Volvo C70, Mk1, convertible tips and trix

I own a 2003 C70 Volvo softtop convertible but at the age of 20 she got some problems with the softtop/cab. 

So this post will be some problem solving and links to information which could be handy. 

There is a private Facebook group which is active and helpful.

September 13, 2023

Remote access, remote.it, made simple

Sometimes it's really nice to reach your applications at home when you are somewhere else. 

There are several applications but this post will be describe a really quick setup with remote.it on a Raspberry Pi(RPi) or another Linux platform. Of course there also is a Windows version.

For non-commercial use, with up to 5 devices, it's free !

The most used services are; http, ssh, vnc, rdp, SAMBA(smb/cifs) .....

I'm using it to display NodeRed dashboard, access servers with "ssh" and file sharing with SAMBA there all applications are running on RPi:s at home.

August 27, 2023

Apple HomeKit doing Matter upgrade with Hombridge

Matter is the the new standard making your smart home devices talking to each other and some Apple Home hubs can be updated.

There is a nice article from "The Verge" which explains it all.

Using Homebridge(HB) it could be nice to know what happens when you upgrade your HomeKit hub to the new standard so his post will just give some quick tips

Here is a support article from Apple and please note that if you upgrade you will not be able to use an iPad as a Home hub anymore.