GithubHelp home page GithubHelp logo

blue's Introduction

blue

image

新的 PR(Issue) 来了来了来了!

树莓派 + 蓝牙热敏打印机 + 内网穿透 + GitHub Actions

如何在树莓派中设置蓝牙设备并找到地址

  1. bluetoothctl (以下步骤都在 ctl 中执行)
  2. agent on
  3. discoverable on
  4. scan on --> 这步找到蓝牙热敏打印机的地址
  5. trust ${地址}
  6. pair ${地址}

利用 rfcomm 连接

sudo rfcomm connect 1 ${地址} &

how to?

  • raspberry(3b+) 以上有蓝牙的版本 set up bluetooth
  • 内网穿透
  • 更改 raspberry_printer 中的 secret (为了安全)
  • 找到蓝牙设备地址
  • 利用 rfcomm 连接蓝牙设备
  • 启动 server
  • 设置 GitHub Actions
  • Enjoy it

raspberry server

  • pip install -r requirements.txt
  • nohup python3 main.py &
  • or use Gunicorn or uWSGI or others

GitHub Actions

  • change ./github/workflows/new_pr_bluetooth.yml to your own
  • add secret BLUE in your repo (Actions secrets)
  • Done or left some issues

参考资料

赞赏

  • 谢谢就够了
  • Just enjoy it.

blue's People

Contributors

yihong0618 avatar dev-bobsong 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.