All Projects → yi-yun → raspi-chatrobot

yi-yun / raspi-chatrobot

Licence: other
基于树莓派的微信机器人

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to raspi-chatrobot

wx robot example
实验楼课程 《利用微信API将你的微信变为聊天机器人》 直播视频相关代码
Stars: ✭ 35 (+6.06%)
Mutual labels:  robot, itchat
Everydaywechat
微信助手:1.每日定时给好友(女友)发送定制消息。2.机器人自动回复好友。3.群助手功能(例如:查询垃圾分类、天气、日历、电影实时票房、快递物流、PM2.5等)
Stars: ✭ 8,688 (+26227.27%)
Mutual labels:  itchat, tuling
Itchat
A complete and graceful API for Wechat. 微信个人号接口、微信机器人及命令行微信,三十行即可自定义个人号机器人。
Stars: ✭ 21,935 (+66369.7%)
Mutual labels:  robot, itchat
Wechat Admin
Wechat Management System
Stars: ✭ 1,716 (+5100%)
Mutual labels:  itchat, tuling
diffbot
DiffBot is an autonomous 2wd differential drive robot using ROS Noetic on a Raspberry Pi 4 B. With its SLAMTEC Lidar and the ROS Control hardware interface it's capable of navigating in an environment using the ROS Navigation stack and making use of SLAM algorithms to create maps of unknown environments.
Stars: ✭ 172 (+421.21%)
Mutual labels:  robot, raspberry
emanual
Welcome to the ROBOTIS e-Manual ! The e-Manual page rendered from this repository is available for everyone. Just simply click the provided link below :)
Stars: ✭ 105 (+218.18%)
Mutual labels:  robot
rpi-backup
raspberry pi backup,树莓派系统备份,最小镜像备份
Stars: ✭ 213 (+545.45%)
Mutual labels:  raspberry
yamete
Yamete - Hentai downloader in PHP CLI - Easy site downloader PHP system
Stars: ✭ 63 (+90.91%)
Mutual labels:  raspberry
raspberry-pi-kiosk
A simple set of commands to set up a raspberry pi for use as a stand alone kiosk screen
Stars: ✭ 45 (+36.36%)
Mutual labels:  raspberry
wor-flasher
Legal utility that runs on RPiOS to flash another SD card with Windows 10/11
Stars: ✭ 451 (+1266.67%)
Mutual labels:  raspberry
turtlebot3 msgs
ROS msgs package for TurtleBot3
Stars: ✭ 53 (+60.61%)
Mutual labels:  robot
slackbot-destroyer
📣 ❌ Slack integration that can destroy all incoming messages from Slackbot.
Stars: ✭ 33 (+0%)
Mutual labels:  robot
blockly
Otto Blockly; a fully integrated graphical programming for any type of Arduino projects, including robots, ready to install in your computer, it works offline and also online
Stars: ✭ 85 (+157.58%)
Mutual labels:  robot
human robot collaboration
Yet another repo for the baxter collaboration task.
Stars: ✭ 18 (-45.45%)
Mutual labels:  robot
scarecrow
A Raspberry Pi powered, distributed (edge) computing camera setups that runs a Tensorflow object detection model to determine whether a person is on the camera. A plugin model allows actions based on the detection, such as playing audio, turning on lights, or triggering an Arduino.
Stars: ✭ 87 (+163.64%)
Mutual labels:  raspberry
Ramudroid
Ramudroid, autonomous solar-powered robot to clean roads, realtime object detection and webrtc based streaming
Stars: ✭ 22 (-33.33%)
Mutual labels:  robot
ros webconsole
🌐 A ROS WEB console to control remotely your robot. Based with robotwebtools.
Stars: ✭ 71 (+115.15%)
Mutual labels:  robot
web wechat api
基于 Itchat&Flask的 Web 微信接口
Stars: ✭ 25 (-24.24%)
Mutual labels:  itchat
wb-toolbox
Simulink toolbox to rapidly prototype robot controllers
Stars: ✭ 20 (-39.39%)
Mutual labels:  robot
maddux
A Python Robot Arm Toolkit and Simulation Environment for Education
Stars: ✭ 25 (-24.24%)
Mutual labels:  robot

IMG_5686.jpg

基于树莓派的微信机器人

写在前面

本项目采用的是 itchatpython3 的模块,已更新失效的 API,更新过程见这篇文章

准备材料

  • 搭载 Raspbian 的树莓派3 (只要是带有 python3 的 Linux 的系统都可以)
  • 微信个人号 2 个(一个需要登录 WebService ,另一个用来使用)
  • DHT11(温湿度传感模块)、LED 灯(两者非必须)
  • 音箱一台(耳机也行)
  • 腾讯云实名认证账号(用于图床功能非必须,个人喜好才搭建)

搭建环境

  • 用 PuTTY 或其他远程工具远程登录树莓派,先确认有 python3 环境
sudo pip3 install itchat --upgrade
sudo pip3 install requests BeautifulSoup4
sudo apt-get install mplayer #很多人推荐的音乐播放器,感觉还不错
  • 有 DHT11 模块的话还需输入
sudo apt-get install build-essential python-dev
sudo git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo python3 setup.py install  
  • 需要图床功能的微信机器人,可以自己搜索相关图床的 API
    • 本人用的是腾讯云对象存储,搭建本地即可
    • 也可以使用官网提供的 Python SDK ,制作成模块
    • 不需要图床的朋友可以忽略这里,但上传图片会报错

如何运行

git clone https://github.com/yi-yun/raspi-chatrobot.git
git clone -b master https://github.com/yi-yun/raspi-chatrobot.git #有 DHT11 传感模块和 LED 灯的人输入这个命令

cd raspi-chatrobot
sudo python3 Robot.py #若想后台运行需要运行 sudo apt-get install screen 安装 screen ,然后运行 screen sudo python3 Robot.py &

用微信扫码登录命令行中的二维码
登录成功表示服务端部署完毕
在另一个微信号向服务端微信号发送功能即可获取功能列表,进行愉快地玩耍

演示视频

B站
YouTube

相关链接

小豆机器人
图灵机器人
itchat
AdafruitDHT

写在后面

上述为使用方法
亲测在 Raspbian (stretch) 上成功运行
具体代码以及爬坑过程可详见我的这篇文章
对此感兴趣的小伙伴可以私信或邮件我一起探讨学习
欢迎各位朋友star、fork 和 Issue


下学期还有一门课我打算结合MQTT做树莓派机器人V2.0,希望大家不吝赐教

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].