Re: Use //c to show ftp weather from Bureau of Meteorology
- From: datajerk <datajerk@xxxxxxxxx>
- Date: Wed, 23 Jun 2010 10:19:18 -0700 (PDT)
On Jun 22, 2:44 am, phil <pjwy...@xxxxxxxxx> wrote:
Hello All,
Thanks for help in the past..
If my //c could run vt terminal emulation, and connect through serial
to an adjacent PC, I believe it may be able to display a text file
from ftp transfer over the internet.
I would love my Apple // to be an up to date weather machine.
The Bureau of Meterology gives Sydney weather via ftp: Seehttp://www.bom.gov.au/other/Ftp.shtml
andftp://ftp2.bom.gov.au/anon/gen/fwo/IDN10064.txtfor the actual
text I would love to interface to my Apple.
Could someone with more experience than I please share the mysteries
of how I might arrange for my A2 to receive or request the ftp page
and be useful every minute of the day?
Thanks very much for any assistance,
Phillip Wylie.
Another option would be to use a single port serial server. You can
find them on eBay. I picked up a Lantronix MSS1-T for about $10 a few
years ago. Here is an example of another $10 unit (http://
cgi.ebay.com/Black-Box-LES2700A-100-Serial-Ethernet-Server-/
350368622477?cmd=ViewItem&pt=LH_DefaultDomain_0&hash=item519398e78d).
You'll need to read the docs before purchase, but most, if not all of
them should support an outbound telnet connection. You should be able
to connect your //c serial to the serial port of the server, then
using any VT100 terminal software connect to the "black box" and then
telnet out.
You'll need to Ethernet connect the box to your home network/router.
You'll also need a Telnet destination. Newer units probably support
SSH. My ISP offers shell accounts so I can just connect to that, then
I can use wget or ftp to get the file and then use less or more to
display it. Some dial-up modem software packages support some type of
scripting, so you should be able to automate it.
If you want to stick with your PC connection, you can try PPP or SLIP
with a //c FTP client--assuming that all that exists for the II
series. Or, you can make your PC look like a serial server. If
running Windows install Cygwin/X and then put a getty on a COM port,
then from the //c use any VT100 model package to connect and login to
the PC. You'll then have a UNIX shell that you can wget/ftp from.
With Linux this is very easy. Dunno about OS/X, but it's UNIX, so I
assume you setup a serial login.
I wrote this 5 years ago (http://xcat.org/doc/1.x/windows-HOWTO.html)
so it may be out of date, but step #12 shows how to setup a serial
login on a Windows machine with Cygwin. If you tell me more about
your 'PC' I can probably test and doc this for you from my //c. If
you go this route and your 'PC' is on the net then you'd follow this
logic:
1. Login to PC with //c VT100 modem package (Surely one exists).
Worse case use the 'terminal' example from the SSC docs via BASIC.
2. Type: wget ftp://ftp2.bom.gov.au/anon/gen/fwo/IDN10064.txt
3. Type: less IDN10064.txt
4. Use arrow keys to scroll around, 'q' to exit
5. Type 'exit' to exit.
If you set your BPS rate low you can probably skip steps 3-5 and type:
while :; do wget ftp://ftp2.bom.gov.au/anon/gen/fwo/IDN10064.txt; cat
IDN10064.txt ; sleep 2; done
That will loop forever snagging the file, dumping it to screen (slowly
because of the low BPS), then will sleep for 2 secs (use this to CTRL-
C out if you like), then will start all over.
If you put that in your .bashrc file in your home directory then
anytime you login it will be automated (we may need to make it a bit
more robust and check for SIGHUP so that it exits if you disco the //
c, but we can worry about that later :-).
Anyway, that is one of a zillion ways to do this.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Use //c to show ftp weather from Bureau of Meteorology
- Next by Date: Re: Use //c to show ftp weather from Bureau of Meteorology
- Previous by thread: Re: Use //c to show ftp weather from Bureau of Meteorology
- Next by thread: Re: Use //c to show ftp weather from Bureau of Meteorology
- Index(es):
Relevant Pages
|