Giter Site home page Giter Site logo

birbs's Introduction

birbs

howto start

1. download OS for orangepi 3 lts

ubuntu (preference)

armbian

2. install on emmc

https://jumptuck.com/blog/2023-02-13-install-linux-orange-pi-3-lts-emmc/

nand-sata-install

3. setup wifi

sudo nmcli dev wifi connect %yourwifissid% password '%yourwifipass%'

nmcli connection modify %yourwifissid% connection.autoconnect yes
nmcli device set wlan0 autoconnect yes

4. setup dtb overlays for spi

in /boot/orangepiEnv.txt

overlays=spi-spidev1
param_spidev_spi_bus=1
param_spidev_spi_cs=0
param_spidev_max_freq=100000000

examples with dtc and fdtdump/fdtput (to modify something):

sudo apt install device-tree-compiler
sudo fdtput sun50i-h6-orangepi-3-lts.dtb /soc/spi@5011000 status -t s "okay"
sudo fdtdump sun50i-h6-orangepi-3-lts.dtb
dtc -I dtb -O dts sun50i-h6-orangepi-3-lts.dtb

spi access

# create file: /etc/udev/rules.d/50-spi.rules
# with content:

SUBSYSTEM=="spidev", GROUP="spiuser", MODE="0660"

# next:
sudo groupadd spiuser
sudo adduser "$USER" spiuser

5. install docker

sudo apt install ca-certificates curl gnupg lsb-release
# gpg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# repo
echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# install
sudo apt update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker $USER

6. install arduino-cli

additional

sudo apt-get install libpq-dev
sudo apt-get install python3-psycopg2

почта

https://stackoverflow.com/questions/68881500/how-to-send-an-email-using-python

background tasks

https://fastapi.tiangolo.com/tutorial/background-tasks/ https://testdriven.io/tips/079fd0c1-3a6c-4dd9-a3fe-807e0c6b0935/ https://stackoverflow.com/questions/67599119/fastapi-asynchronous-background-tasks-blocks-other-requests

fastapi users

https://fastapi-users.github.io/fastapi-users/

datepicker

https://getdatepicker.com/6/functions.html

http://arduino.zl3p.com/infa/pins_nano

https://github.com/vsergeev/python-periphery https://gist.github.com/chrismeyersfsu/3317769 https://forum.arduino.cc/t/spi-slave-mode-example-code/66617

https://github.com/orangepi-xunlong/wiringOP https://micro-pi.ru/%D0%B2%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D1%88%D0%B8%D0%BD%D1%8B-spi-%D0%BD%D0%B0-orange-pi/#_SPI__414_Ubuntu_1804

todo:

  • fastapi_users сделать аутентификацию:
  • развернуть postgress бд
  • завернуть api в контейнер:
  • фоновый процесс который по расписанию работает
  • логгирование информации через телеграм бота
  • крутую ui для настройки всяких штук (ага щас)

birbs's People

Contributors

meikuam avatar

Watchers

James Cloos avatar  avatar

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.