GithubHelp home page GithubHelp logo

fortunto2 / bashair Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 4.0 7.11 MB

Air Monitoring for Bashkiria

Home Page: https://map.bashair.ru

License: MIT License

Dockerfile 0.43% Python 69.73% Makefile 0.18% Shell 1.87% Jupyter Notebook 4.70% JavaScript 17.12% CSS 1.86% HTML 2.24% Vue 1.89%
django fastapi python

bashair's Introduction

BashAir

Civil Air Monitoring for Honest People from TERRA BASHKIRIA

Backend dirs Structure

  • adapters: The adapters to retrieve Django ORMs
  • api: FastAPI routers
  • models: Django ORM
  • schemas: FastAPI Pydantic models
  • timeseries: InfluxDB retrieve

Inspired

Mother project:

Code:

data:

design:

used:

Django+Fastapi:

GEO:

ActivityPub - create AIR federatioin servers:

Hardware:

install

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

Pydantic models

TODO

Adsbexchange.com
GeoNames.org
Google.com
Mylnikov.org
Timezonedb.com
Wunderground.com

Preasure

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]

MAP

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/

backup

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.