sms2tg – Forward SMS to Telegram

Features

Forward SMS messages received from a CDMA module to Telegram, and much more.

  • Forward incoming SMS instantly to your Telegram
  • Forward incoming call notification to your Telegram
  • Send SMS via Telegram Bot commands
  • Auto-reply incoming call with prerecorded audio
  • Local SQLite database for SMS backup

Requirements

  • Python 3
  • Telegram bot token

Supported Devices

  • SIM2000C (tested)
  • other CDMA modules (not tested)

Installation

pip3 install -r requirements.txt
cp data.db.sample data.db
cp config.json.sample config.json

and edit config.json according to your own configuration.

Run

python3 main.py

TODO

  • DTMF support
  • Autoreply on incoming SMS
  • Multiple device support
  • Forward SMS to Mail, Slack, IRC, etc.
  • GSM module support

GitHub

https://github.com/mbyzhang/sms2tg

GNU/Light 😂

#一个简单到不能再简单的台灯

Background

由于寝室里照明不好,写作业浑身难受,加上通用技术课上需要做一个台灯。于是我就用 AutoCAD 画了图,然后用实验室的激光雕刻机雕刻的亚克力板,最后组装而成。

Details

  • 使用2.7mm厚的亚克力板
  • 使用LED灯带照明
  • 集成开关
  • 支持照明方向调节
  • 额定电压12v,额定功率约1w
  • 需要外部供电

BOM

  • 2.7mm 亚克力板
  • M3 圆头螺丝
  • 30mm M3 铜螺柱
  • M3 螺母
  • 12v LED 灯带
  • 船形开关
  • 5.5mm DC 插座
  • 导线

Downloads

DWG

Pictures