Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to The International BBBS Support E...  <--  <--- Return to Home Page
   Networked Database  The International BBBS Support E...   [231 / 234] RSS
 From   To   Subject   Date/Time 
Message   Janis Kracht    All   Weather door   February 5, 2017
 12:59 PM *  

Kim brought some things to my attention with my weather door... this is
definitely a better way to do it (thanks Kim <img src=)"/>

//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)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to The International BBBS Support E...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0895 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_720lilcgobtq956oh5d87nhkp0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_720lilcgobtq956oh5d87nhkp0, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_720lilcgobtq956oh5d87nhkp0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0