Weatherman: weather from command line

I have found a nice piece of software that can provide current weather data and nice forecast for 7 days from command line. It is the Weatherman and it is a bash script which uses data from the WeatherBug.com. Of course it uses external program (the curl) for the actual download of the data.

Trees on Smrk 3

The use is very simple:

weatherman -x budapest,hungary                    

Extended Forecast for budapest, Hungary

TUE       2 C  50% Chance of Light Snow    -2 C  windy
WED       1 C  Mostly Cloudy               -2 C  Mostly Cloudy
THU       4 C  30% Chance of Frozen Mix    -1 C  50% Chance of Rain
FRI       4 C  Rain                        -1 C  Mostly Cloudy
SAT       6 C  Partly Cloudy               -1 C  Rain
SUN       6 C  Rain                         0 C  windy
MON       9 C  Partly Cloudy

Data provided by WeatherBug.com

If the -x is not used then the current situation is shown:

Current Conditions for budapest, Hungary
Reported by Budapest (Ferihegy) @ Mar 25, 2013 9:30 PM

Temp: -2 C
Today: 50% Chance of Light Snow
Tonight: windy

High: 2 C          Wind Speed: NNE 13    Rain: 0.00mm
Low: -2 C          Gust: E 29            Rain/Month: 0.00mm
Feels Like: -6 C   Avg Wind: NNE 13      Sunrise: 5:36 AM
Humidity: 100%     Pressure: 1007.12mb   Sunset: 6:02 PM
Dew Point: -2 C                          Moonphase: Full

Data provided by WeatherBug.com

One can save the default site with the -S parameter. An it is possible to customize the output (the details can be found in the manual page).

I think that it’s a very nice tool.

Advertisements
Weatherman: weather from command line

Czech trains vs Ben NanoNote WiFi

I only have used the WiFi connection on the Ostrava-Prague railway so far. There are three companies but I have personal experience only with tho of them.

The setup for Czech Railways:

iwconfig eth0 mode Managed
iwconfig eth0 essid CDWiFi

echo "nameserver `udhcpc |grep dns |grep server |cut -d' ' -f5`">/etc/resolv.conf

The last line is needed to fix DNS problems on my setup (it may be unnecessary on your).

The setup for the RegioJet:

iwconfig eth0 mode Managed
iwconfig eth0 essid ZLUTY
echo "nameserver `udhcpc |grep dns |grep server |cut -d' ' -f5`">/etc/resolv.conf

Of course you have to have the WiFi card for your Ben to be able use these settings…

Czech trains vs Ben NanoNote WiFi

Ben NanoNote news: DOSBox, ubbctl

As you may noticed, there are several new pieces of software available for the Ben NanoNote:

  • A tool for easier work with the UBB expansion card – the ubbctrl. Also a library for this purpose is available.
  • The DOSBox (a DOS operating system emulator: it might be little slow but it still can be useful for old software and games). Also some native (non-DOS) games are available from the same source. Unfortunately my OpenWRT install is too old to be able to run it – may I have to update it?
Ben NanoNote news: DOSBox, ubbctl

Psion MC600 software

I have been using my Psion MC600 for some time. So what works here?

  • The text editor: there are many of them but I use the vi text editor (actually the XVI clone). I works well and it’s fast enough.
  • The spreadsheet: the text-only sc 6.21. It is limited in some areas (there is no data sorting, for example) but it can do a lot of work (plus I use it on my other machines). It’s acceptably fast.
  • The graph plotting software: the Gnuplot, of course. The 3.5 version works well here.
  • The communication software and printing: the MC600 has by default a serial port and a parallel port. It is possible to connect a parallel line printer and print text files by issuing the copy file.txt prn command (or use a more advanced printer). One can use the parallel port for data transfer to a from the Atari Portfolio if one has the FT.COM program. But for communication with other computers I use the Kermit package. I have tried it as a serial console emulator (to connect to my SGI O2 machine) and also for file transfer via the serial port. It have worked in both cases (the only problem was to find right cables: the MC600 serial port has little strange size – it’s not an old Macintosh-style serial port; the cable from Psion Series 3a can be used but is is not a null-modem cable so one should use the null-modem converter).
  • The C compiler (I even didn’t thought about other languages): there are two obvious options – the free DesMet C Compiler (K&R syntax only) and a commercial Power C compiler (it’s still being sold!) which is ANSI 89 compatible (it also includes some POSIX-style extensions which is nice).

The hardware is very similar to the MC400 but it is better in some areas (a larger build-in memory) and worse in others (a lower screen resolution, no touchpad, a lack of some connectors) because the MC400 uses a proprietary operating system which was written for it but the MC600 uses less or more standard DOS operating system with all its needs and limitations. The graphics card is a CGA which is a problem for me: I can’t load localised fonts so I can’t see Czech texts here (the machine is a German version).

Psion MC600 software