Skip to content
A notifier that forward your sms from chip sim800c.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
resources
routes
.env.example.json
.gitignore
.gitmodules
LICENSE
README.md
artisan.go
go.mod
main.go

README.md

SMS Serial Chip Forwarder

> ./sms-notifier sms:read /dev/ttyUSB1
INFO[2019-08-21T02:44:49+08:00] Send Bytes                                    bytes="ATE0\r\n" length=6
INFO[2019-08-21T02:44:49+08:00] Send Bytes                                    bytes="AT+CMEE=1\r\n" length=11
INFO[2019-08-21T02:44:49+08:00] Send Bytes                                    bytes="AT+CMGF=0\r\n" length=11
INFO[2019-08-21T02:44:49+08:00] Listening                                     com_port=/dev/ttyUSB1
INFO[2019-08-21T02:44:49+08:00] Incoming data                                 data=OK

How To Use

  1. Plug in your USB chip
  2. find your serial port name -> ls -l /dev/ttyUSB*
> ls -l /dev/ttyUSB*
crw-rw----. 1 root dialout 188, 1 8月  21 02:47 /dev/ttyUSB0
  1. Copy .env.example.json -> .env.json
  2. Save your pushover config in .env.json
  3. go run artisan sms:read /dev/YOUR-SERIAL, such as /dev/ttyUSB0

Binary WIP

Implement your own NOTIFIER

/app/logics/phone/interfaces/notifier.go

package interfaces

type Notifier interface {
	Notify(sender, content string) error
}

Thanks

You can’t perform that action at this time.