Giter Site home page Giter Site logo

iot-work's Introduction

■ 環境構築

# ラズパイの設定
sudo raspi-config nonint do_ssh 0  # ssh有効化
sudo raspi-config nonint do_spi 0  # SPI通信有効化
sudo raspi-config nonint do_i2c 0  # I2C通信有効化
sudo raspi-config nonint do_serial 0  # シリアル通信有効化
sudo raspi-config nonint do_camera 0  # カメラ有効化 (現状使ってないけど一応)
sudo raspi-config nonint do_rgpio 0  # リモートでのGPIO操作を有効化 (現状使ってないけど一応)

# 設定の確認
sudo raspi-config nonint get_ssh
sudo raspi-config nonint get_spi
sudo raspi-config nonint get_i2c
sudo raspi-config nonint get_serial
sudo raspi-config nonint get_camera
sudo raspi-config nonint get_rgpio

# pigpioのインストール
sudo apt update
sudo apt install pigpio

# pigpioデーモン起動
sudo systemctl enable pigpiod
sudo systemctl start pigpiod

# --- --- --- pigpiodの起動コマンドをいじりたい人は --- --- ---
# vim で編集したいので
sudo update-alternatives --set editor /usr/bin/vim.basic

# pigpiodの起動オプション
pigpiod -h

# ユニットファイルの編集
sudo systemctl edit pigpiod
# --- --- --- --- --- --- --- --- --- --- --- --- --- ---

# ライブラリインストール
python -m venv .venv
pip install -r requirements.txt

コマンド実行

# ヘルプ
./bin/cli --help

# 温度センサー
./bin/cli --debug temp-pigpio --chip-select 0 --channel 0

利用しているライブラリ

iot-work's People

Contributors

ng3rdstmadgke avatar

Watchers

 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.