{"id":14036841,"url":"https://github.com/get2abhi/raspi_ip_address_telegram_bot","last_synced_at":"2025-07-27T04:32:21.089Z","repository":{"id":99188204,"uuid":"157349635","full_name":"get2abhi/raspi_ip_address_telegram_bot","owner":"get2abhi","description":"A raspberry pi telegram bot to send you the ip address of raspi without the need of monitor","archived":false,"fork":false,"pushed_at":"2018-11-13T10:05:44.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-13T03:05:59.385Z","etag":null,"topics":["raspberry-pi","raspi","telegram-bot"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/get2abhi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-11-13T08:56:11.000Z","updated_at":"2023-09-05T01:11:11.000Z","dependencies_parsed_at":"2023-04-25T09:01:33.887Z","dependency_job_id":null,"html_url":"https://github.com/get2abhi/raspi_ip_address_telegram_bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get2abhi%2Fraspi_ip_address_telegram_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get2abhi%2Fraspi_ip_address_telegram_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get2abhi%2Fraspi_ip_address_telegram_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/get2abhi%2Fraspi_ip_address_telegram_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/get2abhi","download_url":"https://codeload.github.com/get2abhi/raspi_ip_address_telegram_bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227762290,"owners_count":17816004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["raspberry-pi","raspi","telegram-bot"],"created_at":"2024-08-12T03:02:16.198Z","updated_at":"2024-12-02T16:30:46.357Z","avatar_url":"https://github.com/get2abhi.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# raspi_ip_address_telegram_bot\nA raspberry pi telegram bot to send you the ip address of raspi without the need of monitor\nsdasd\n\n## Generating Telegram Bot Token\n\n1. First you need to install and setup telegram on your mobile phone or laptop from https://telegram.org/\n2. Next search for the BotFather bot on telegram by searching `@BotFather` or by visiting https://telegram.me/BotFather \n3. Send `/newbot \u003cyour new bot name\u003e` command to BotFather and it will create a new bot by that name\n4. Send `/token` command to get a auth token for this bot\n\n## Using Telegram Bot Token\n\n1. Replace token in line 10 of myaddress.py with the token received from step 4 above\n\n## Running the bot\n\n1. Start chatting with your new bot by sending some message.\n2. Make sure the path to the log file exists in line 4 of myipaddress.py\n3. Install some dependecies \n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`sudo apt-get install libffi-dev libssl-dev`\n\n4. Install telegram library for python\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`pip install python-telegram-bot netifaces`\n\n4. Just run the bot with `python myipaddress.py` and you should be getting the ip address of the raspi\u003cbr\u003e\u003cbr\u003e\n`Hey Dude. My new IP Address is 192.168.1.111`\n\n## Putting the script on boot\n\n1. Open Crontab using `crontab -e`\n2. Add an entry at the bottom like this (Make sure the script exists on the path)\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`@reboot sleep 60 \u0026\u0026 python dev/scripts/myipaddress.py \u0026`\n\n3. Send a test message to the bot everytime when you need the ip address before boot.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fget2abhi%2Fraspi_ip_address_telegram_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fget2abhi%2Fraspi_ip_address_telegram_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fget2abhi%2Fraspi_ip_address_telegram_bot/lists"}