Giter Site home page Giter Site logo

showtemp's Introduction

Showtemp

Show the current temprature, sunshine and precipitation for a location in Switzerland.

This is nothing fancy at all, I just wanted to learn a bit of Rust.

Building

You need the current nightly version of Rust to build this. I used 0.13.0.

$ cargo build
Compiling unsafe-any v0.1.1 (https://github.com/reem/rust-unsafe-any#eb3fe87b)
Compiling gcc v0.1.1 (https://github.com/alexcrichton/gcc-rs#d35c34c8)
Compiling mucell v0.1.2 (https://github.com/chris-morgan/mucell#d198c660)
Compiling url v0.2.4 (https://github.com/servo/rust-url#79f8034a)
Compiling mime v0.0.1 (https://github.com/hyperium/mime.rs#7898f1c2)
Compiling pkg-config v0.1.1
Compiling openssl-sys v0.2.3 (https://github.com/sfackler/rust-openssl#9754b8e4)
Compiling time v0.1.2 (https://github.com/rust-lang/time#0e923089)
Compiling openssl v0.2.3 (https://github.com/sfackler/rust-openssl#9754b8e4)
Compiling cookie v0.1.0 (https://github.com/alexcrichton/cookie-rs#272ac27b)
Compiling hyper v0.0.1 (https://github.com/hyperium/hyper#d19cfed4)
Compiling showtemp v0.0.1 (file:///home/danilo/Projects/showtemp)

Example

Just start the binary with a 3 letter station as argument.

$ target/showtemp SMA
3.8C 10h 0mm

Possible stations:

ABO (Adelboden)
AIG (Aigle)
ALT (Altdorf)
AND (Andeer)
ATT (Les Attelas)
BAS (Basel / Binningen)
BER (Bern / Zollikofen)
BEZ (Beznau)
BIE (Bière)
BIZ (Bischofszell)
BOL (Boltigen)
BOU (Bouveret)
BRZ (Brienz)
BUF (Buffalora)
BUS (Buchs / Aarau)
CDF (La Chaux-de-Fonds)
CGI (Nyon / Changins)
CHA (Chasseral)
CHD (Château-d'Oex)
CHU (Chur)
CIM (Cimetta)
CMA (Crap Masegn)
COM (Acquarossa / Comprovasco)
COV (Piz Corvatsch)
CRM (Cressier)
DAV (Davos)
DEM (Delémont)
DIS (Disentis / Sedrun)
DOL (La Dôle)
EBK (Ebnat-Kappel)
EGH (Eggishorn)
EGO (Egolzwil)
EIN (Einsiedeln)
ELM (Elm)
ENG (Engelberg)
EVO (Evolène / Villa)
FAH (Fahy)
FRE (Bullet / La Frétaz)
GEN (Monte Generoso)
GIH (Giswil)
GLA (Glarus)
GOE (Gösgen)
GOR (Gornergrat)
GRA (Fribourg / Posieux)
GRE (Grenchen)
GRH (Grimsel Hospiz)
GRO (Grono)
GSB (Col du Grand St-Bernard)
GUE (Gütsch ob Andermatt)
GUT (Güttingen)
GVE (Genève-Cointrin)
HAI (Salen-Reutenen)
HLL (Hallau)
HOE (Hörnli)
INT (Interlaken)
JUN (Jungfraujoch)
KLO (Zürich / Kloten)
KOP (Koppigen)
LAE (Lägern)
LAG (Langnau i.E.)
LEI (Leibstadt)
LUG (Lugano)
LUZ (Luzern)
MAG (Magadino / Cadenazzo)
MER (Meiringen)
MLS (Le Moléson)
MOA (Mosen)
MOE (Möhlin)
MRP (Monte Rosa-Plattje)
MUB (Mühleberg)
MVE (Montana)
NAP (Napf)
NAS (Naluns / Schlivera)
NEU (Neuchâtel)
ORO (Oron)
OTL (Locarno / Monti)
PAY (Payerne)
PIL (Pilatus)
PIO (Piotta)
PLF (Plaffeien)
PMA (Piz Martegnas)
PRE (St-Prex)
PUY (Pully)
QUI (Quinten)
RAG (Bad Ragaz)
REH (Zürich / Affoltern)
ROB (Poschiavo / Robbia)
ROE (Robièi)
RUE (Rünenberg)
SAE (Säntis)
SAM (Samedan)
SBE (S. Bernardino)
SBO (Stabio)
SCM (Schmerikon)
SCU (Scuol)
SHA (Schaffhausen)
SIO (Sion)
SMA (Zürich / Fluntern)
SMM (Sta. Maria
Val Müstair)
SPF (Schüpfheim)
STG (St. Gallen)
STK (Steckborn)
TAE (Aadorf / Tänikon)
THU (Thun)
TIT (Titlis)
ULR (Ulrichen)
VAB (Valbella)
VAD (Vaduz)
VIS (Visp)
WAE (Wädenswil)
WFJ (Weissfluhjoch)
WYN (Wynau)
ZER (Zermatt)

License

GPLv3 License.

showtemp's People

Contributors

dbrgn avatar

Stargazers

Rust avatar Oleg Lavrovsky avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

classicvalues

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.