AllSky7 Health Checker Manual (Rev 1.1)

Components

The health checker consists of the following hardware components:

  1. NodeMCU ESP8266 micro-controller with 128x64 pixel display, a WiFi chip and Mini-USB or USB-C connector
  2. Volume control
  3. Mute button
  4. Mode switch button
  5. Config + switch
  6. Config - switch
  7. Buzzer
  8. External power supply connector
  9. External power button
  10. Status LEDs

Purpose

The purpose of the device is to determine and display the status of AllSky7 cameras:

The status is determined from the following camera properties:

When any of these values is outside a certain defined range for a defined time, the status LEDs (10) will switch from green (ok) to yellow (warning) or red (error). In red mode, the buzzer (7) is giving an alert tone. You can control the volume of the buzzer (2), or mute it completely with the corresponding button (3).

Operating Modes

The device has two basic modes, which are select with the mode switch (4).

Power Supply

You can power the device either via the USB port or via the external power supply connector (8) with 7..12V. Do not power the device with both sources in parallel, as it may damage the micro controller. You can switch on/off the external power supply with the power button (9).

Startup

When power is supplied, the device will show the welcome screen for a few seconds. The LEDs are blinking and the buzzer is beeping. Next the device is load the configuration (if any is saved in the device) and try to connect to a WiFi.
In local mode, the device will scan for all reachable WiFis with SSID AMSxxx and try to connect with a pre-defined password. If the connection is successful, the device will try to load a configuration file from the system. Alternatively, all configuration can later be set manually on the device.
In global mode, the device will try to connect to any of the WiFis which are configured, and connect with the defined passphrase.
When the connection was successful, the device will cycle through all detected WiFis (in local mode) resp. through all configured cameras (in global mode) and determine the status of each camera.
Then the status is displayed for a defined number of cycles, whereby each camera status is displayed for a defined number of seconds. At the end, the loop starts again and the device is cycling through all cameras to determine the status.

Display

In the top yellow line, the display shows the current activity of the device. When the status is displayed, it gives the name of the camera, the status (OK, WARN, ERROR) and the number of cycles that the status has been like this. Below the line you find detailed information. When the status is red, the buzzer is giving an alarm. The current cycle and remaining display time is shown in the lower right corner.

Configuration File

The easiest way to configure the device is via a configuration file config.csv, which needs to be stored on any of the connected cameras in the home folder of user ams. It will be loaded automatically when the device connects to the camera in local mode.

Here is a sample configuration file.

# configuration file for AllSky7 Health Checker
version,1.0
wifi,My WiFi 1,My Passphrase 1
wifi,My WiFi 2,My Passphrase 2
camera,AMS16.allsky7.net,443,/health/txt
camera,AMS35.allsky7.net,443,/health/txt
cpu,5,10
disk,95,99
file,1,2
error,1,3
display,5,3
freq,500
bright,64

Everthing behind a hash sign (#) is regarded as remark and omitted. The following parameters can be configured:

Manual Configuration

By pressing both config buttons (5) and (6) in parallel for ~2s (long), you can enter the configuration mode. There you can cycle between the following configuration parameters:

  1. Check WiFi - all configured WiFis will be displayed and you can decide if you want to keep or delete them
  2. Get WiFi - all currently reachable WiFis will be displayed, and you can enter a password if you want to add that WiFi to the configuration
  3. Check camera - all configured cameras will be displayed and you can decide if you want to keep or delete them
  4. Get camera - you can add the hostname, port, and service URL of new cameras
  5. CPU Warning - configure the CPU load warning level
  6. CPU Error - configure the CPU load error level
  7. Disk Warning - configure the disk quota warning level
  8. Disk Error - configure the disk quota level
  9. File Warning - configure the stream recording warning level
  10. File Error - configure the stream recording error level
  11. Warning Count - configure the number of consecutive warning states before a warning is displayed
  12. Error Count - configure the number of consecutive error states before an error is displayed
  13. Refresh - configure the time, how long a camera status is displayed
  14. Cycle - configure the number of cycles that all camera stati are displayed, before a new status is determined
  15. Frequency - configure the frequency of the buzzer
  16. Brightness - configure the LED brightness

Pressing the config - button (6) shortly will lower the displayed values up to a defined minimum value. Pressing the config + button (5) shortly will increase the displayed value up to a defined maximum values.
Pressing the config - button (6) longer will jump to the previous configuration item, pressing the config + button (5) longer will jump to the next item.
When entering a text, the same action will jump to the previous or next character. Leave the text edit mode by pressing both button longer (~2s). Leave the whole configuration menu in the same way.
You can reset (delete) all stored configurations by pressing both button for >10s.

Firmware Upgrade

To upgrade the firmware, you need to download the ESP-Flasher tool to your Windows PC (alternatively directly from Github), and the new firmware file. Connect the device to the USB port of your computer and start the flash tool. Select the COM port of the device and browse for the new firmware file on your PC. Click the flash ESP button to upload the new firmware.