Posts

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.

SIGNL4, automated alerting with free mobile app

Image
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

Ring doorbell install and relay

Image
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 Internal doorbells No internal doorbell but charging the battery External relay, triggering "anything" Wireless relay Ring Device manuals are found here .

Homebridge made simple, HOOBS

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

Raymarine AXIOM and NMEA0183

Image
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 konverte r SeaTalk NG, NG to N1 konverte r

AIS dispatcher, stand alone

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

MySQL and NodeRed

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

Raspberry fan control, Node-Red

Image
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