ArchiveSW - Data Archive Storage
for Smart Weather Station
Home | About | Panel

This package is written and tested to run on a Raspberry Pi but may run on devices.

The application will listen on port 50222 for UDP data from the Smart Weather Station Hub. The data will be stored in a MariaDB (SQL) database. The packets are stored in the following tables:

PacketTable
device_statusDeviceStatus
hub_statusHubStatus
obs_airAirObservation
obs_skySkyObservation
evt_precipPrecipEvent
evt_strikeStrikeEvent
rapid_windRapidWind

There are also scripts that will collect and store the High, Low and event count for devices. The data is stored in the following tables:

SummaryTable
Air DevicesDailyAir
Air/SkyDeviceEvents
Firmware UpdateFWUpdate
HubHubEvents
Sky DevicesDailySky
SensorDailySensor

There are also scripts that will collect and store archival data from WeatherFlow. The data is stored in the following tables:

ArchiveTable
Air ArchiveAirBackfill
Sky ArchiveSky Backfill
*_debugZ_debug
Duplicate UDP packetZdupe
Unknown UDP packetZudp

IOTable
PiXpiio

Main Applications

  1. Archive (archive.js) - The main application that captures and stores the data in SQL. It also writes activity to log files and writes events to filenames.
  2. Alert (alert.js) - This will send alerts via Pushover or Prowl.
  3. Server (server.js) - Edit the configuration file from a web page. Restart any of the applications as needed.
  4. Piio (piio.js) - Accept inputs for three closed contact switches and has five LED outputs for instant status.
  5. Panel (panel.js) - Allows you to use any device with a web brower to view your current data. This is initially designed to work with the RPi 7" touchscreen. However, it is html and may be adapted for any size screen.
Alerts
------
Hub reboot
Device reboot
Device offline / online
Battery voltage low
Battery replacement now.
Sensor failure after x consecutive times.

The installation takes less than 30 minutes on a new Pi with an empty SD Card. The instructions are located at:

Installation instructions

The quickest method to install ArchiveSW is to run this script from a terminal window:
bash -e <(wget -qO - http://fsoft.com/archivesw/script/install.sh)

To turn the RPi into a Wi-Fi access point:
bash -e <(wget -qO - http://fsoft.com/archivesw/script/accesspoint.sh)

To keep your RPi updated I suggest you run this script once a week
bash -e <(wget -qO - http://fsoft.com/archivesw/script/updaterpi.sh)

If you have any errors contact me with the error and I will help you get back up.