Code Monkey home page Code Monkey logo

metar's Issues

libcurl4-nss-dev is not compatible

$ src/metar -v -d kiad
Retrieving URL https://tgftp.nws.noaa.gov/data/observations/metar/stations/KIAD.TXT
*   Trying 140.90.101.79...
* TCP_NODELAY set
* Connected to tgftp.nws.noaa.gov (140.90.101.79) port 443 (#0)
* Initializing NSS with certpath: none
* WARNING: failed to load NSS PEM library libnsspem.so. Using OpenSSL PEM certificates will not work.
* Curl_http_done: called premature == 0
* Closing connection 0
curl error: Problem with the SSL CA cert (path? access rights?) [77]

Looks like this is the bug
Fix is to uninstall libcurl4-nss-dev and install libcurl4-openssl-dev

Formatting Consistency

The source seems to have a mix of tabs and spaces. Any interest in a PR to standardize on one or the other?

Thanks!

MPS (meters per second) support

Hi,

The program should support wind in meters per second, which is common for Russia and some other countries. Currently this is causing erroneous output:

UUEE 231300Z 27006MPS 9999 SCT049 08/M02 Q1019 R24R/CLRD62 R24L/CLRD62 NOSIG
...
Parsing token `27006MPS'
   Unmatched token = 27006MPS
...
Wind direction: 0 (N)
Wind speed    : 0
Wind gust     : 0

My regex skill aren't up to par, otherwise I would help out. Thanks!

list metar stations

maybe depend on weather-util-data and make some script to list /usr/share/weather-util/stations.gz ?

say I want to view the METAR info of a station in switzerland (all with /LS):
metar -d $(zcat /usr/share/weather-util/stations.gz |grep /LS | sed 's,.*/,,g;s,.TXT,,g' | iselect -a)

more work on debian packaging, commit access?

the debian/rules could likely be just this:

#!/usr/bin/make -f
%:
dh $@

could you give me access to the repo here? i'd like to test & commit this, targetted for metar in debian after buster.

Bye,

Joost

Prefixes

Some of the prefixes are not written according to the SI norm and the degree sign is missing entirely.

Knots: kt (has to be lowercase)
Meters: m (has to be lowercase)
Miles: mi (has to be lowercase)
Degrees Celsius: °C (needs a leading degree sign)
Degrees Fahrenheit: °F (needs a leading degree sign)

Norms and rules are usually to be observed in international aviation, and this should also be reflected in programs.
I hope it can be corrected when the opportunity arises.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.