https://github.com/eeddaann/raspberry-ip
telegram bot which sends raspberry pi's IP
https://github.com/eeddaann/raspberry-ip
Last synced: over 1 year ago
JSON representation
telegram bot which sends raspberry pi's IP
- Host: GitHub
- URL: https://github.com/eeddaann/raspberry-ip
- Owner: eeddaann
- Created: 2019-05-08T13:22:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-08T15:27:20.000Z (about 7 years ago)
- Last Synced: 2025-01-29T05:28:26.800Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# raspberry-IP
telegram bot which sends raspberry pi's IP
## Setting up:
- Download the script via:
```wget https://raw.githubusercontent.com/eeddaann/raspberry-IP/master/send_ip.sh```
- Replace the **< TOKEN >** with the token you've got from the botfather
- Replace the **< CHAT_ID >** with the real chat ID:
- send message to the bot
- open the following URL in your web-browser: https://api.telegram.org/bot/getUpdates (replace with your bot token).
- copy the value of 'id'
- Change the permissions of script:
```sudo chmod 755 send_ip.sh```
- Execute the script to verify that it works:
```./send_ip.sh```
- To run the script on boot execute:
```sudo mv send_ip.sh /etc/init.d/send_ip.sh && sudo update-rc.d send_ip.sh defaults```