File size: 5,828 Bytes
61ab9d3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | {
"version": 1,
"tools": [
{
"name": "notify.send",
"title": "اطلاع بده",
"description": "یک پیام به وبهوک شما میفرستد",
"kind": "http",
"enabled": true,
"parameters": [
{ "name": "text", "description": "متن پیام", "required": true }
],
"phrases": ["پیام بده", "خبرم کن", "اطلاع بده", "notify me"],
"execute": {
"method": "POST",
"url": "http://192.168.1.50:8123/api/webhook/llmos",
"body": "{\"message\":\"{text}\"}",
"timeout_ms": 5000
},
"reply": {
"fa": "پیام فرستاده شد.",
"on_error": "پیام فرستاده نشد."
}
},
{
"name": "weather.get",
"title": "آب و هوا",
"description": "دما و رطوبت یک شهر را گزارش میکند",
"kind": "http",
"enabled": true,
"parameters": [
{ "name": "city", "description": "نام شهر", "required": true }
],
"phrases": ["هوا چطوره", "آب و هوا", "دما چنده", "هوای", "weather"],
"execute": {
"method": "GET",
"url": "https://wttr.in/{city}?format=j1",
"timeout_ms": 12000,
"extract": {
"temp": "current_condition.0.temp_C",
"feels": "current_condition.0.FeelsLikeC",
"humidity": "current_condition.0.humidity"
}
},
"reply": {
"fa": "دمای {city} {temp} درجه است، احساس میشود {feels} درجه. رطوبت {humidity} درصد.",
"on_error": "نتوانستم وضعیت هوای {city} را بگیرم."
}
},
{
"name": "air.quality",
"title": "کیفیت هوا",
"description": "شاخص کیفیت هوا و ذرات معلق",
"kind": "http",
"enabled": true,
"parameters": [],
"phrases": ["کیفیت هوا", "هوا آلوده", "آلودگی هوا", "شاخص هوا", "air quality"],
"execute": {
"method": "GET",
"url": "https://air-quality-api.open-meteo.com/v1/air-quality?latitude=35.69&longitude=51.42¤t=pm2_5,european_aqi",
"timeout_ms": 8000,
"extract": {
"aqi": "current.european_aqi",
"pm25": "current.pm2_5"
}
},
"reply": {
"fa": "شاخص کیفیت هوا {aqi} است و ذرات معلق ۲.۵ برابر {pm25} میکروگرم.",
"on_error": "کیفیت هوا را نتوانستم بگیرم."
}
},
{
"name": "sun.times",
"title": "طلوع و غروب",
"description": "ساعت طلوع و غروب آفتاب",
"kind": "http",
"enabled": true,
"parameters": [],
"phrases": ["طلوع و غروب", "غروب کیه", "آفتاب کی غروب میکنه", "طلوع آفتاب", "sunset"],
"execute": {
"method": "GET",
"url": "https://api.sunrise-sunset.org/json?lat=35.69&lng=51.42&formatted=0&tzid=Asia/Tehran",
"timeout_ms": 8000,
"extract": {
"sunrise": "results.sunrise|11:5",
"sunset": "results.sunset|11:5"
}
},
"reply": {
"fa": "طلوع {sunrise} و غروب {sunset}.",
"on_error": "ساعت طلوع و غروب را نگرفتم."
}
},
{
"name": "time.get",
"title": "ساعت",
"description": "ساعت و تاریخ فعلی",
"kind": "http",
"enabled": true,
"parameters": [],
"phrases": ["ساعت چنده", "چه ساعتی", "الان ساعت چنده", "تاریخ چنده", "what time"],
"execute": {
"method": "GET",
"url": "https://timeapi.io/api/Time/current/zone?timeZone=Asia/Tehran",
"timeout_ms": 8000,
"extract": {
"clock": "time",
"day": "day",
"month": "month",
"year": "year"
}
},
"reply": {
"fa": "ساعت {clock} است، {year}/{month}/{day} میلادی.",
"on_error": "ساعت را نتوانستم بگیرم."
}
},
{
"name": "quake.recent",
"title": "زلزله",
"description": "آخرین زمینلرزه ثبتشده در منطقه",
"kind": "http",
"enabled": true,
"parameters": [],
"phrases": ["زلزله", "زمین لرزه", "آخرین زلزله", "earthquake"],
"execute": {
"method": "GET",
"url": "https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=1&orderby=time&minmagnitude=3.5&minlatitude=24&maxlatitude=40&minlongitude=44&maxlongitude=64",
"timeout_ms": 10000,
"extract": {
"mag": "features.0.properties.mag",
"place": "features.0.properties.place"
}
},
"reply": {
"fa": "آخرین زمینلرزه بزرگی {mag} بوده، در {place}.",
"on_error": "اطلاعات زلزله در دسترس نیست."
}
},
{
"name": "net.info",
"title": "اینترنت",
"description": "آیپی عمومی و محل اتصال",
"kind": "http",
"enabled": true,
"parameters": [],
"phrases": ["اینترنت وصله", "آی پی چیه", "اینترنت دارم", "internet"],
"execute": {
"method": "GET",
"url": "https://ipapi.co/json/",
"timeout_ms": 8000,
"extract": {
"ip": "ip",
"city": "city",
"org": "org"
}
},
"reply": {
"fa": "اینترنت وصل است. آیپی {ip}، از {city} روی {org}.",
"on_error": "اینترنت در دسترس نیست."
}
}
]
}
|