Vous avez cherché: geonames (Anglais - Grec)

Anglais

Traduction

geonames

Traduction

Grec

Traduction
Traduction

Traduisez instantanément des textes, des documents et des voix avec Lara

Traduire maintenant

Contributions humaines

Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.

Ajouter une traduction

Anglais

Grec

Infos

Anglais

geonames database

Grec

Βάση δεδομένων geonames{ degrees} {sign} {minutes}

Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :

Anglais

methods for geonames

Grec

Μέθοδοι για geonames

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Anglais

geonames. org query

Grec

geonames. org Ερώτηση @ action: button query geonames. org

Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :

Anglais

creating function geonames

Grec

Δημιουργία συνάρτησης geonames

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Anglais

allows searching geonames database

Grec

Επιτρέπει την αναζήτηση στην βάση δεδομένων geonames

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Anglais

please wait while querying geonames. org...

Grec

Παρακκλώ περιμένετε, γίνετε ερώτηση στο geonames. org... @ action: button waiting for geonames. org search to finish

Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :

Anglais

nepomuk annotation plugin which tries to relate to geographical things such as cities from geonames

Grec

Πρόσθετο σημείωσης του nepomuk που προσπαθεί να συσχετίσει γεωγραφικά στοιχεία όπως πόλεις με το geonamesname

Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :

Anglais

function geonames(station) { this.station = station;}geonames.prototype = {}

Grec

function geonames(station) { this.station = station;}geonames.prototype = {}

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Anglais

here we create the function geonames that will handle getting weather for us. javascript allows us to create functions that have little inside at first and later expand them. this will be done inside the geonames.prototype curly braces{}

Grec

Εδώ δημιουργούμε τη συνάρτηση geonames που θα χειριστεί τη λήψη καιρού για μας. Το javascript επιτρέπει τη δημιουργία συναρτήσεων που έχουν λίγο μέσα στην αρχή και αργότερα τις επεκτείνει. Αυτό θα γίνει μέσα στα άγκιστρα {} του geonames.prototype

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Anglais

#!/usr/bin/gjs//the previous line is a hash bang tells how to run the script.// note that the script has to be executable (run in terminal in the right folder: chmod +x scriptname)var gtk = imports.gi.gtk;const weatherservice = imports.geonames;//bring your own library from same folder (as set in gjs_path). if using autotools .desktop will take care of this// initialize the gtkgtk.init(null, 0);//create your window, name it and connect the x to quit function. remember that window is a taken wordvar weatherwindow = new gtk.window({type: gtk.windowtype.toplevel});weatherwindow.title = \"todays weather\";//window only accepts one widget and a title. further structure with gtk.boxes of similarweatherwindow.connect(\"destroy\", function(){gtk.main_quit()});//we initialize the icon here, but deside the file later in geonames.js.var weathericon = new gtk.image();//set some labels to your windowvar label1 = new gtk.label({label: \"\"});var label2 = new gtk.label({label: \"looking in the sky...\"});var label3 = new gtk.label({label: \"\"});var grid = new gtk.grid();weatherwindow.add(grid);var entry = new gtk.entry();entry.set_width_chars(4);entry.set_max_length(4);var label4 = new gtk.label({label: \"enter icao station for weather: \"});var button1 = new gtk.button({label: \"search!\"});//some weatherentry.connect(\"key_press_event\", function(widget, event) { // fixme: get weather on enter (key 13) if (entry.get_text().length === 4) { // enough is enough getweatherforstation(); } return false;});button1.connect(\"clicked\", function(){ getweatherforstation();});function getweatherforstation() { var station = entry.get_text(); var geonames = new weatherservice.geonames(station); //\"efhf\"; geonames.getweather(function(error, weather) { //this here works bit like signals. this code will be run when we have weather. if (error) { label2.set_text(\"suggested icao station does not exist try efhf\"); return; } weathericon.file = geonames.geticon(weather); label1.set_text(\"temperature is \" + weather.weatherobservation.temperature + \" degrees.\"); if (weather.weatherobservation.weathercondition !== \"n/a\"){ label2.set_text(\"looks like there is \" + weather.weatherobservation.weathercondition + \" in the sky.\"); } else { label2.set_text(\"looks like there is \" + weather.weatherobservation.clouds + \" in the sky.\"); } label3.set_text(\"windspeed is \" + weather.weatherobservation.windspeed + \" m/s\") // ... });}grid.attach(label4, 2, 1, 1, 1);grid.attach_next_to(label1,label4,3,1,1);grid.attach_next_to(label2,label1,3,1,1);grid.attach_next_to(label3,label2,3,1,1);grid.attach_next_to(entry,label4,1,1,1);grid.attach_next_to(button1,entry,1,1,1);grid.attach_next_to(weathericon,label2,1,1,1)weatherwindow.show_all();//and run itgtk.main();

