{
    "componentChunkName": "component---src-templates-issues-tsx",
    "path": "/issues/613",
    "result": {"data":{"issuesJson":{"id":"722c9631-de8b-5c2f-95c6-bac34f6bceb6","title":"chubin/wttr.in: 执行 curl wttr.in 在终端中显示天气预报","number":613,"bodyHTML":"<div align=\"center\" dir=\"auto\">\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a><br><br></p>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th align=\"right\">Repos</th>\n<th align=\"left\"><a href=\"https://github.com/chubin/wttr.in\">chubin/wttr.in</a></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"right\"><strong>Views</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/3ed2f3b872b485beb2e36b1093461ebb30e3f18655082650cad0e56f7b5fd996/68747470733a2f2f76696577732e77686174696c656172656e65642e746f6461792f76696577732f6769746875622f63687562696e2f777474722e696e2e737667\" alt=\"views\" data-canonical-src=\"https://views.whatilearened.today/views/github/chubin/wttr.in.svg\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Stars</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/09cf3590d29bda469fd97087f8f148ee721355ecb4b6bb8bb21aa9762757ff05/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f63687562696e2f777474722e696e3f636f6c6f723d663266303864266c6f676f3d556e64657274616c65266c6f676f436f6c6f723d656234363330\" alt=\"stars\" data-canonical-src=\"https://img.shields.io/github/stars/chubin/wttr.in?color=f2f08d&amp;logo=Undertale&amp;logoColor=eb4630\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Forks</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/9597771d4208cbdb6d96312cfdae97d0b6a1f8e6cf7e19eb749d855e6989c802/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f63687562696e2f777474722e696e3f636f6c6f723d626138366562266c6f676f3d48616e647368616b65266c6f676f436f6c6f723d656136616136\" alt=\"forks\" data-canonical-src=\"https://img.shields.io/github/forks/chubin/wttr.in?color=ba86eb&amp;logo=Handshake&amp;logoColor=ea6aa6\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>License</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/32da39df6df75fdf0cc32838961e075148c94dd39eb7706624974cc49374f539/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63687562696e2f777474722e696e3f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e53556845556741414144414141414177434159414141425841766d48414141414358424957584d41414173544141414c457745416d70775941414144336b6c45515652346e4f335953557a5555426748384a726f57567255474a66456d3773584e63534446784d544c327069347348456778654e526f77586770455742445552522532424e414e4f4b4f4b36366f6f4b4a4742586545475263574163455646475152484677516d483525324630774861655748493944554455354c356b6e6568644f62377a66652532423139636e434a47495243516945596c514237594a4979474c38616f73756c565a36695246516a69474b6b7564576735614c6c704f70704e586e665071773555304459524a6d56786a4367464633424c755a476d416f5655694b4541726d583744375553677351706f72674761336748664b34483663754262435644334771683141352532424c6745253242467749656e514d306a6f446f66714c6f48564e7742796d384370546e416d327a51713073676478624964515a556c416b7150415a3664676a303541446f59526f6f66792532466f5869726f376b3551586a4c6f70677a4b69514e6c4c4461716f4967754577426a7a7150355066446a45394479495879493633464d547751464d43567271774e61763451666f52673538514625324266724d485172454b3844546f434d714e4179574e4866786d54526f4c4f726d5352566747744466714345715a4f4851727a6f34706243557341333431365169364551394b476a6345465267484f724f4b6e5536574162396247455459656b4b7843766a546167394534706a653534446b3551503862624d4859762532464333756541654a6b50304f4778422532424a70426e4172595238455951516e6f4e31414e4661426e5050356c385372736559514c303641646b30464a5938484f5761424d6c6541486a683068506f73497a6c6f3876304125324633345a694f6548726130714b52504d5653493774762532423932747725324676687855654252713456454c674d376642714b354770526d6f514c584e7075625475367a6f4e52706754386e5051627138347764253246494375767978694b4871694e41664933774d367549684271476b4c696977414f734b44714f68743749747239567938536a52424557667941627225324668523142667056514664484a42253246423268683778376a36517077435665655951326b72554235436c636a3641326d3067576a25324244306d4c34397a573563517943484c4e37726a6c6d6d6174457958582532464372547a412532466f51785a6b576c39474a5443566f25324279546a3837253242346769504b6376307149486f344156344430565a727251493334706e70524d36357875652532467a417265453425324654253246536f676c664542794d7369517441546c4c3352414a355948725378365a44665337307337754d486842705225324659423573305057366f455270316236253246667252684b3353444c35546965364f515548516c5133735644752532427a50636b397657453973747225324236496a533967486d5750616861444a25324277434b364e494242587348423948796b587378774470686c436d416476706c6162554a4e6e5a504239342532464e7436784f6538587a4562503257684d335741673147756236744825324233513150673337365239713475716c6e6f36676448476a444f5139306562303141484d3672596975554a314f713472344656756a35765239427a4d3957674e764f7977446869495951467667626366774166774d764863615067425041253246447948476a50624e394138616d6562636477416444354e6633373574787165774e5552656f797677424958594c645170576c6877465771745061435044334173467541535636717171496c62304a766b564331464c39576b4c55556c55574b337a585a4c46432532423125324642726f46746f364f7358497545594a5034447a7a5732594656316f4a614141414141456c46546b5375516d4343\" alt=\"license\" data-canonical-src=\"https://img.shields.io/github/license/chubin/wttr.in?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAD3klEQVR4nO3YSUzUUBgH8JroWVrUGJfEm7sXNcSDFxMTL2pi4sHEgxeNRowXgpEWBDURR%2BNANOKOK66ooKJGBXeEGRcWAcEVFGQRHFwQmH5%2F0wHaeWHI9DUDU5L5knehdOb7zfe%2B19cnCJGIRCQiEYlQB7YJIyGL8aosulVZ6iRFQjiGKkudWg5aLlpOppNXnfPqw5U0DYRJmVxjCgFF3BLuZGmAoVUiKEArmX7D7USgsQporgGa3gHfK4H6cuBbCVD3Gqh1A5%2BLgE%2BFwIenQM0joDofqLoHVNwBym8CpTnAm2zQq0sgdxbIdQZUlAkqPAZ6dgj05ADoYRoofy%2FoXiro7k5QXjLopgzKiQNlLDaqoIguEwBjzqP5PfDjE9DyIXyI63FMTwQFMCVrqwNav4QfoRg58QF%2BfrMHQrEK8DToCMqNAyWNHfxmTRoLOrmSRVgGtDfqCEqZOHQrzo4pbCUsA3416Qi6EQ9KGjcEFRgHOrOKnU6WAb9bGETYekKxCvjTag9E4pje54Dk5QP8bbMHYv%2FC3ueAeJkP0OGxB%2BJpBnArYR8EYQQnoN1ANFaBnPP5l8SrseYQL06Adk0FJY8HOWaBMleAHjh0hPosIzlo8v0A%2F34ZiOeHra0qKRPMVSI7tv%2B92tw%2FvhxUeBRq4VELgM7fBqK5GpRmoQLXNpubTu6zoNRpgT8nPQbq84wd%2FICuvyxiKHqiNAfI3wM6uIhBqGkLiiwAOsKDqOht7Itr9Vy8SjRBEWfyAbr%2FhR1BfpVQFdHJB%2FB2hh7x7j6QpwCVeeYQ2krUB5Clcj6A2m0gWj%2BD0mL49zW5cQyCHLN7rjlmmatEyXX%2FCrTzA%2FoQxZkWl9GJTCVo%2ByTj87%2B4giPKcv0qIHo4AV4D0VZrrQI34pnpRM65xue%2FzAreE4%2FT%2FSoglfEByMsiQtATlL3RAJ5YHrSx6ZDfS70s7uMHhBpR%2FYB5s0PW6oERp1b6%2FfrRhK3SDL5Tie6OQUHQlQ3sVDu%2BzPck9vWE9str%2B6IjS9gHmWPahaDJ%2BwCK6NIBBXsHB9HykXsxwDphlCmAdvplabUJNnZPB94%2FNt6xOe8XzEbP2WhM3WAg1Gub6tH%2B3Q1Pg376R9q4uqlno6gdHGjDOQ90eb01AHM6rYiuUJ1Oq4r4FVuj5vR9BzM9WgNvOywDhiIYQFvgbcfwAfwMvHcaPgBPA%2FDyHGjPbN9A8amebcdwAdD5Nf375txqewNUReoyvwBIXYLdQpWlhwFWqtPaCPD3AsFuASV6qqqIlb0JvkVC1FL9WkLUUlUWK3zXZLFC%2B1%2FBroFto6OsXIuEYJP4DzzW2YFV1oJaAAAAAElFTkSuQmCC\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>UpdatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/0e776d94524f0cb61466779eb50737e60371f4d3ad78d628509109be3eb6a098/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63687562696e2f777474722e696e3f646973706c61795f74696d657374616d703d636f6d6d6974746572266c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d557064617465644174\" alt=\"last-commit\" data-canonical-src=\"https://img.shields.io/github/last-commit/chubin/wttr.in?display_timestamp=committer&amp;logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=UpdatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>CreatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/c0a4fd725673af3522a0fc4d9d0bd9c2a20f051c12a69713e389342bdaf44ecd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f637265617465642d61742f63687562696e2f777474722e696e3f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d437265617465644174\" alt=\"create-at\" data-canonical-src=\"https://img.shields.io/github/created-at/chubin/wttr.in?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=CreatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<a href=\"https://github.com/opsre/awesome-ops\">\n</a><p dir=\"auto\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/b964a36ea4078c39f603d46a29436371c7541a2f26e0228d7b21b9d9805b43d3/68747470733a2f2f736f6369616c6966792e6769742e63692f6f707372652f617765736f6d652d6f70732f696d6167653f6465736372697074696f6e3d3126666f6e743d42697474657226666f726b733d31266973737565733d31266c616e67756167653d31266c6f676f3d6874747073253341253246253246617661746172732e67697468756275736572636f6e74656e742e636f6d25324675253246313838353638303230266e616d653d31266f776e65723d31267061747465726e3d436972637569742b426f6172642670756c6c733d31267374617267617a6572733d31267468656d653d4c69676874\" alt=\"\" data-canonical-src=\"https://socialify.git.ci/opsre/awesome-ops/image?description=1&amp;font=Bitter&amp;forks=1&amp;issues=1&amp;language=1&amp;logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F188568020&amp;name=1&amp;owner=1&amp;pattern=Circuit+Board&amp;pulls=1&amp;stargazers=1&amp;theme=Light\" style=\"max-width: 100%;\"></a></p>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a>\n</div>\n<p dir=\"auto\"><em>wttr.in — the right way to <del>check</del> <code class=\"notranslate\">curl</code> the weather!</em></p>\n<p dir=\"auto\">wttr.in is a console-oriented weather forecast service that supports various information<br>\nrepresentation methods like terminal-oriented ANSI-sequences for console HTTP clients<br>\n(curl, httpie, or wget), HTML for web browsers, or PNG for graphical viewers.</p>\n<p dir=\"auto\">Originally started as a small project, a wrapper for <a href=\"https://github.com/schachmat/wego\">wego</a>,<br>\nintended to demonstrate the power of the console-oriented services,<br>\n<em>wttr.in</em> became a popular weather reporting service, handling tens of millions of queries daily.</p>\n<p dir=\"auto\">You can see it running here: <a href=\"https://wttr.in\" rel=\"nofollow\">wttr.in</a>.</p>\n<p dir=\"auto\"><a href=\"https://wttr.in/:help\" rel=\"nofollow\">Documentation</a> | <a href=\"https://github.com/chubin/wttr.in#usage\">Usage</a> | <a href=\"https://github.com/chubin/wttr.in#one-line-output\">One-line output</a> | <a href=\"https://github.com/chubin/wttr.in#data-rich-output-format-v2\">Data-rich output format</a> | <a href=\"https://github.com/chubin/wttr.in#map-view-v3\">Map view</a> | <a href=\"https://github.com/chubin/wttr.in#different-output-formats\">Output formats</a> | <a href=\"https://github.com/chubin/wttr.in#moon-phases\">Moon phases</a> | <a href=\"https://github.com/chubin/wttr.in#internationalization-and-localization\">Internationalization</a> | <a href=\"https://github.com/chubin/wttr.in#installation\">Installation</a></p>\n<h2 dir=\"auto\">Usage</h2>\n<p dir=\"auto\">You can access the service from a shell or from a Web browser like this:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in\nWeather for City: Paris, France\n\n     \\   /     Clear\n      .-.      10 – 11 °C\n   ― (   ) ―   ↑ 11 km/h\n      `-’      10 km\n     /   \\     0.0 mm\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in\nWeather for City: Paris, France\n\n     \\   /     Clear\n      .-.      10 – 11 °C\n   ― (   ) ―   ↑ 11 km/h\n      `-’      10 km\n     /   \\     0.0 mm\n</code></pre></div>\n<p dir=\"auto\">Here is an example weather report:</p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"share/pics/San_Francisco.png\"><img src=\"share/pics/San_Francisco.png\" alt=\"Weather Report\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">Or in PowerShell:</p>\n<div class=\"highlight highlight-source-powershell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"Invoke-RestMethod https://wttr.in\"><pre class=\"notranslate\"><span class=\"pl-c1\">Invoke-RestMethod</span> https:<span class=\"pl-k\">//</span>wttr.in</pre></div>\n<p dir=\"auto\">Want to get the weather information for a specific location? You can add the desired location to the URL in your<br>\nrequest like this:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/London\n$ curl wttr.in/Moscow\n$ curl wttr.in/Salt+Lake+City\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/London\n$ curl wttr.in/Moscow\n$ curl wttr.in/Salt+Lake+City\n</code></pre></div>\n<p dir=\"auto\">If you omit the location name, you will get the report for your current location based on your IP address.</p>\n<p dir=\"auto\">Use 3-letter airport codes in order to get the weather information at a certain airport:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/muc      # Weather for IATA: muc, Munich International Airport, Germany\n$ curl wttr.in/ham      # Weather for IATA: ham, Hamburg Airport, Germany\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/muc      # Weather for IATA: muc, Munich International Airport, Germany\n$ curl wttr.in/ham      # Weather for IATA: ham, Hamburg Airport, Germany\n</code></pre></div>\n<p dir=\"auto\">Let's say you'd like to get the weather for a geographical location other than a town or city - maybe an attraction<br>\nin a city, a mountain name, or some special location. Add the character <code class=\"notranslate\">~</code> before the name to look up that special<br>\nlocation name before the weather is then retrieved:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/~Vostok+Station\n$ curl wttr.in/~Eiffel+Tower\n$ curl wttr.in/~Kilimanjaro\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/~Vostok+Station\n$ curl wttr.in/~Eiffel+Tower\n$ curl wttr.in/~Kilimanjaro\n</code></pre></div>\n<p dir=\"auto\">For these examples, you'll see a line below the weather forecast output that shows the geolocation<br>\nresults of looking up the location:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"Location: Vostok Station, станция Восток, AAT, Antarctica [-78.4642714,106.8364678]\nLocation: Tour Eiffel, 5, Avenue Anatole France, Gros-Caillou, 7e, Paris, Île-de-France, 75007, France [48.8582602,2.29449905432]\nLocation: Kilimanjaro, Northern, Tanzania [-3.4762789,37.3872648]\"><pre class=\"notranslate\"><code class=\"notranslate\">Location: Vostok Station, станция Восток, AAT, Antarctica [-78.4642714,106.8364678]\nLocation: Tour Eiffel, 5, Avenue Anatole France, Gros-Caillou, 7e, Paris, Île-de-France, 75007, France [48.8582602,2.29449905432]\nLocation: Kilimanjaro, Northern, Tanzania [-3.4762789,37.3872648]\n</code></pre></div>\n<p dir=\"auto\">You can also use IP-addresses (direct) or domain names (prefixed with <code class=\"notranslate\">@</code>) to specify a location:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/@github.com\n$ curl wttr.in/@msu.ru\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/@github.com\n$ curl wttr.in/@msu.ru\n</code></pre></div>\n<p dir=\"auto\">To get detailed information online, you can access the <a href=\"https://wttr.in/:help\" rel=\"nofollow\">/:help</a> page:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/:help\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/:help\n</code></pre></div>\n<h3 dir=\"auto\">Weather Units</h3>\n<p dir=\"auto\">By default the USCS units are used for the queries from the USA and the metric system for the rest of the world.<br>\nYou can override this behavior by adding <code class=\"notranslate\">?u</code>, <code class=\"notranslate\">?m</code> or <code class=\"notranslate\">?M</code>   to a URL like this:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Amsterdam?u  # USCS (used by default in US)\n$ curl wttr.in/Amsterdam?m  # metric (SI) (used by default everywhere except US)\n$ curl wttr.in/Amsterdam?M  # metric (SI), but show wind speed in m/s\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Amsterdam?u  # USCS (used by default in US)\n$ curl wttr.in/Amsterdam?m  # metric (SI) (used by default everywhere except US)\n$ curl wttr.in/Amsterdam?M  # metric (SI), but show wind speed in m/s\n</code></pre></div>\n<p dir=\"auto\">If you have several options to pass, write them without delimiters in between for the one-letter options,<br>\nand use <code class=\"notranslate\">&amp;</code> as a delimiter for the long options with values:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl 'wttr.in/Amsterdam?m2&amp;lang=nl'\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl 'wttr.in/Amsterdam?m2&amp;lang=nl'\n</code></pre></div>\n<p dir=\"auto\">It would be a rough equivalent of <code class=\"notranslate\">-m2 --lang nl</code> for the GNU CLI syntax.</p>\n<h2 dir=\"auto\">Supported output formats and views</h2>\n<p dir=\"auto\">wttr.in currently supports five output formats:</p>\n<ul dir=\"auto\">\n<li>ANSI for the terminal;</li>\n<li>Plain-text for the terminal and scripts;</li>\n<li>HTML for the browser;</li>\n<li>PNG for the graphical viewers;</li>\n<li>JSON for scripts and APIs;</li>\n<li>Prometheus metrics for scripts and APIs.</li>\n</ul>\n<p dir=\"auto\">The ANSI and HTML formats are selected based on the User-Agent string.</p>\n<p dir=\"auto\">To force plain text, which disables colors:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/?T\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/?T\n</code></pre></div>\n<p dir=\"auto\">To restrict output to glyphs available in standard console fonts (e.g. Consolas and Lucida Console):</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/?d\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/?d\n</code></pre></div>\n<p dir=\"auto\">The PNG format can be forced by adding <code class=\"notranslate\">.png</code> to the end of the query:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ wget wttr.in/Paris.png\"><pre class=\"notranslate\"><code class=\"notranslate\">$ wget wttr.in/Paris.png\n</code></pre></div>\n<p dir=\"auto\">You can use all of the options with the PNG-format like in an URL, but you have<br>\nto separate them with <code class=\"notranslate\">_</code> instead of <code class=\"notranslate\">?</code> and <code class=\"notranslate\">&amp;</code>:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ wget wttr.in/Paris_0tqp_lang=fr.png\"><pre class=\"notranslate\"><code class=\"notranslate\">$ wget wttr.in/Paris_0tqp_lang=fr.png\n</code></pre></div>\n<p dir=\"auto\">Useful options for the PNG format:</p>\n<ul dir=\"auto\">\n<li><code class=\"notranslate\">t</code> for transparency (<code class=\"notranslate\">transparency=150</code>);</li>\n<li>transparency=0..255 for a custom transparency level.</li>\n</ul>\n<p dir=\"auto\">Transparency is a useful feature when weather PNGs are used to add weather data to pictures:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ convert source.jpg &lt;( curl wttr.in/Oymyakon_tqp0.png ) -geometry +50+50 -composite target.jpg\"><pre class=\"notranslate\"><code class=\"notranslate\">$ convert source.jpg &lt;( curl wttr.in/Oymyakon_tqp0.png ) -geometry +50+50 -composite target.jpg\n</code></pre></div>\n<p dir=\"auto\">In this example:</p>\n<ul dir=\"auto\">\n<li><code class=\"notranslate\">source.jpg</code> - source file;</li>\n<li><code class=\"notranslate\">target.jpg</code> - target file;</li>\n<li><code class=\"notranslate\">Oymyakon</code> - name of the location;</li>\n<li><code class=\"notranslate\">tqp0</code> - options (recommended).</li>\n</ul>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/2d4f67098a06141686ee56ca833e45eaf1b9cb3d81f489a80b01640bd53efb00/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4336392d77734957304141634144352e6a7067\"><img src=\"https://camo.githubusercontent.com/2d4f67098a06141686ee56ca833e45eaf1b9cb3d81f489a80b01640bd53efb00/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4336392d77734957304141634144352e6a7067\" alt=\"Picture with weather data\" data-canonical-src=\"https://pbs.twimg.com/media/C69-wsIW0AAcAD5.jpg\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">You can embed a special wttr.in widget, that displays the weather condition for the current or a selected location, into a HTML page using the <a href=\"https://github.com/midzer/wttr-switcher\">wttr-switcher</a>. That is how it looks like: <a href=\"https://midzer.github.io/wttr-switcher/\" rel=\"nofollow\">wttr-switcher-example</a> or on a real world web site: <a href=\"https://feuerwehr-eisolzried.de/\" rel=\"nofollow\">https://feuerwehr-eisolzried.de/</a>.</p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/3875145/65265457-50eac180-db11-11e9-8f9b-2e1711dfc436.png\"><img src=\"https://user-images.githubusercontent.com/3875145/65265457-50eac180-db11-11e9-8f9b-2e1711dfc436.png\" alt=\"Embedded wttr.in example at feuerwehr-eisolzried.de\" style=\"max-width: 100%;\"></a></p>\n<h2 dir=\"auto\">One-line output</h2>\n<p dir=\"auto\">One-line output format is convenient to be used to show weather info<br>\nin status bar of different programs, such as <em>tmux</em>, <em>weechat</em>, etc.</p>\n<p dir=\"auto\">For one-line output format, specify additional URL parameter <code class=\"notranslate\">format</code>:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Nuremberg?format=3\nNuremberg: 🌦 +11⁰C\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Nuremberg?format=3\nNuremberg: 🌦 +11⁰C\n</code></pre></div>\n<p dir=\"auto\">Available preconfigured formats: 1, 2, 3, 4 and the custom format using the percent notation (see below).</p>\n<ul dir=\"auto\">\n<li>1: Current weather at location: <code class=\"notranslate\">🌦 +11⁰C</code></li>\n<li>2: Current weather at location with more details: <code class=\"notranslate\">🌦   🌡️+11°C 🌬️↓4km/h</code></li>\n<li>3: Name of location and current weather at location: <code class=\"notranslate\">Nuremberg: 🌦 +11⁰C</code></li>\n<li>4: Name of location and current weather at location with more details: <code class=\"notranslate\">Nuremberg: 🌦   🌡️+11°C 🌬️↓4km/h</code></li>\n</ul>\n<p dir=\"auto\">You can specify multiple locations separated with <code class=\"notranslate\">:</code> (for repeating queries):</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Nuremberg:Hamburg:Berlin?format=3\nNuremberg: 🌦 +11⁰C\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Nuremberg:Hamburg:Berlin?format=3\nNuremberg: 🌦 +11⁰C\n</code></pre></div>\n<p dir=\"auto\">Or to process all this queries at once:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl -s 'wttr.in/{Nuremberg,Hamburg,Berlin}?format=3'\nNuremberg: 🌦 +11⁰C\nHamburg: 🌦 +8⁰C\nBerlin: 🌦 +8⁰C\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl -s 'wttr.in/{Nuremberg,Hamburg,Berlin}?format=3'\nNuremberg: 🌦 +11⁰C\nHamburg: 🌦 +8⁰C\nBerlin: 🌦 +8⁰C\n</code></pre></div>\n<p dir=\"auto\">To specify your own custom output format, use the special <code class=\"notranslate\">%</code>-notation:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"    c    Weather condition,\n    C    Weather condition textual name,\n    x    Weather condition, plain-text symbol,\n    h    Humidity,\n    t    Temperature (Actual),\n    f    Temperature (Feels Like),\n    w    Wind,\n    l    Location,\n    m    Moon phase 🌑🌒🌓🌔🌕🌖🌗🌘,\n    M    Moon day,\n    p    Precipitation (mm/3 hours),\n    P    Pressure (hPa),\n    u    UV index (1-12),\n\n    D    Dawn*,\n    S    Sunrise*,\n    z    Zenith*,\n    s    Sunset*,\n    d    Dusk*,\n    T    Current time*,\n    Z    Local timezone.\n\n(*times are shown in the local timezone)\"><pre class=\"notranslate\"><code class=\"notranslate\">    c    Weather condition,\n    C    Weather condition textual name,\n    x    Weather condition, plain-text symbol,\n    h    Humidity,\n    t    Temperature (Actual),\n    f    Temperature (Feels Like),\n    w    Wind,\n    l    Location,\n    m    Moon phase 🌑🌒🌓🌔🌕🌖🌗🌘,\n    M    Moon day,\n    p    Precipitation (mm/3 hours),\n    P    Pressure (hPa),\n    u    UV index (1-12),\n\n    D    Dawn*,\n    S    Sunrise*,\n    z    Zenith*,\n    s    Sunset*,\n    d    Dusk*,\n    T    Current time*,\n    Z    Local timezone.\n\n(*times are shown in the local timezone)\n</code></pre></div>\n<p dir=\"auto\">So, these two calls are the same:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"    $ curl wttr.in/London?format=3\n    London: ⛅️ +7⁰C\n    $ curl wttr.in/London?format=&quot;%l:+%c+%t\\n&quot;\n    London: ⛅️ +7⁰C\"><pre class=\"notranslate\"><code class=\"notranslate\">    $ curl wttr.in/London?format=3\n    London: ⛅️ +7⁰C\n    $ curl wttr.in/London?format=\"%l:+%c+%t\\n\"\n    London: ⛅️ +7⁰C\n</code></pre></div>\n<h3 dir=\"auto\">tmux</h3>\n<p dir=\"auto\">When using in <code class=\"notranslate\">tmux.conf</code>, you have to escape <code class=\"notranslate\">%</code> with <code class=\"notranslate\">%</code>, i.e. write there <code class=\"notranslate\">%%</code> instead of <code class=\"notranslate\">%</code>.</p>\n<p dir=\"auto\">The output does not contain new line by default, when the %-notation is used, but it does contain it when preconfigured format (<code class=\"notranslate\">1</code>,<code class=\"notranslate\">2</code>,<code class=\"notranslate\">3</code> etc.)<br>\nare used. To have the new line in the output when the %-notation is used, use '\\n' and single quotes when doing a query from the shell.</p>\n<p dir=\"auto\">In programs, that are querying the service automatically (such as tmux), it is better to use some reasonable update interval. In tmux, you can configure it with <code class=\"notranslate\">status-interval</code>.</p>\n<p dir=\"auto\">If several, <code class=\"notranslate\">:</code> separated locations, are specified in the query, specify update period<br>\nas an additional query parameter <code class=\"notranslate\">period=</code>:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"set -g status-interval 60\nWEATHER='#(curl -s wttr.in/London:Stockholm:Moscow\\?format\\=&quot;%%l:+%%c%%20%%t%%60%%w&amp;period=60&quot;)'\nset -g status-right &quot;$WEATHER ...&quot;\"><pre class=\"notranslate\"><code class=\"notranslate\">set -g status-interval 60\nWEATHER='#(curl -s wttr.in/London:Stockholm:Moscow\\?format\\=\"%%l:+%%c%%20%%t%%60%%w&amp;period=60\")'\nset -g status-right \"$WEATHER ...\"\n</code></pre></div>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/868f4acd313e960f4a9d53d817644d39bbc76013d7efb921c5e8a301930ebae8/68747470733a2f2f777474722e696e2f66696c65732f6578616d706c652d746d75782d7374617475732d6c696e652e706e67\"><img src=\"https://camo.githubusercontent.com/868f4acd313e960f4a9d53d817644d39bbc76013d7efb921c5e8a301930ebae8/68747470733a2f2f777474722e696e2f66696c65732f6578616d706c652d746d75782d7374617475732d6c696e652e706e67\" alt=\"wttr.in in tmux status bar\" data-canonical-src=\"https://wttr.in/files/example-tmux-status-line.png\" style=\"max-width: 100%;\"></a></p>\n<h3 dir=\"auto\">WeeChat</h3>\n<p dir=\"auto\">To embed in to an IRC (<a href=\"https://github.com/weechat/weechat\">WeeChat</a>) client's existing status bar:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"/alias add wttr /exec -pipe &quot;/mute /set plugins.var.wttr&quot; url:wttr.in/Montreal?format=%l:+%c+%f+%h+%p+%P+%m+%w+%S+%s;/wait 3 /item refresh wttr\n/trigger add wttr timer 60000;0;0 &quot;&quot; &quot;&quot; &quot;/wttr&quot;\n/item add wttr &quot;&quot; &quot;${plugins.var.wttr}&quot;\n/eval /set weechat.bar.status.items ${weechat.bar.status.items},spacer,wttr\n/eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins};/wttr\n/wttr\"><pre class=\"notranslate\"><code class=\"notranslate\">/alias add wttr /exec -pipe \"/mute /set plugins.var.wttr\" url:wttr.in/Montreal?format=%l:+%c+%f+%h+%p+%P+%m+%w+%S+%s;/wait 3 /item refresh wttr\n/trigger add wttr timer 60000;0;0 \"\" \"\" \"/wttr\"\n/item add wttr \"\" \"${plugins.var.wttr}\"\n/eval /set weechat.bar.status.items ${weechat.bar.status.items},spacer,wttr\n/eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins};/wttr\n/wttr\n</code></pre></div>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/41c75f431d64146c5e0c8cb8111bc9f81ae9f59fff862b9d20fdc3f67c8df7b2/68747470733a2f2f692e696d6775722e636f6d2f586b59695255372e706e67\"><img src=\"https://camo.githubusercontent.com/41c75f431d64146c5e0c8cb8111bc9f81ae9f59fff862b9d20fdc3f67c8df7b2/68747470733a2f2f692e696d6775722e636f6d2f586b59695255372e706e67\" alt=\"wttr.in in WeeChat status bar\" data-canonical-src=\"https://i.imgur.com/XkYiRU7.png\" style=\"max-width: 100%;\"></a></p>\n<h3 dir=\"auto\">conky</h3>\n<p dir=\"auto\">Conky usage example:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"${texeci 1800 curl wttr.in/kyiv_0pq_lang=uk.png\n  | convert - -transparent black $HOME/.config/conky/out.png}\n${image $HOME/.config/conky/out.png -p 0,0}\"><pre class=\"notranslate\"><code class=\"notranslate\">${texeci 1800 curl wttr.in/kyiv_0pq_lang=uk.png\n  | convert - -transparent black $HOME/.config/conky/out.png}\n${image $HOME/.config/conky/out.png -p 0,0}\n</code></pre></div>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/3875145/172178453-9e9ed9e3-9815-426a-9a21-afdd6e279fc8.png\"><img src=\"https://user-images.githubusercontent.com/3875145/172178453-9e9ed9e3-9815-426a-9a21-afdd6e279fc8.png\" alt=\"wttr.in in conky\" style=\"max-width: 100%;\"></a></p>\n<h3 dir=\"auto\">IRC</h3>\n<p dir=\"auto\">IRC integration example:</p>\n<ul dir=\"auto\">\n<li><a href=\"https://github.com/OpenSourceTreasure/Mirc-ASCII-weather-translate-pixel-editor\">https://github.com/OpenSourceTreasure/Mirc-ASCII-weather-translate-pixel-editor</a></li>\n</ul>\n<h3 dir=\"auto\">Emojis support</h3>\n<p dir=\"auto\">To see emojis in terminal, you need:</p>\n<ol dir=\"auto\">\n<li>Terminal support for emojis (was added to Cairo 1.15.8);</li>\n<li>Font with emojis support.</li>\n</ol>\n<p dir=\"auto\">For the emoji font, we recommend <em>Noto Color Emoji</em>, and a good alternative option would be the <em>Emoji One</em> font;<br>\nboth of them support all necessary emoji glyphs.</p>\n<p dir=\"auto\">Font configuration:</p>\n<div class=\"highlight highlight-text-xml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"$ cat ~/.config/fontconfig/fonts.conf\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;!DOCTYPE fontconfig SYSTEM &quot;fonts.dtd&quot;&gt;\n&lt;fontconfig&gt;\n  &lt;alias&gt;\n    &lt;family&gt;serif&lt;/family&gt;\n    &lt;prefer&gt;\n      &lt;family&gt;Noto Color Emoji&lt;/family&gt;\n    &lt;/prefer&gt;\n  &lt;/alias&gt;\n  &lt;alias&gt;\n    &lt;family&gt;sans-serif&lt;/family&gt;\n    &lt;prefer&gt;\n      &lt;family&gt;Noto Color Emoji&lt;/family&gt;\n    &lt;/prefer&gt;\n  &lt;/alias&gt;\n  &lt;alias&gt;\n    &lt;family&gt;monospace&lt;/family&gt;\n    &lt;prefer&gt;\n      &lt;family&gt;Noto Color Emoji&lt;/family&gt;\n    &lt;/prefer&gt;\n  &lt;/alias&gt;\n&lt;/fontconfig&gt;\"><pre class=\"notranslate\">$ cat ~/.config/fontconfig/fonts.conf\n&lt;?<span class=\"pl-ent\">xml</span><span class=\"pl-e\"> version</span>=<span class=\"pl-s\"><span class=\"pl-pds\">\"</span>1.0<span class=\"pl-pds\">\"</span></span><span class=\"pl-e\"> encoding</span>=<span class=\"pl-s\"><span class=\"pl-pds\">\"</span>UTF-8<span class=\"pl-pds\">\"</span></span>?&gt;\n&lt;!<span class=\"pl-ent\">DOCTYPE</span> <span class=\"pl-e\">fontconfig</span> SYSTEM \"fonts.dtd\"&gt;\n&lt;<span class=\"pl-ent\">fontconfig</span>&gt;\n  &lt;<span class=\"pl-ent\">alias</span>&gt;\n    &lt;<span class=\"pl-ent\">family</span>&gt;serif&lt;/<span class=\"pl-ent\">family</span>&gt;\n    &lt;<span class=\"pl-ent\">prefer</span>&gt;\n      &lt;<span class=\"pl-ent\">family</span>&gt;Noto Color Emoji&lt;/<span class=\"pl-ent\">family</span>&gt;\n    &lt;/<span class=\"pl-ent\">prefer</span>&gt;\n  &lt;/<span class=\"pl-ent\">alias</span>&gt;\n  &lt;<span class=\"pl-ent\">alias</span>&gt;\n    &lt;<span class=\"pl-ent\">family</span>&gt;sans-serif&lt;/<span class=\"pl-ent\">family</span>&gt;\n    &lt;<span class=\"pl-ent\">prefer</span>&gt;\n      &lt;<span class=\"pl-ent\">family</span>&gt;Noto Color Emoji&lt;/<span class=\"pl-ent\">family</span>&gt;\n    &lt;/<span class=\"pl-ent\">prefer</span>&gt;\n  &lt;/<span class=\"pl-ent\">alias</span>&gt;\n  &lt;<span class=\"pl-ent\">alias</span>&gt;\n    &lt;<span class=\"pl-ent\">family</span>&gt;monospace&lt;/<span class=\"pl-ent\">family</span>&gt;\n    &lt;<span class=\"pl-ent\">prefer</span>&gt;\n      &lt;<span class=\"pl-ent\">family</span>&gt;Noto Color Emoji&lt;/<span class=\"pl-ent\">family</span>&gt;\n    &lt;/<span class=\"pl-ent\">prefer</span>&gt;\n  &lt;/<span class=\"pl-ent\">alias</span>&gt;\n&lt;/<span class=\"pl-ent\">fontconfig</span>&gt;</pre></div>\n<p dir=\"auto\">(to apply the configuration, run <code class=\"notranslate\">fc-cache -f -v</code>).</p>\n<p dir=\"auto\">In some cases, <code class=\"notranslate\">tmux</code> and the terminal understanding of some emoji characters may differ, which may<br>\ncause strange effects similar to that described in <a class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"3081803429\" data-permission-text=\"Title is private\" data-url=\"https://github.com/awesome-ops/awesome-ops.github.io/issues/579\" data-hovercard-type=\"issue\" data-hovercard-url=\"/awesome-ops/awesome-ops.github.io/issues/579/hovercard\" href=\"https://github.com/awesome-ops/awesome-ops.github.io/issues/579\">#579</a>.</p>\n<h3 dir=\"auto\">Squeak</h3>\n<p dir=\"auto\">To embed into the world main docking bar:</p>\n<div class=\"highlight highlight-source-smalltalk notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"wttr := (UpdatingStringMorph on: [(WebClient httpGet: 'https://wttr.in/?format=%20%20%l:%20%C+%t') content] selector: #value)\n\tstepTime: 60000;\n\tuseStringFormat;\n\tyourself.\ndockingBar := World mainDockingBars first.\ndockingBar addMorph: wttr after: (dockingBar findA: ClockMorph).\"><pre class=\"notranslate\">wttr <span class=\"pl-k\">:=</span> (<span class=\"pl-c1\">UpdatingStringMorph</span> <span class=\"pl-c1\">on:</span> [(<span class=\"pl-c1\">WebClient</span> <span class=\"pl-c1\">httpGet:</span> <span class=\"pl-s\"><span class=\"pl-pds\">'</span>https://wttr.in/?format=%20%20%l:%20%C+%t<span class=\"pl-pds\">'</span></span>) content] <span class=\"pl-c1\">selector:</span> <span class=\"pl-c1\">#value</span>)\n\t<span class=\"pl-c1\">stepTime:</span> <span class=\"pl-c1\">60000</span>;\n\tuseStringFormat;\n\t<span class=\"pl-k\">yourself</span>.\ndockingBar <span class=\"pl-k\">:=</span> <span class=\"pl-c1\">World</span> mainDockingBars first.\ndockingBar <span class=\"pl-c1\">addMorph:</span> wttr <span class=\"pl-c1\">after:</span> (dockingBar <span class=\"pl-c1\">findA:</span> <span class=\"pl-c1\">ClockMorph</span>).</pre></div>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://private-user-images.githubusercontent.com/38782922/386815114-4c2762b0-77ae-41a8-98db-3eb310d073bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTMwNjc1OTEsIm5iZiI6MTc1MzA2NzI5MSwicGF0aCI6Ii8zODc4MjkyMi8zODY4MTUxMTQtNGMyNzYyYjAtNzdhZS00MWE4LTk4ZGItM2ViMzEwZDA3M2JkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzIxVDAzMDgxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiMTdmYjk0MjdlMThiZDBiNjU3NjUzMWY0Mjk4MzU5NzBjZmJkZGI2Y2VjZGIxMjg3MzczY2VjNDc1OWJmYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.V-H7DeHYcEEd4vNZP89O5ENJRe2-yOASgFj--AJcp2U\"><img src=\"https://private-user-images.githubusercontent.com/38782922/386815114-4c2762b0-77ae-41a8-98db-3eb310d073bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTMwNjc1OTEsIm5iZiI6MTc1MzA2NzI5MSwicGF0aCI6Ii8zODc4MjkyMi8zODY4MTUxMTQtNGMyNzYyYjAtNzdhZS00MWE4LTk4ZGItM2ViMzEwZDA3M2JkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzIxVDAzMDgxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiMTdmYjk0MjdlMThiZDBiNjU3NjUzMWY0Mjk4MzU5NzBjZmJkZGI2Y2VjZGIxMjg3MzczY2VjNDc1OWJmYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.V-H7DeHYcEEd4vNZP89O5ENJRe2-yOASgFj--AJcp2U\" alt=\"wttr.in integration in the Squeak world main docking bar\" style=\"max-width: 100%;\"></a></p>\n<h2 dir=\"auto\">Data-rich output format (v2)</h2>\n<p dir=\"auto\">In the experimental data-rich output format, that is available under the view code <code class=\"notranslate\">v2</code>,<br>\na lot of additional weather and astronomical information is available:</p>\n<ul dir=\"auto\">\n<li>Temperature, and precipitation changes forecast throughout the days;</li>\n<li>Moonphase for today and the next three days;</li>\n<li>The current weather condition, temperature, humidity, wind speed and direction, pressure;</li>\n<li>Timezone;</li>\n<li>Dawn, sunrise, noon, sunset, dusk time for he selected location;</li>\n<li>Precise geographical coordinates for the selected location.</li>\n</ul>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"  $ curl v2.wttr.in/München\"><pre class=\"notranslate\"><code class=\"notranslate\">  $ curl v2.wttr.in/München\n</code></pre></div>\n<p dir=\"auto\">or</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"  $ curl wttr.in/München?format=v2\"><pre class=\"notranslate\"><code class=\"notranslate\">  $ curl wttr.in/München?format=v2\n</code></pre></div>\n<p dir=\"auto\">or, if you prefer Nerd Fonts instead of Emoji, <code class=\"notranslate\">v2d</code> (day) or <code class=\"notranslate\">v2n</code> (night):</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"  $ curl v2d.wttr.in/München\"><pre class=\"notranslate\"><code class=\"notranslate\">  $ curl v2d.wttr.in/München\n</code></pre></div>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/9598a56b432d53a737ef69a4e1ec3b31dceca0aa04464ac7cd1c849bf882b931/68747470733a2f2f777474722e696e2f66696c65732f6578616d706c652d777474722d76322e706e67\"><img src=\"https://camo.githubusercontent.com/9598a56b432d53a737ef69a4e1ec3b31dceca0aa04464ac7cd1c849bf882b931/68747470733a2f2f777474722e696e2f66696c65732f6578616d706c652d777474722d76322e706e67\" alt=\"data-rich output format\" data-canonical-src=\"https://wttr.in/files/example-wttr-v2.png\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">(The mode is experimental, and it has several limitations currently:</p>\n<ul dir=\"auto\">\n<li>It works only in terminal;</li>\n<li>Only English is supported).</li>\n</ul>\n<p dir=\"auto\">Currently, you need some tweaks for some terminals, to get the best possible visualization.</p>\n<h3 dir=\"auto\">URXVT</h3>\n<p dir=\"auto\">Depending on your configuration you might be taking all steps, or only a few. URXVT currently doesn't support emoji related fonts, but we can get almost the same effect using <em>Font-Symbola</em>. So add to your <code class=\"notranslate\">.Xresources</code> file the following line:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"    xft:symbola:size=10:minspace=False\"><pre class=\"notranslate\"><code class=\"notranslate\">    xft:symbola:size=10:minspace=False\n</code></pre></div>\n<p dir=\"auto\">You can add it <em>after</em> your preferred font and it will only show up when required.<br>\nThen, if you see or feel like you're having spacing issues, add this: <code class=\"notranslate\">URxvt.letterSpace: 0</code><br>\nFor some reason URXVT sometimes stops deciding right the word spacing and we need to force it this way.</p>\n<p dir=\"auto\">The result, should look like:</p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/24360204/63842949-1d36d480-c975-11e9-81dd-998d1329bd8a.png\"><img src=\"https://user-images.githubusercontent.com/24360204/63842949-1d36d480-c975-11e9-81dd-998d1329bd8a.png\" alt=\"URXVT Emoji line\" style=\"max-width: 100%;\"></a></p>\n<h2 dir=\"auto\">Map view (v3)</h2>\n<p dir=\"auto\">In the experimental map view, that is available under the view code <code class=\"notranslate\">v3</code>,<br>\nweather information about a geographical region is available:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"    $ curl v3.wttr.in/Bayern.sxl\"><pre class=\"notranslate\"><code class=\"notranslate\">    $ curl v3.wttr.in/Bayern.sxl\n</code></pre></div>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/1ce9779029ad3d3d87038b73c8ddc54005038750743aaedb6776687c12c922b0/68747470733a2f2f76332e777474722e696e2f42617965726e2e706e67\"><img src=\"https://camo.githubusercontent.com/1ce9779029ad3d3d87038b73c8ddc54005038750743aaedb6776687c12c922b0/68747470733a2f2f76332e777474722e696e2f42617965726e2e706e67\" alt=\"v3.wttr.in/Bayern\" data-canonical-src=\"https://v3.wttr.in/Bayern.png\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">or directly in browser:</p>\n<ul dir=\"auto\">\n<li><a href=\"https://v3.wttr.in/Bayern\" rel=\"nofollow\">https://v3.wttr.in/Bayern</a></li>\n</ul>\n<p dir=\"auto\">The map view currently supports three formats:</p>\n<ul dir=\"auto\">\n<li>PNG (for browser and messengers);</li>\n<li>Sixel (terminal inline images support);</li>\n<li>IIP (terminal with iterm2 inline images protocol support).</li>\n</ul>\n<p dir=\"auto\">Terminal with inline images protocols support:</p>\n<p dir=\"auto\">⟶ <em>Detailed article: <a href=\"doc/terminal-images.md\">Images in terminal</a></em></p>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>Terminal</th>\n<th>Environment</th>\n<th>Images support</th>\n<th>Protocol</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>uxterm</td>\n<td>X11</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>mlterm</td>\n<td>X11</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>kitty</td>\n<td>X11</td>\n<td>yes</td>\n<td>Kitty</td>\n</tr>\n<tr>\n<td>wezterm</td>\n<td>X11</td>\n<td>yes</td>\n<td>IIP</td>\n</tr>\n<tr>\n<td>Darktile</td>\n<td>X11</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>Jexer</td>\n<td>X11</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>GNOME Terminal</td>\n<td>X11</td>\n<td><a href=\"https://gitlab.gnome.org/GNOME/vte/-/issues/253\" rel=\"nofollow\">in-progress</a></td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>alacritty</td>\n<td>X11</td>\n<td><a href=\"https://github.com/alacritty/alacritty/issues/910\" data-hovercard-type=\"issue\" data-hovercard-url=\"/alacritty/alacritty/issues/910/hovercard\">in-progress</a></td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>foot</td>\n<td>Wayland</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>DomTerm</td>\n<td>Web</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>Yaft</td>\n<td>FB</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>iTerm2</td>\n<td>Mac OS X</td>\n<td>yes</td>\n<td>IIP</td>\n</tr>\n<tr>\n<td>mintty</td>\n<td>Windows</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td>Windows Terminal</td>\n<td>Windows</td>\n<td><a href=\"https://github.com/microsoft/terminal/issues/448\" data-hovercard-type=\"issue\" data-hovercard-url=\"/microsoft/terminal/issues/448/hovercard\">in-progress</a></td>\n<td>Sixel</td>\n</tr>\n<tr>\n<td><a href=\"http://nanno.dip.jp/softlib/man/rlogin/\" rel=\"nofollow\">RLogin</a></td>\n<td>Windows</td>\n<td>yes</td>\n<td>Sixel</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<h2 dir=\"auto\">Different output formats</h2>\n<h3 dir=\"auto\">JSON output</h3>\n<p dir=\"auto\">The JSON format is a feature providing access to <em>wttr.in</em> data through an easy-to-parse format, without requiring the user to create a complex script to reinterpret wttr.in's graphical output.</p>\n<p dir=\"auto\">To fetch information in JSON format, use the following syntax:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Detroit?format=j1\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Detroit?format=j1\n</code></pre></div>\n<p dir=\"auto\">This will fetch information on the Detroit region in JSON format. The j1 format code is used to allow for the use of other layouts for the JSON output.</p>\n<p dir=\"auto\">The result will look something like the following:</p>\n<div class=\"highlight highlight-source-json notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"{\n\t&quot;current_condition&quot;: [\n\t\t{\n\t\t    &quot;FeelsLikeC&quot;: &quot;25&quot;,\n\t\t    &quot;FeelsLikeF&quot;: &quot;76&quot;,\n\t\t    &quot;cloudcover&quot;: &quot;100&quot;,\n\t\t    &quot;humidity&quot;: &quot;76&quot;,\n\t\t    &quot;observation_time&quot;: &quot;04:08 PM&quot;,\n\t\t    &quot;precipMM&quot;: &quot;0.2&quot;,\n\t\t    &quot;pressure&quot;: &quot;1019&quot;,\n\t\t    &quot;temp_C&quot;: &quot;22&quot;,\n\t\t    &quot;temp_F&quot;: &quot;72&quot;,\n\t\t    &quot;uvIndex&quot;: 5,\n\t\t    &quot;visibility&quot;: &quot;16&quot;,\n\t\t    &quot;weatherCode&quot;: &quot;122&quot;,\n\t\t    &quot;weatherDesc&quot;: [\n\t\t\t{\n\t\t\t    &quot;value&quot;: &quot;Overcast&quot;\n\t\t\t}\n\t\t    ],\n\t\t    &quot;weatherIconUrl&quot;: [\n\t\t\t{\n\t\t\t    &quot;value&quot;: &quot;&quot;\n\t\t\t}\n\t\t    ],\n\t\t    &quot;winddir16Point&quot;: &quot;NNE&quot;,\n\t\t    &quot;winddirDegree&quot;: &quot;20&quot;,\n\t\t    &quot;windspeedKmph&quot;: &quot;7&quot;,\n\t\t    &quot;windspeedMiles&quot;: &quot;4&quot;\n\t\t}\n\t],\n...\"><pre class=\"notranslate\">{\n\t<span class=\"pl-ent\">\"current_condition\"</span>: [\n\t\t{\n\t\t    <span class=\"pl-ent\">\"FeelsLikeC\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>25<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"FeelsLikeF\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>76<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"cloudcover\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>100<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"humidity\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>76<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"observation_time\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>04:08 PM<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"precipMM\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>0.2<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"pressure\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>1019<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"temp_C\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>22<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"temp_F\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>72<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"uvIndex\"</span>: <span class=\"pl-c1\">5</span>,\n\t\t    <span class=\"pl-ent\">\"visibility\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>16<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"weatherCode\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>122<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"weatherDesc\"</span>: [\n\t\t\t{\n\t\t\t    <span class=\"pl-ent\">\"value\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>Overcast<span class=\"pl-pds\">\"</span></span>\n\t\t\t}\n\t\t    ],\n\t\t    <span class=\"pl-ent\">\"weatherIconUrl\"</span>: [\n\t\t\t{\n\t\t\t    <span class=\"pl-ent\">\"value\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span><span class=\"pl-pds\">\"</span></span>\n\t\t\t}\n\t\t    ],\n\t\t    <span class=\"pl-ent\">\"winddir16Point\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>NNE<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"winddirDegree\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>20<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"windspeedKmph\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>7<span class=\"pl-pds\">\"</span></span>,\n\t\t    <span class=\"pl-ent\">\"windspeedMiles\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>4<span class=\"pl-pds\">\"</span></span>\n\t\t}\n\t],\n<span class=\"pl-ii\">...</span></pre></div>\n<p dir=\"auto\">Most of these values are self-explanatory, aside from <code class=\"notranslate\">weatherCode</code>. The <code class=\"notranslate\">weatherCode</code> is an enumeration which you can find at either <a href=\"https://www.worldweatheronline.com/developer/api/docs/weather-icons.aspx\" rel=\"nofollow\">the WorldWeatherOnline website</a> or <a href=\"https://github.com/chubin/wttr.in/blob/master/lib/constants.py\">in the wttr.in source code</a>.</p>\n<h3 dir=\"auto\">Prometheus Metrics Output</h3>\n<p dir=\"auto\">The <a href=\"https://github.com/prometheus/prometheus\">Prometheus</a> Metrics format is a feature providing access to <em>wttr.in</em> data through an easy-to-parse format for monitoring systems, without requiring the user to create a complex script to reinterpret wttr.in's graphical output.</p>\n<p dir=\"auto\">To fetch information in Prometheus format, use the following syntax:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Detroit?format=p1\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Detroit?format=p1\n</code></pre></div>\n<p dir=\"auto\">This will fetch information on the Detroit region in Prometheus Metrics format. The <code class=\"notranslate\">p1</code> format code is used to allow for the use of other layouts for the Prometheus Metrics output.</p>\n<p dir=\"auto\">A possible configuration for Prometheus could look like this:</p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"    - job_name: 'wttr_in_detroit'\n        static_configs:\n            - targets: ['wttr.in']\n        metrics_path: '/Detroit'\n        params:\n            format: ['p1']\"><pre class=\"notranslate\">    - <span class=\"pl-ent\">job_name</span>: <span class=\"pl-s\"><span class=\"pl-pds\">'</span>wttr_in_detroit<span class=\"pl-pds\">'</span></span>\n        <span class=\"pl-ent\">static_configs</span>:\n            - <span class=\"pl-ent\">targets</span>: <span class=\"pl-s\">['wttr.in']</span>\n        <span class=\"pl-ent\">metrics_path</span>: <span class=\"pl-s\"><span class=\"pl-pds\">'</span>/Detroit<span class=\"pl-pds\">'</span></span>\n        <span class=\"pl-ent\">params</span>:\n            <span class=\"pl-ent\">format</span>: <span class=\"pl-s\">['p1']</span></pre></div>\n<p dir=\"auto\">The result will look something like the following:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"# HELP temperature_feels_like_celsius Feels Like Temperature in Celsius\ntemperature_feels_like_celsius{forecast=&quot;current&quot;} 7\n# HELP temperature_feels_like_fahrenheit Feels Like Temperature in Fahrenheit\ntemperature_feels_like_fahrenheit{forecast=&quot;current&quot;} 45\n[truncated]\"><pre class=\"notranslate\"><code class=\"notranslate\"># HELP temperature_feels_like_celsius Feels Like Temperature in Celsius\ntemperature_feels_like_celsius{forecast=\"current\"} 7\n# HELP temperature_feels_like_fahrenheit Feels Like Temperature in Fahrenheit\ntemperature_feels_like_fahrenheit{forecast=\"current\"} 45\n[truncated]\n</code></pre></div>\n<p dir=\"auto\">...</p>\n<h2 dir=\"auto\">Moon phases</h2>\n<p dir=\"auto\">wttr.in can also be used to check the phase of the Moon. This example shows how to see the current Moon phase<br>\nin the full-output mode:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Moon\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Moon\n</code></pre></div>\n<p dir=\"auto\">Get the moon phase for a particular date by adding <code class=\"notranslate\">@YYYY-MM-DD</code>:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Moon@2016-12-25\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Moon@2016-12-25\n</code></pre></div>\n<p dir=\"auto\">The moon phase information uses <a href=\"https://github.com/chubin/pyphoon\">pyphoon</a> as its backend.</p>\n<p dir=\"auto\">To get the moon phase information in the online mode, use <code class=\"notranslate\">%m</code>:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/London?format=%m\n🌖\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/London?format=%m\n🌖\n</code></pre></div>\n<p dir=\"auto\">Keep in mind that the Unicode representation of moon phases suffers 2 caveats:</p>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\">With some fonts, the representation <code class=\"notranslate\">🌘</code> is ambiguous, for it either seem<br>\nalmost-shadowed or almost-lit, depending on whether your terminal is in<br>\nlight mode or dark mode. Relying on colored fonts like <code class=\"notranslate\">noto-fonts</code> works<br>\naround this problem.</p>\n</li>\n<li>\n<p dir=\"auto\">The representation <code class=\"notranslate\">🌘</code> is also ambiguous, for it means \"last quarter\" in<br>\nnorthern hemisphere, but \"first quarter\" in souther hemisphere. It also means<br>\nnothing in tropical zones. This is a limitation that<br>\n<a href=\"https://www.unicode.org/L2/L2017/17304-moon-var.pdf\" rel=\"nofollow\">Unicode</a> is aware about.<br>\nBut it has not been worked around at <code class=\"notranslate\">wttr.in</code> yet.</p>\n</li>\n</ul>\n<p dir=\"auto\">See <a class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"3080749650\" data-permission-text=\"Title is private\" data-url=\"https://github.com/awesome-ops/awesome-ops.github.io/issues/247\" data-hovercard-type=\"issue\" data-hovercard-url=\"/awesome-ops/awesome-ops.github.io/issues/247/hovercard\" href=\"https://github.com/awesome-ops/awesome-ops.github.io/issues/247\">#247</a>, <a class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"3080771392\" data-permission-text=\"Title is private\" data-url=\"https://github.com/awesome-ops/awesome-ops.github.io/issues/364\" data-hovercard-type=\"issue\" data-hovercard-url=\"/awesome-ops/awesome-ops.github.io/issues/364/hovercard\" href=\"https://github.com/awesome-ops/awesome-ops.github.io/issues/364\">#364</a> for the corresponding tracking issues,<br>\nand <a href=\"https://github.com/chubin/pyphoon/issues/1\" data-hovercard-type=\"issue\" data-hovercard-url=\"/chubin/pyphoon/issues/1/hovercard\">pyphoon#1</a> for pyphoon. Any help is welcome.</p>\n<h2 dir=\"auto\">Internationalization and localization</h2>\n<p dir=\"auto\">wttr.in supports multilingual locations names that can be specified in any language in the world<br>\n(it may be surprising, but many locations in the world don't have an English name).</p>\n<p dir=\"auto\">The query string should be specified in Unicode (hex-encoded or not). Spaces in the query string<br>\nmust be replaced with <code class=\"notranslate\">+</code>:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/станция+Восток\nWeather report: станция Восток\n\n               Overcast\n      .--.     -65 – -47 °C\n   .-(    ).   ↑ 23 km/h\n  (___.__)__)  15 km\n               0.0 mm\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/станция+Восток\nWeather report: станция Восток\n\n               Overcast\n      .--.     -65 – -47 °C\n   .-(    ).   ↑ 23 km/h\n  (___.__)__)  15 km\n               0.0 mm\n</code></pre></div>\n<p dir=\"auto\">The language used for the output (except the location name) does not depend on the input language<br>\nand it is either English (by default) or the preferred language of the browser (if the query<br>\nwas issued from a browser) that is specified in the query headers (<code class=\"notranslate\">Accept-Language</code>).</p>\n<p dir=\"auto\">The language can be set explicitly when using console clients by using command-line options like this:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"curl -H &quot;Accept-Language: fr&quot; wttr.in\nhttp GET wttr.in Accept-Language:ru\"><pre class=\"notranslate\"><code class=\"notranslate\">curl -H \"Accept-Language: fr\" wttr.in\nhttp GET wttr.in Accept-Language:ru\n</code></pre></div>\n<p dir=\"auto\">The preferred language can be forced using the <code class=\"notranslate\">lang</code> option:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl wttr.in/Berlin?lang=de\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl wttr.in/Berlin?lang=de\n</code></pre></div>\n<p dir=\"auto\">The third option is to choose the language using the DNS name used in the query:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ curl de.wttr.in/Berlin\"><pre class=\"notranslate\"><code class=\"notranslate\">$ curl de.wttr.in/Berlin\n</code></pre></div>\n<p dir=\"auto\">wttr.in is currently translated into 54 languages, and the number of supported languages is constantly growing.</p>\n<p dir=\"auto\">See <a href=\"https://wttr.in/:translation\" rel=\"nofollow\">/:translation</a> to learn more about the translation process,<br>\nto see the list of supported languages and contributors, or to know how you can help to translate wttr.in<br>\nin your language.</p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/b14280936cebb4c05ebc6b673dfb0e95ca9bf452e567cf2681fbbdd972620ca8/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f433768536869445851414553367a312e6a7067\"><img src=\"https://camo.githubusercontent.com/b14280936cebb4c05ebc6b673dfb0e95ca9bf452e567cf2681fbbdd972620ca8/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f433768536869445851414553367a312e6a7067\" alt=\"Queries to wttr.in in various languages\" data-canonical-src=\"https://pbs.twimg.com/media/C7hShiDXQAES6z1.jpg\" style=\"max-width: 100%;\"></a></p>\n<h2 dir=\"auto\">Installation</h2>\n<p dir=\"auto\">To install the application:</p>\n<ol dir=\"auto\">\n<li>Install external dependencies</li>\n<li>Install Python dependencies used by the service</li>\n<li>Configure IP2Location (optional)</li>\n<li>Get a WorldWeatherOnline API and configure wego</li>\n<li>Configure wttr.in</li>\n<li>Configure the HTTP-frontend service</li>\n</ol>\n<h3 dir=\"auto\">Install external dependencies</h3>\n<p dir=\"auto\">wttr.in has the following external dependencies:</p>\n<ul dir=\"auto\">\n<li><a href=\"https://golang.org/doc/install\" rel=\"nofollow\">golang</a>, wego dependency</li>\n<li><a href=\"https://github.com/schachmat/wego\">wego</a>, weather client for terminal</li>\n</ul>\n<p dir=\"auto\">After you install <a href=\"https://golang.org/doc/install\" rel=\"nofollow\">golang</a>, install <code class=\"notranslate\">wego</code>:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"go install github.com/schachmat/wego@latest\"><pre class=\"notranslate\">go install github.com/schachmat/wego@latest</pre></div>\n<h3 dir=\"auto\">Install Python dependencies</h3>\n<p dir=\"auto\">Python requirements:</p>\n<ul dir=\"auto\">\n<li>Flask</li>\n<li>geoip2</li>\n<li>geopy</li>\n<li>requests</li>\n<li>gevent</li>\n</ul>\n<p dir=\"auto\">If you want to get weather reports as PNG files, you'll also need to install:</p>\n<ul dir=\"auto\">\n<li>PIL</li>\n<li>pyte (&gt;=0.6)</li>\n<li>necessary fonts</li>\n</ul>\n<p dir=\"auto\">You can install most of them using <code class=\"notranslate\">pip</code>.</p>\n<p dir=\"auto\">Some python package use LLVM, so install it first:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"apt-get install llvm-7 llvm-7-dev\"><pre class=\"notranslate\">apt-get install llvm-7 llvm-7-dev</pre></div>\n<p dir=\"auto\">If <code class=\"notranslate\">virtualenv</code> is used:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"virtualenv -p python3 ve\nve/bin/pip3 install -r requirements.txt\nve/bin/python3 bin/srv.py\"><pre class=\"notranslate\">virtualenv -p python3 ve\nve/bin/pip3 install -r requirements.txt\nve/bin/python3 bin/srv.py</pre></div>\n<p dir=\"auto\">Also, you need to install the geoip2 database.<br>\nYou can use a free database GeoLite2 that can be downloaded from (<a href=\"http://dev.maxmind.com/geoip/geoip2/geolite2/\" rel=\"nofollow\">http://dev.maxmind.com/geoip/geoip2/geolite2/</a>).</p>\n<h3 dir=\"auto\">Configure IP2Location (optional)</h3>\n<p dir=\"auto\">If you want to use the IP2location service for IP-addresses that are not covered by GeoLite2,<br>\nyou have to obtain a API key of that service, and after that save into the <code class=\"notranslate\">~/.ip2location.key</code> file:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ echo 'YOUR_IP2LOCATION_KEY' &gt; ~/.ip2location.key\"><pre class=\"notranslate\"><code class=\"notranslate\">$ echo 'YOUR_IP2LOCATION_KEY' &gt; ~/.ip2location.key\n</code></pre></div>\n<p dir=\"auto\">If you don't have this file, the service will be silently skipped (it is not a big problem,<br>\nbecause the MaxMind database is pretty good).</p>\n<h3 dir=\"auto\">Installation with Docker</h3>\n<ul dir=\"auto\">\n<li>Install Docker</li>\n<li>Build Docker Image</li>\n<li>These files should be mounted by the user at runtime:</li>\n</ul>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"/root/.wegorc\n/root/.ip2location.key (optional)\n/app/airports.dat\n/app/GeoLite2-City.mmdb\"><pre class=\"notranslate\"><code class=\"notranslate\">/root/.wegorc\n/root/.ip2location.key (optional)\n/app/airports.dat\n/app/GeoLite2-City.mmdb\n</code></pre></div>\n<h3 dir=\"auto\">Get a WorldWeatherOnline key and configure wego</h3>\n<p dir=\"auto\">To get a WorldWeatherOnline API key, you must register here:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"https://developer.worldweatheronline.com/auth/register\"><pre class=\"notranslate\"><code class=\"notranslate\">https://developer.worldweatheronline.com/auth/register\n</code></pre></div>\n<p dir=\"auto\">After you have a WorldWeatherOnline key, you can save it into the<br>\nWWO key file: <code class=\"notranslate\">~/.wwo.key</code></p>\n<p dir=\"auto\">Also, you have to specify the key in the <code class=\"notranslate\">wego</code> configuration:</p>\n<div class=\"highlight highlight-source-json notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"$ cat ~/.wegorc\n{\n\t&quot;APIKey&quot;: &quot;00XXXXXXXXXXXXXXXXXXXXXXXXXXX&quot;,\n\t&quot;City&quot;: &quot;London&quot;,\n\t&quot;Numdays&quot;: 3,\n\t&quot;Imperial&quot;: false,\n\t&quot;Lang&quot;: &quot;en&quot;\n}\"><pre class=\"notranslate\"><span class=\"pl-ii\">$ cat ~/.wegorc</span>\n{\n\t<span class=\"pl-ent\">\"APIKey\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>00XXXXXXXXXXXXXXXXXXXXXXXXXXX<span class=\"pl-pds\">\"</span></span>,\n\t<span class=\"pl-ent\">\"City\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>London<span class=\"pl-pds\">\"</span></span>,\n\t<span class=\"pl-ent\">\"Numdays\"</span>: <span class=\"pl-c1\">3</span>,\n\t<span class=\"pl-ent\">\"Imperial\"</span>: <span class=\"pl-c1\">false</span>,\n\t<span class=\"pl-ent\">\"Lang\"</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>en<span class=\"pl-pds\">\"</span></span>\n}</pre></div>\n<p dir=\"auto\">The <code class=\"notranslate\">City</code> parameter in <code class=\"notranslate\">~/.wegorc</code> is ignored.</p>\n<h3 dir=\"auto\">Configure wttr.in</h3>\n<p dir=\"auto\">Configure the following environment variables that define the path to the local <code class=\"notranslate\">wttr.in</code><br>\ninstallation, to the GeoLite database, and to the <code class=\"notranslate\">wego</code> installation. For example:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"export WTTR_MYDIR=&quot;/home/igor/wttr.in&quot;\nexport WTTR_GEOLITE=&quot;/home/igor/wttr.in/GeoLite2-City.mmdb&quot;\nexport WTTR_WEGO=&quot;/home/igor/go/bin/wego&quot;\nexport WTTR_LISTEN_HOST=&quot;0.0.0.0&quot;\nexport WTTR_LISTEN_PORT=&quot;8002&quot;\"><pre class=\"notranslate\"><span class=\"pl-k\">export</span> WTTR_MYDIR=<span class=\"pl-s\"><span class=\"pl-pds\">\"</span>/home/igor/wttr.in<span class=\"pl-pds\">\"</span></span>\n<span class=\"pl-k\">export</span> WTTR_GEOLITE=<span class=\"pl-s\"><span class=\"pl-pds\">\"</span>/home/igor/wttr.in/GeoLite2-City.mmdb<span class=\"pl-pds\">\"</span></span>\n<span class=\"pl-k\">export</span> WTTR_WEGO=<span class=\"pl-s\"><span class=\"pl-pds\">\"</span>/home/igor/go/bin/wego<span class=\"pl-pds\">\"</span></span>\n<span class=\"pl-k\">export</span> WTTR_LISTEN_HOST=<span class=\"pl-s\"><span class=\"pl-pds\">\"</span>0.0.0.0<span class=\"pl-pds\">\"</span></span>\n<span class=\"pl-k\">export</span> WTTR_LISTEN_PORT=<span class=\"pl-s\"><span class=\"pl-pds\">\"</span>8002<span class=\"pl-pds\">\"</span></span></pre></div>\n<h3 dir=\"auto\">Configure the HTTP-frontend service</h3>\n<p dir=\"auto\">It's recommended that you also configure the web server that will be used to access the service:</p>\n<div class=\"highlight highlight-source-nginx notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"server {\n\tlisten [::]:80;\n\tserver_name  wttr.in *.wttr.in;\n\taccess_log  /var/log/nginx/wttr.in-access.log  main;\n\terror_log  /var/log/nginx/wttr.in-error.log;\n\n\tlocation / {\n\t    proxy_pass         http://127.0.0.1:8002;\n\n\t    proxy_set_header   Host             $host;\n\t    proxy_set_header   X-Real-IP        $remote_addr;\n\t    proxy_set_header   X-Forwarded-For  $remote_addr;\n\n\t    client_max_body_size       10m;\n\t    client_body_buffer_size    128k;\n\n\t    proxy_connect_timeout      90;\n\t    proxy_send_timeout         90;\n\t    proxy_read_timeout         90;\n\n\t    proxy_buffer_size          4k;\n\t    proxy_buffers              4 32k;\n\t    proxy_busy_buffers_size    64k;\n\t    proxy_temp_file_write_size 64k;\n\n\t    expires                    off;\n\t}\n}\"><pre class=\"notranslate\"><span class=\"pl-k\">server</span> {\n\t<span class=\"pl-k\">listen</span> [::]:80;\n\t<span class=\"pl-k\">server_name</span>  wttr.in *.wttr.in;\n\t<span class=\"pl-k\">access_log</span>  /var/log/nginx/wttr.in-access.log <span class=\"pl-c1\"> main</span>;\n\t<span class=\"pl-k\">error_log</span>  /var/log/nginx/wttr.in-error.log;\n\n\t<span class=\"pl-k\">location</span> <span class=\"pl-en\">/ </span>{\n\t    <span class=\"pl-k\">proxy_pass</span>         http://127.0.0.1:8002;\n\n\t    <span class=\"pl-k\">proxy_set_header</span>   Host             <span class=\"pl-smi\">$host</span>;\n\t    <span class=\"pl-k\">proxy_set_header</span>   X-Real-IP        <span class=\"pl-smi\">$remote_addr</span>;\n\t    <span class=\"pl-k\">proxy_set_header</span>   X-Forwarded-For  <span class=\"pl-smi\">$remote_addr</span>;\n\n\t    <span class=\"pl-k\">client_max_body_size</span>       <span class=\"pl-c1\">10m</span>;\n\t    <span class=\"pl-k\">client_body_buffer_size</span>    <span class=\"pl-c1\">128k</span>;\n\n\t    <span class=\"pl-k\">proxy_connect_timeout</span>      <span class=\"pl-s\">90</span>;\n\t    <span class=\"pl-k\">proxy_send_timeout</span>         <span class=\"pl-s\">90</span>;\n\t    <span class=\"pl-k\">proxy_read_timeout</span>         <span class=\"pl-s\">90</span>;\n\n\t    <span class=\"pl-k\">proxy_buffer_size</span>          <span class=\"pl-c1\">4k</span>;\n\t    <span class=\"pl-k\">proxy_buffers</span>              <span class=\"pl-s\">4</span> <span class=\"pl-c1\">32k</span>;\n\t    <span class=\"pl-k\">proxy_busy_buffers_size</span>    <span class=\"pl-c1\">64k</span>;\n\t    <span class=\"pl-k\">proxy_temp_file_write_size</span> <span class=\"pl-c1\">64k</span>;\n\n\t    <span class=\"pl-k\">expires</span>                   <span class=\"pl-c1\"> off</span>;\n\t}\n}</pre></div>","updatedAt":"2025-05-22T01:53:30Z","upvoteCount":null,"author":{"login":"eryajf","avatarUrl":"https://avatars.githubusercontent.com/u/33259379?u=e4a4090a38ac2473aaed4ef9945233636776c6c3&v=4","url":"https://github.com/eryajf"},"category":null,"labels":{"edges":[{"node":{"name":"更多","color":"25B472"}},{"node":{"name":"命令行工具","color":"e05879"}},{"node":{"name":"chubin","color":"73564b"}}]},"comments":{"edges":[]}}},"pageContext":{"number":613,"previous":{"title":"axetroy/wsm: 通过 Web 来管理远端服务器，简易的堡垒机","number":612},"next":{"title":"enix/x509-certificate-exporter: Prometheus 导出器用于监控 Kubernetes 集群或独立系统中的 x509 证书过期情况","number":614}}},
    "staticQueryHashes": ["151096407","2861350382"]}