Sign inSign up

mykoladanylov/sms-warn

By mykoladanylov

•Updated over 6 years ago

Sends SMS in case of inet IP changed.

Image
0

446

mykoladanylov/sms-warn repository overview

⁠sms-warn

It sends SMS to admin if an IP in your home/office has changed.

⁠What is this service for?

Could be helpful in case you need to know the fact of your intranet is started using reserve channel of internet -provider.

⁠Additional functionality

it informs you (via SMS) about loosing internet connection at all, as soon as it get back.

⁠How to use
  • Get registration on scms.ua⁠, and get login/password to send SMS via the smsc.ua service. Notice that sending sms can be charged there.
  • Start a sms-warn docker-container on any intranet computer/router, which is working continuously. Use login and password.
  • Receive SMS on certain phone number: IP changed; internet lost&found.
  • SMS example: "12:50:58+(LOST) .. 12:51:08+(FOUND) .. 12:51:08 (RESERVE IP) 32.134.12.68"
⁠Container start example
docker run -d \
--name=sms-warn \
--restart=always \
--env MAIN_IP=31.134.127.101 \
--env TIMEOUT=15 \
--env DIG_RETRY=2 \
mykoladanylov/sms-warn \
380685739555 n.dany mscu%236

where:

  • MAIN_IP - the main IP of your intranet. Used for inform you human-friendly. Optional
  • TIMEOUT - timeout between checking current IP, in seconds. Optional, it uses "15" by default.
  • DIG_RETRY - how many times it needs to try getting an IP before assumes that there is no internet. Optional, it uses "4" by default.
  • 380385739555 - replace to your SMS receiver phone number
  • n.dany - replace to your login string to smsc.ua
  • mscu%236 - password string to scms.ua. NOTE: you need to url-encode url-unsafe characters! On the example an "#" replaced to "%23".

Tag summary

Content type

Image

Digest

Size

9.8 MB

Last updated

over 6 years ago

docker pull mykoladanylov/sms-warn