Subj : Re: Customizing underground weather bbs application To : Terry Rankin From : Terry Rankin Date : Sat Dec 30 2017 11:09 am On Saturday, December 30, 2017 at 1:58:20 PM UTC-5, Terry Rankin wrote: > On Saturday, December 30, 2017 at 1:53:59 PM UTC-5, Terry Rankin wrote: > > On Saturday, December 30, 2017 at 12:35:28 AM UTC-5, g00r00 wrote: > > > TR> Need to pass State and City (parameters) into the uweather program. > > > > > > These are not part of the door command line codes, but I could probably add > > > this in for you. > > > > > > TR> If that won't work, how come I can't do this in MPL: > > > TR> > > > TR> MenuCmd('DD',Patch+'wu.sh summary |UC'); > > > > > > You have to convert it with MCI2STR. It'd be like this: > > > > > > MenuCmd('DD', Patch + 'wu.sh summary ' + mci2str('UC')); > > > > You absolutely ROCK my friend! :) > > > > Works perfectly!!! > > > > You those who have this weather app (XQ-UWEATHER.ZIP), all you have to do is: > > modify wu.sh (Right under the apikey entry, modify state and city): > > state=$2 > > city=$3 > > > > and modify all the MenuCmd lines in xq-uweather.mps to add + mci2str('UC') > > Note the first MenuCmd line will change... > > From: > > MenuCmd('DD', Patch + 'wu.sh'); > > To: > > MenuCmd('DD', Patch + 'wu.sh dummy ' + mci2str('UC')); > > > > The first part of the program doesn't use the first parameter...hence the 'dummy'. > > > > Thanks again! > > Terry > > Of course this will only work if your account location is "state city". Meaning no comma or slash or any other variation. Probably could add a couple more lines of code to groom out any unwanted characters. Ok..last thing. In wu.sh, there is some condition logic (If/else statements) that check if the json data already exists or older than 7200 seconds (2 hours)...get rid of that logic to query/refresh every time the script is executed. Underground Weather API developers license is up to 10 times per minute...should be ok here. :) --- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .