- π₯ With this code you can control your electronic things
- β‘οΈ Coded By @PySudo
Go to the config.json
file :
-
π connect a jumper wire to your pin then connect the jumper to your electronic thing , Now add your GPIO pin number to the
pins
list -
π if you want all pins in the
pins
list to be turned off when the program runs, change theauto_off_pins
value totrue
-
π you must add your Telegram bot token to the
token
variable in line 5 -
π add the SSID of your wireless router or access point to the
SSID
variable -
π add the password of your wireless router or access point to the
key
variable -
π the
API_URL
variable is optional. if Telegram is filtered in your country, you can use this variable. how is works? You need to deploy this API to a host or server (I use www.Deta.sh) then add your "API URL" to theAPI_URL
variable. But if you don't have problem with Telegram APIs, don't change theAPI_URL
value -
π Finally, add the user ID of your Telegram bot admins in the
ADMIN
list variable