Grec

#!/usr/bin/gjs//Η προηγούμενη γραμμή αρχίζει με δίεση-θαυμαστικό που λέει π να εκτελεστεί το σενάριο.// Σημειώστε ότι το σενάριο πρέπει να είναι εκτελέσιμο (εκτέλεση σε τερματικό στον δεξιό φάκελο: chmod +x scriptname)var gtk = imports.gi.gtk;const weatherservice = imports.geonames;//Μεταφορά της δικής σας βιβλιοθήκης από τον ίδιο φάκελο (όπως ορίστηκε στο gjs_path). Αν χρησιμοποιείτε autotools .desktop θα φροντίσει για αυτό// Αρχικοποίηση της gtkgtk.init(null, 0);//Δημιουργία του παραθύρου σας, ονομασία του, και σύνδεση του x με τη συνάρτηση εξόδου. Να θυμάστε ότι το παράθυρο είναι μια δεσμευμένη λέξηvar weatherwindow = new gtk.window({type: gtk.windowtype.toplevel});weatherwindow.title = \"todays weather\";//Το παράθυρο δέχεται μόνο ένα γραφικό στοιχείο και έναν τίτλο. Παραπέρα δομή όμοια μεgtk.boxesweatherwindow.connect(\"destroy\", function(){gtk.main_quit()});//we initialize the icon here, but deside the file later in geonames.js.var weathericon = new gtk.image();//Ορισμός μερικών ετικετών στο παράθυρό σαςvar label1 = new gtk.label({label: \"\"});var label2 = new gtk.label({label: \"looking in the sky...\"});var label3 = new gtk.label({label: \"\"});var grid = new gtk.grid();weatherwindow.add(grid);var entry = new gtk.entry();entry.set_width_chars(4);entry.set_max_length(4);var label4 = new gtk.label({label: \"enter icao station for weather: \"});var button1 = new gtk.button({label: \"search!\"});//Κάποιος καιρόςentry.connect(\"key_press_event\", function(widget, event) { // fixme: Λήψη καιρού με την εισαγωγή (πλήκτρο 13) if (entry.get_text().length === 4) { // enough is enough getweatherforstation(); } return false;});button1.connect(\"clicked\", function(){ getweatherforstation();});function getweatherforstation() { var station = entry.get_text(); var geonames = new weatherservice.geonames(station); //\"efhf\"; geonames.getweather(function(error, weather) { //Αυτό εδώ δουλεύει λίγο σαν σήματα. Αυτός ο κώδικας θα εκτελεστεί όταν έχουμε καιρό. if (error) { label2.set_text(\"suggested icao station does not exist try efhf\"); return; } weathericon.file = geonames.geticon(weather); label1.set_text(\"temperature is \" + weather.weatherobservation.temperature + \" degrees.\"); if (weather.weatherobservation.weathercondition !== \"n/a\"){ label2.set_text(\"looks like there is \" + weather.weatherobservation.weathercondition + \" in the sky.\"); } else { label2.set_text(\"looks like there is \" + weather.weatherobservation.clouds + \" in the sky.\"); } label3.set_text(\"windspeed is \" + weather.weatherobservation.windspeed + \" m/s\") // ... });}grid.attach(label4, 2, 1, 1, 1);grid.attach_next_to(label1,label4,3,1,1);grid.attach_next_to(label2,label1,3,1,1);grid.attach_next_to(label3,label2,3,1,1);grid.attach_next_to(entry,label4,1,1,1);grid.attach_next_to(button1,entry,1,1,1);grid.attach_next_to(weathericon,label2,1,1,1)weatherwindow.show_all();//και εκτέλεσή τουgtk.main();

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Avertissement : un formatage HTML invisible est présent

Obtenez une traduction de meilleure qualité grâce aux
10,190,071,085 contributions humaines

Les utilisateurs demandent maintenant de l'aide :



Nous utilisons des cookies pour améliorer votre expérience utilisateur sur notre site. En poursuivant votre navigation, vous déclarez accepter leur utilisation. En savoir plus. OK