• Stars
    star
    305
  • Rank 136,879 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created about 2 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

blue

image

pr.mp4

新的 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.

More Repositories

1

bilingual_book_maker

Make bilingual epub books Using AI translate
Python
7,286
star
2

xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
Python
6,039
star
3

running_page

Make your own running home page
Python
3,565
star
4

Kindle_download_helper

Download all your kindle books script.
Python
2,612
star
5

GitHubPoster

Make everything a GitHub svg poster and Skyline!
Python
1,774
star
6

gitblog

People Die, but Long Live GitHub
Python
1,386
star
7

tg_bot_collections

collections of yihong0618's telegram bot
Python
557
star
8

epubhv

Make your epub books vertical or horizontal.
Python
454
star
9

tg_bing_dalle

Telegram bing bot DALL-E 3
Python
418
star
10

iBeats

Apple Watch 心率数据采集 - Your Soul, Your Beats!
Python
279
star
11

SunoSongsCreator

About High quality songs generation by https://www.suno.ai/. Reverse engineered API.
Python
276
star
12

2021

关于我的 2021 的一些记录。
Python
274
star
13

2022

2022 gogogo
Python
270
star
14

2023

Another year
Python
204
star
15

iWhat

What is it? Using AI Inspired by pyWhat
Python
190
star
16

shanbay_remember

扇贝自动发送今日新词到 telegram
JavaScript
189
star
17

duolingo_remember

Automatically send new words from duolingo to telegram
Python
166
star
18

2020

2020计划,喜欢的文章,博客,以及其它
C
137
star
19

github-readme-stats

generate my_github status using GitHub Actions
Go
134
star
20

vscode-gcores

VSCode 玩转机核
TypeScript
127
star
21

dalian-IT

『大连互联网』大连基本没啥互联网
114
star
22

gaycore

use command-line to listen gadio
Python
113
star
23

klingCreator

About High quality video and image generation by https://klingai.kuaishou.com and https://klingai.com/ Reverse engineered API.
Python
77
star
24

IdeoImageCreator

About High quality image generation by ideogram. Reverse engineered API.
Python
60
star
25

2024

Change
Python
42
star
26

yihong0618

41
star
27

kai_xin_ci_chang

开心词场帮助程序
Python
33
star
28

nbnhhsh-cli

「能不能好好说话?」 cli 版本
Python
31
star
29

gcores_calendar

gcores audios calendar
JavaScript
30
star
30

pengdu_helper

网易云歌词自动生成《捧读》用的 epub, 帮助学习。(GitHub Actions + shortcuts + telegram)
Go
29
star
31

my_kindle_stats

Show my read on kindle this year
Python
24
star
32

Runtastic

Download all your Runtastic (Adidas Running) activities save to gpx
Python
21
star
33

running_skyline

Generate a 3D Skyline in STL format from your running App
Python
20
star
34

blog

blog
JavaScript
14
star
35

github-readme-stats-server

Server for github-readme-stats
HTML
14
star
36

Python365

Python365天精进计划
Python
11
star
37

run

Python
10
star
38

resume

resume
HTML
4
star
39

remote_mp3_duration

Estimate the duration in seconds of the remote MP3 file without full download(python version)
Python
3
star
40

github_upstream_script

Using script to fetch upstream and sync
Python
2
star
41

500

learn 500 lines from 500lines-rewrite
1
star
42

edocteel001

100days leetcode
JavaScript
1
star