Allow to store PM2.5 sensor data for different locations
Overview
Now the location constraint (allow data only from Bishkek region) is hardcoded in Telegram Bot: https://gitlab.com/pheix-research/raku-dossier-prototype/-/blob/main/bin/trivial-bot.raku#L787
We have 2 another locations (are spinning cause of no data providers):
-
https://pheix.org/embedded/page/ulaganbagator,
ExtensionEthelia_Ulaganbagatortable; -
https://pheix.org/embedded/page/south-deadend,
ExtensionEthelia_SouthDeadendtable.
Task
Add a mapping to bin/conf/dossier.yaml configuration file with the details about allowed locations. Smth like:
locations:
- name: Bishkek
route: /api/ethelia/event/store
longitude: 74.59
latitude: 42.85
- name: Southern-Deadend-5
route: /api/ethelia/event/store/ExtensionEthelia_SouthDeadend
longitude: 55.99
latitude: 37.80
...
Reference
- Route to store data in specific table: https://gitlab.com/pheix/raku-ethelia/-/blob/main/custom-config/storage/ExtensionEthelia/config.json#L74
- Route to search data in specific table: https://gitlab.com/pheix/raku-ethelia/-/blob/main/custom-config/storage/ExtensionEthelia/config.json#L92