If that won't work, how come I can't do this in MPL:
MenuCmd('DD',Patch+'wu.sh summary |UC');
It does not resolve to ohio dayton (for example), it show up as "|UC"!
Hello,to
On Thu Dec 28 2017 21:35:56 GMT, Terry Rankin -> All wrote:
If that won't work, how come I can't do this in MPL:
MenuCmd('DD',Patch+'wu.sh summary |UC');
It does not resolve to ohio dayton (for example), it show up as "|UC"!
I'm no MPL guru or anything, but have you tried taking the |UC out of quotes:
MenuCmd('DD',Patch+'wu.sh summary'+|UC);
And if that doesn't work, maybe there's an MPL function that you're supposed
use specifically when trying to print out MCI codes?
Regards,
Nick
Need to pass State and City (parameters) into the uweather program.
If that won't work, how come I can't do this in MPL:
MenuCmd('DD',Patch+'wu.sh summary |UC');
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.
If that won't work, how come I can't do this in MPL:
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'));
On Saturday, December 30, 2017 at 12:35:28 AM UTC-5, g00r00 wrote:'dummy'.
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.
If that won't work, how come I can't do this in MPL:
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
Thanks again!
Terry
On Saturday, December 30, 2017 at 1:53:59 PM UTC-5, Terry Rankin wrote:add
On Saturday, December 30, 2017 at 12:35:28 AM UTC-5, g00r00 wrote:
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
is:this in for you.
If that won't work, how come I can't do this in MPL:
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
'dummy'.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
Meaning no comma or slash or any other variation. Probably could add a couple more lines of code to groom out any unwanted characters.Thanks again!
Terry
Of course this will only work if your account location is "state city".
You absolutely ROCK my friend! :)
Works perfectly!!!
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,042 |
Nodes: | 16 (0 / 16) |
Uptime: | 00:26:23 |
Calls: | 500,919 |
Calls today: | 6 |
Files: | 109,372 |
D/L today: |
15,025 files (2,349M bytes) |
Messages: | 305,059 |
Posted today: | 7 |