This script collects the current predictions and merges them with stats from the Lageso. The combined datasets are uploaded to an S3 bucket for easy access.
Two digits (besides 10) with prediction. Even numbers (besides 10) with algae.
State-ID | Color | Algae | Prediction | Sign |
---|---|---|---|---|
1 | Green | 0 | 0 | Check |
11 | Green | 0 | 1 | Check* |
2 | Green | 1 | 0 | A |
12 | Green | 1 | 1 | A* |
3 | Orange | 0 | 0 | ! |
13 | Orange | 0 | 1 | !* |
4 | Orange | 1 | 0 | A |
14 | Orange | 1 | 1 | A* |
5 | Red | 0 | 0 | X |
15 | Red | 0 | 1 | X* |
6 | Red | 1 | 0 | A |
16 | Red | 1 | 1 | A* |
7 | ||||
8 | Grey | 1 | 0 | A |
9 | Grey | 0 | 0 | k.A. |
10 | Orange | 0 | 0 | k.A. |
Even though there are lots of states, the ruling of states is rather simple:
IF prediction is "mangelhaft" AND lageso is better than "mangelhaft" THEN turn color to "orange" and keep the algae setting from lageso.
This means, if lageso is worse than prediction, keep lageso. And always keep algae settings. Predictions can only turn a green into an Orange, red can only be flagged by lageso.
For each bathing spot with predictions we have three IDs. Those three IDs help merge the Lageso's system, the prediction system and the old website's system. At some point the latter could be replace by either the prediction IDs or the lageso IDs.
{
"predictions":[
[PREDICTION_ID, LAGESO_ID, OLD_WEB_ID]
]
}
Thanks goes to these wonderful people (emoji key):
Fabian Morón Zirfas 💻 📖 |
Sebastian Meier 💻 📖 |
Lucas Vogel 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!