home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   BBBS.ENGLISH      The International BBBS Support Echo      2,762 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,776 of 2,762   
   Janis Kracht to All   
   Weather door   
   05 Feb 17 12:59:02   
   
   Kim brought some things to my attention with my weather door... this is   
   definitely a better way to do it (thanks Kim :))   
      
   //weather door   
   int main() {   
   char cs,ga,cc,sp,cg,x;   
   cs="";   
   int l;   
   char curl_cmd;   
   bbbs("cls");   
      
   printf("\e[1;1H\e[1;33mTo get the weather for names containing spaces,");   
   printf("\e[2;1H\e[1;33menter the name in quotes or use an underscore");   
   printf("\e[3;1H\e[1;33mfor example, both \"new york\" and new_york work.");   
   printf("\e[4;1H\e[1;33m Or enter your Zip Code if you prefer.");   
   printf("\n\n");   
   cs=input("Enter City:    ",50,0);   
   cc=sprintf("\"%s\"",cs);   
   curl_cmd = sprintf("/usr/bin/curl -o weather.tmp -s wttr.in/%s", cc);   
   system(curl_cmd, 1, 0);   
   system("/usr/bin/head -n 17 weather.tmp", 1, 0); printf("\e[40;1H\e[1;33mPress   
   a key to continue"); getch();   
   remove("weather.tmp");   
   bbbs("cls");   
   }   
   //end weather door   
      
   Much safer for your system this way :)   
      
   Take care,   
   Janis   
      
   --- BBBS/Li6 v4.10 Toy-3   
    * Origin: Prism bbs (1:261/38)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca