Posts

Wine, Windows apps on Linux, Raspberry

Image
What is Wine ?  The OpenSource project , themselves,  explains it as;  Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD So why ? In my case, I'm just running macOS and Linux, I had and old gadget where I had to change the settings and this could only be made with a windows program.

WeatherLink weather template, v2 API

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

Read and write NMEA files, Openplotter, Signal K

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

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

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

macOS Big Sur on unsupported Mac

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

Victron VE.Direct with Raspberry Pi/Signal K

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

Raspberry, edit config or add files before boot

Image
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

Davis weather station, WeatherLink, PHP

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

Raspberry, restart network, or reboot, at ping failure

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