Skip to content

Web app to monitor a commercial fleet and receive weather alerts at the vessel's locations.

License

Notifications You must be signed in to change notification settings

bogdanrbucur/Fleet-Weather

Repository files navigation

Fleet Weather

Work in progress.

The project's objective is to create a Node.js app that continously monitors all vessels in a commercial fleet for the weather at their position and displays it through a friendly user interface. The user would be able to set vessels of interest and maybe even receive notifications in case of upcoming bad weather.

Tools and npm modules used:

WIP Style is not definitive. JS on the page calls home periodically to an API that calls an async function to pull all ships from the database and then the table data is updated dynamically. Location, Position and Wind cells are clickable and link to Vessel Finder and Windy respectively.

It currently runs on my Raspberry Pi 4 on Ubuntu Server x64 when it doesn't crash due to a Chromium memory leak. MongoDB runs locally on the Raspberry Pi.

MongoDB only supports x64 architecture and thankfully there is a Nodejs10 version that runs on ARM64.

In the current dev environment there's a crontab job @reboot sleep 10 && /home/ubuntu/_projects/Fleet-Weather/fleetweather.sh that executes the bash script which calls the npm script forever set in package.json to ensure the app is up and running after the weekly Raspberry Pi restart.