Agrothon

Agrothon

A Farm Monitoring Bot

PyPI PyPI - Python Version PyPI - Wheel PyPI - Implementation PyPI - Downloads GitHub license GitHub issues GitHub forks GitHub stars

Introduction

Installation

Variables in agrothon.env

Variable Value Example Required Description
- - Bot Configuration - -
TELEGRAM_APP_ID Telegram API APP ID 1234567 True Can be obtained from Telegram
TELEGRAM_API_HASH Telegram API Hash 022d29afxxxxxxxxf825980a7974ec42 True Can be obtained from Telegram
BOT_TOKEN Telegram Bot Token 123456:abcdefghij True Can be obtained from Bot Father
API_BASE_URL Api base Host URL https://mysite.com/ True Must be host Without port (i.e Port 80/443* only)
ALERT_CHANNEL_ID Alert channel ID -100123456789 True Intruder Alerts will be posted to this channel
STATE name of the state Andhra Pradesh True Must be a state in India 🤔
DISTRICT name of the district East Godavari True name of your district
DEF_LANG Default Language english False Can be choosen from english, telugu, tamil, hindi (Default is english)
DEF_CITY Default City Vijayawada True City from which weather should be fetched
- - Server Configuration - -
OPEN_WEATHER_API Open weather API Key d6778a1acdd67c4xxxxxxe500e81987d True API to get the weather data of a particular region, Get this from OpenWeather
API_KEY An API Key for your Server Agrothon True This is like a Password for your API Server, So choose Wisely (Alphanumeric only)
DB_URL MongoDB URL mongodb+srv://xxx:xxx@hmmm.mongodb.net True Database to Store All the data, get this from MongoDB
SENSOR_PRIORITY_INDEX Moisture sensor priority 2 True Which moisture sensor to use for predicting on/off the pump
AUTH_ID Telegram user ID 12345678 False If this is not provided, Bot access is given to all the telegram users ⚠️

* if there are Other ports too the Bot will Work but it may not be able to post images

Note

Agrothon Telegram bot

Screenshots