New CSS website integration - crestlinesoaring/ArduinoWeatherStation GitHub Wiki

Detailed request on what's needed, from our (MWX) end:

Some definitions first:

A) CSS means the website/server/host
http://crestlinesoaring.org

B) MWX means Marshall Weather Station

C) Data (String): MWX Weather and telemetrix data as desribed here:
https://github.com/crestlinesoaring/ArduinoWeatherStation/wiki/Data-String-Composition

D) Overlay: a text in fat red letters (diagonally?) superimposed onto MWX weather chart or MWX SouthCam or WMXNortCam

What is needed, by urgency

  1. Power Graph
    this:
    https://rawgit.com/titan550/djChart/master/index.html
    but hosted on CSS:
    http://crestlinesoaring.org/MWXpower
    or
    http://MWXpower.crestlinesoaring.org/

  2. Manually transmitted overlay
    2a) It is most important to add a (manual) overlay, so we can write a message like "repair in progrees" or "MWX down until 17. Jan 2020".
    We need to be able to manually send such a text (bu email or text) to CSS.
    An empty string would clear that overlay.

2b) Automated overlay
Please use CSV position 9 for overlay messages
https://github.com/crestlinesoaring/ArduinoWeatherStation/wiki/Power-management#staus-mode-stages
2a has precedence over 2b.

  1. Create new file with the first 18 fields of MWX's raw data only
    MWX sends the whole string to CSS as described here:
    https://github.com/crestlinesoaring/ArduinoWeatherStation/wiki/Data-String-Composition
    for instance
    wx20191111.dat
    07:31,11/11/2019,25.0,36,000,,,,,M,21w,,20.87,15,0210,13.7,0122,13.39,02:13,,,1.7,12.80,3185,EthConnFails=2,R

3a) Make a new file wx20191111.dat with the first 18 CSV fields only:
Please take above lines, as they come in, and save only CSV postion 1 until (including) position 18.
For instance, above line in wx20191111.dat becomes
07:31,11/11/2019,25.0,36,000,,,,,M,21w,,20.87,15,0210,13.7,0122,13.39
and is saved as a line in
wx20191111.dat
into
http://crestlinesoaring.org/MWXraw
or
http://MWXraw.crestlinesoaring.org/

  1. redirects
    please see
    https://css-tricks.com/redirect-web-page/
    Since MWX sends data to CSS, CSS knows it's IP .
    Though that IP is quite static, it did change in the past 13 month.
    We also have a secondary internet connection, in case the other first goes down.
    So we do need some type of dyndns to have access to our equipment on Marshall.
    This can be easily accomplished by a simple redirect on CSS.

Please use the [MWX-IP] to redirect calls:

4a)
http://www.crestlinesoaring.org/MWXNorthCam
to
[MWX-IP]:{Northcam port}

4b)
http://www.crestlinesoaring.org/MWXSouthCam
to
[MWX-IP]:{Southcam port}

4c)
http://www.crestlinesoaring.org/MWXBBCam
to
[MWX-IP]:{BBcam port}

4d)
Anything else going to
http://www.crestlinesoaring.org/MWX{:port}
should be forwarded to
[MWX-IP]{:port}