Sunday, 23 January 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.

Saturday, 22 January 2022

macOS Monterey on unsupported Mac

Updated 2022-01-22 !

In a former post I went trough how to update an old MacBook Air 4.2, (mid 2011, SSD, 4 Gb memory) to Big Sur and in this post I will update the Mac to Monterey with the same patcher !! 

This is despite that max OS for the Mac is High Sierra. This is done, among other things, due to that the patcher handles Macs with graphic cards from 2008 - 2011 which Monterey doesn't do natively.

Since my former upgrade, to Big Sur, included a format of the SSD disk I here used the patcher to do an upgrade from Big Sur to Monterey.

Awesome !!!

Friday, 21 January 2022

macOS Big Sur on unsupported Mac

Updated 2022-01-21 !

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.

Thursday, 20 January 2022

Samba, RPi as Windows file/print server

Updated 2022-01-20 !

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.

Wednesday, 19 January 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

Thursday, 13 January 2022

Victron monitoring solution, Venus, on Raspberry

Updated 2022-01-13 !

Victron have a state-of-the-art monitoring solution used by the GX products. It can monitor their other system components such as inverter/chargers, solar chargers, shunts, and batteries both local and remote all over the world.

If you have a smaller Victron solution it is nice to know that the same software, Venus OS(VOS), can run on a Raspberry Pi(RPi) instead of the more expensive and versatile GX products.

Monday, 10 January 2022

AIS reciever for Raspberry Pi, 2 channel

Updated 2022-01-10 !! OK with Bullseye !!

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

Monday, 3 January 2022

Victron VE.Direct with Raspberry Pi/Signal K

Updated 2022-01-03 !

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. 

Sunday, 2 January 2022

NMEA WiFi gateway


Updated 2022-01-02 !

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.

Monday, 13 December 2021

Node-Red multiple instances, RPi

Updated 2021-12-13 !

n the same server/hardware you can have
  • a test environment for Node-Red(NR), separated from production
  • separated instances for different applications
Setup will follow for a Raspberry Pi(RPi) including how to auto start at power on.

A post for NR quick install.

Sunday, 12 December 2021

Install Weather34 with WeatherLink

Updated 2021-12-12 !! OK with Bullseye and PHP 8.x !

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.

Interface updated to WeatherLink 2.0(WL2.0) Migrate info in this post

Sunday, 21 November 2021

Node-Red quick install

Updated 2021-11-21 ! OK with Bullseye !

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, 20 November 2021

AIS for Raspberry with Map, Dispatcher

Updated 2021-11-20, OK with Bullseye !

This is a setup, on a Raspberry Pi(RPi), with a software package, AIS Dispatcher, from 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

Wednesday, 17 November 2021

SDR calibrate with kalibrate-rtl

Updated 2021-11-17 !! OK, with Bullseye !!

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.

Tuesday, 16 November 2021

RPi install Apache/PHP WEB-server

Updated 2021-11-16 ! OK with Bullseye !

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-get install apache2

Monday, 15 November 2021

OpenPlotter V2, install guide

Updated 2021-11-15 !

OpenPlotter, a Boat Navigation application, is really a nice and simple installation of
and other supporting applications 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.

Don't use the latest Raspberry Pi OS, Bullseye, it will not work ! Install Buster, info here, if you use option B below.

Friday, 12 November 2021

Raspberry 4 USB SSD boot in 60 seconds !

Yes, it's really true ! Thats the maximum time it takes to write the Raspberry Pi(RPi) OS, Bullseye, to a bootable USB SSD and maybe read this post ?

If you have a RPi 4 and a USB SSD or other USB drive, that works as a boot media, just use the RPi imager which can write the image direct to the USB  storage.

Having an older RPi ? Use this post instead.

If you already have a SD card with working applications and you want to "transfer", copy/clone, them to a bootable SSD use this post.

Wednesday, 10 November 2021

Raspberry Pi OS install with Mac/Windows/Linux

Updated 2021-11-10 !

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

Don't want to install Bullseye ? Check Remarks below.

Monday, 8 November 2021

Clone the Raspberry boot disk

Updated 2021-11-08 !

A very nice way to fix a backup is to make a copy, bootable, of the actual SD card You are using on the Raspberry Pi(RPi). This will be done even when the RPi is up and running !

This application can also be used to make a bootable SSD or USB drive !!

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

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

Sunday, 31 October 2021

Bootable installer for "any" MAC OS

Updated 2021-10-31 !

The use case is that I had an old iMac, max OS is High Sierra, that crashed and it didn't work with an Internet or Time Machine restore.

The other MAC:s I have are running Catalina or Big Sur and if you try to download and older OS, via app-store, you just get an error saying that the running OS don't accept the download of an old OS.

The universal way to create an USB installer seems to be using the command "createinstallmedia", requires OS X 10.7 Lion or later, but you need the respective OS install app !

Thursday, 28 October 2021

RuuviTag and Node-Red

Updated 2021-10-28 !

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 on Raspberry Pi before, the first application was this dashboard. 
Tested and works with with Node.js V14 and V16 !

Saturday, 16 October 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.

Friday, 15 October 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

Thursday, 14 October 2021

Raspberry Pi 2, 3, 4 USB SSD or USB drive boot

Updated 2021-10-14 !

After having tested several methods creating a bootable USB SSD, or other USB drive, for Raspberry Pi(RPi) 3 and 4, I finished with this simple method
  • Create the setup you want on a ordinary SD card
  • Make a bootable backup/clone of the SD card saving it to the USB SSD
  • Remove the SD card and boot from the USB SSD
Having a RPi 4 ? Use this post on how to write the OS direct to the SSD.

If you already have a SD card with working applications and you want to "transfer" them to a bootable SSD use this post.

Saturday, 9 October 2021

Raspberry Pi watchdog made simple

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 !