Civil Air Monitoring for Honest People from TERRA BASHKIRIA
- adapters: The adapters to retrieve Django ORMs
- api: FastAPI routers
- models: Django ORM
- schemas: FastAPI Pydantic models
- timeseries: InfluxDB retrieve
Mother project:
- https://github.com/opendata-stuttgart/feinstaub-map-v2
- https://github.com/opendata-stuttgart/feinstaub-api
Code:
data:
-
https://www.kaggle.com/shrutibhargava94/india-air-quality-data
-
https://openaq.medium.com/how-can-a-government-source-add-data-to-openaq-50b5d83ef13f
-
https://docs.openaq.org/ - api
-
https://github.com/openaq/openaq-fetch/issues?q=is%3Aissue+is%3Aopen+label%3A%22new+data%22
design:
used:
- https://github.com/leoncvlt/loconotion - Landing from Notion.so
Django+Fastapi:
-
Timeseries:
GEO:
- https://docs.djangoproject.com/en/3.1/ref/contrib/gis/
- https://raphael-leger.medium.com/django-handle-latitude-and-longitude-54a4bb2f6e3b
- https://github.com/developmentseed/geojson-pydantic
ActivityPub - create AIR federatioin servers:
Hardware:
Ubuntu server
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker ${USER}
newgrp docker
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt-get install rsync
sudo chown 472:472 .docker/grafana
add crontab -e
* * * * * /usr/bin/rsync -a -e ssh /home/rustam/bashair/dist/bashair/* reg:www/bashair.ru
Adsbexchange.com
GeoNames.org
Google.com
Mylnikov.org
Timezonedb.com
Wunderground.com
From BME280
Prel = Pabs + h/8.3
Prel is relative pressure (recalculating to the sea level) [hPa] Pabs is absolute pressure at the messurement place/site [hPa] h is altitude (height above sea level) [m]
https://www.paulox.net/2020/12/08/maps-with-django-part-1-geodjango-spatialite-and-leaflet/ https://realpython.com/location-based-app-with-geodjango-tutorial/
python manage.py dumpdata back> backup/fixtures/django.json python manage.py loaddata backup/fixtures/django.json https://github.com/developmentseed/geojson-pydantic https://django-map-widgets.readthedocs.io/en/latest/widgets/point_field_map_widgets.html