开源项目 `record-and-replay-RF-remote` 使用教程

开源项目 record-and-replay-RF-remote 使用教程

record-and-replay-RF-remoterecord & replay RF signal with Raspberry Pi & RTL-SDR dongle (optional) integrate with Home Assistant, Alexa and Google Home项目地址:https://gitcode.com/gh_mirrors/re/record-and-replay-RF-remote

1. 项目的目录结构及介绍

record-and-replay-RF-remote/
├── docs/
│   └── 项目文档和说明
├── LICENSE
├── README.md
├── configuration.yaml
└── rpitx/
    └── 相关执行文件和脚本
  • docs/: 包含项目的文档和说明。
  • LICENSE: 项目的许可证文件。
  • README.md: 项目的主说明文件。
  • configuration.yaml: 项目的配置文件。
  • rpitx/: 包含执行RF信号录制和回放的脚本和文件。

2. 项目的启动文件介绍

项目的启动文件主要位于 rpitx/ 目录下,具体包括:

  • sendiq: 用于发送IQ数据的脚本。
  • rtlmenu.sh: 用于通过GUI界面操作RTL-SDR设备的脚本。

使用示例:

sudo /rpitx/sendiq -s 250000 -f 868.0000e6 -t u8 -i /rpitx/fan-on-button.iq

3. 项目的配置文件介绍

项目的配置文件为 configuration.yaml,主要用于配置Home Assistant的命令行开关。

示例配置:

command_line:
  - switch:
      name: fan_on
      unique_id: fan_on
      command_on: "ssh -i /config/id_rsa -o StrictHostKeyChecking=no -q pi@<YOUR PI IP ADDRESS> sudo /rpitx/sendiq -s 250000 -f 868.0000e6 -t u8 -i /rpitx/fan-all-on.iq"
      command_off: off
      command_state:

该配置文件定义了一个命令行开关,用于控制风扇的开启和关闭。

record-and-replay-RF-remoterecord & replay RF signal with Raspberry Pi & RTL-SDR dongle (optional) integrate with Home Assistant, Alexa and Google Home项目地址:https://gitcode.com/gh_mirrors/re/record-and-replay-RF-remote

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汤怡唯Matilda

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值