Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.
geonames database
Βάση δεδομένων geonames{ degrees} {sign} {minutes}
Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :
methods for geonames
Μέθοδοι για geonames
Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :
geonames. org query
geonames. org Ερώτηση @ action: button query geonames. org
Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :
creating function geonames
Δημιουργία συνάρτησης geonames
Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :
allows searching geonames database
Επιτρέπει την αναζήτηση στην βάση δεδομένων geonames
Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :
please wait while querying geonames. org...
Παρακκλώ περιμένετε, γίνετε ερώτηση στο geonames. org... @ action: button waiting for geonames. org search to finish
Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :
nepomuk annotation plugin which tries to relate to geographical things such as cities from geonames
Πρόσθετο σημείωσης του nepomuk που προσπαθεί να συσχετίσει γεωγραφικά στοιχεία όπως πόλεις με το geonamesname
Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :
function geonames(station) { this.station = station;}geonames.prototype = {}
function geonames(station) { this.station = station;}geonames.prototype = {}
Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :
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{}
Εδώ δημιουργούμε τη συνάρτηση geonames που θα χειριστεί τη λήψη καιρού για μας. Το javascript επιτρέπει τη δημιουργία συναρτήσεων που έχουν λίγο μέσα στην αρχή και αργότερα τις επεκτείνει. Αυτό θα γίνει μέσα στα άγκιστρα {} του geonames.prototype
Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :
#!/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();
#!/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