Commit Graph

177 Commits (947a39800fec73f98e7d94e1a50707cbc44b7373)

Author SHA1 Message Date
Jens Lody 947a39800f Abort possibly running Soup.session when extension is disabled. 11 years ago
Jens Lody 270162733f Reparse data on each connect-event, if the network is available. 11 years ago
Jens Lody cec89bce08 Invalidate data, if the physical network connection exists, but the server can not be reached or does not send data. 11 years ago
Jens Lody 8bb7406ba9 Disconnect network monitor if the extension gets stopped. 11 years ago
Jens Lody 62090c48c5 Do not use can_reach_async to determine if the host is available, because it does not work (reliable). Just monitor if network is available or not. 11 years ago
Jens Lody c4720f39f7 Another small fix for network monitoring 11 years ago
Jens Lody d50365a8ac Fix minor error (typo), that could lead to an error message in system log if network is offline. 11 years ago
Jens Lody 4b01cf9ff1 Make more use of "Lang.bind" to make this be known in closures 11 years ago
Jens Lody 10e6e7ac56 use GNetworkMonitor to monitor network connectivity, auto-reload if (re-)connected 11 years ago
Jens Lody 781d9a2cd3 Make forecastbox scroll- and panable. 11 years ago
Jens Lody b025c21667 Show correct icon if condition code is 741 (fog). 11 years ago
Jens Lody fffe8fc1b3 Only use Soup.SessionAsync for gnome-shell < 3.8, because it's deprecated now and leads to many tcp retransmissions; use Soup.Session instead for version >= 3.8 . 11 years ago
Jens Lody a92e5d2268 Change name and schema from YAWE/weather to OpenWeather/openweather 11 years ago
Jens Lody 7d2ce46757 First try gnome-open and use xdg-open as fallback, to open openweathermap.org in browser. 11 years ago
Jens Lody 0e3c13f4b3 Use api-key, when calling openweathermap.org via the menu. 11 years ago
Jens Lody 026845154e Add date to forecasts, sometimes easier to read then just the weekday and "in xxx days" 11 years ago
Jens Lody 0fa1fdb477 Add link to openweathermap.org in menu; uses gnome-open to open forecast page of the actual city if possible, fallback is openweathermaps main page. 11 years ago
Jens Lody 7668a84f33 Fix incorrect date-conversion for sunrise and sunset. 11 years ago
Jens Lody 61aae82e3a Hide forecast while rebuilding UI, fixes optical glitch. 11 years ago
Jens Lody 8db3bc02d9 Hide forecast while rebuilding UI, fixes optical glitch. 11 years ago
Jens Lody 30c0ec74b1 Fix lastBuildDate sometimes being shown as 00:00 11 years ago
Jens Lody 8a773ff1b7 Tiny code-changes: x == undefined instead of typeof x == "undefined" 11 years ago
Jens Lody 0f487f49ad Fix lastBuildDate sometimes being shown as 00:00 11 years ago
Jens Lody a7a0d3c045 Tiny code-changes: x == undefined instead of typeof x == "undefined" 11 years ago
Jens Lody 476e9f6c4c Use *-night icons for current weather if current time is before sunrise or after sunset. 11 years ago
Jens Lody b7daa6cfe0 Use *-night icons for current weather if current time is before sunrise or after sunset. 11 years ago
Jens Lody 8c34a0c557 For gnome-shell version 3.6, we still need Soup.SeesionAsync with explicitely set ProxResolver . 11 years ago
Jens Lody 5639b31077 Fix when anylyzing last build time. 11 years ago
Jens Lody a13254d81e Format fixes, remove lines, that have been commented out. 11 years ago
Jens Lody 142ca04700 Cache weatherdata between two updates, only change of location or explicit click on reload-button triggers a reload of weatherdata. Reduces server load on openweathermap.org . 11 years ago
Jens Lody bc65d7e44f Do not use deprecated Soup.SessionAsync . 11 years ago
Jens Lody 34f5b09c09 Add possibility to use personal API key from openweathermap.org 11 years ago
Jens Lody 0ed38bb33e add missing comma 11 years ago
Jens Lody e821944a24 Fix timers in stop-method 11 years ago
Jens Lody 49e4ec8105 Always fetch 10 days of forecast-data. 11 years ago
Jens Lody f771bcf0c0 Use toLocaleFormat, to format time; fix for 12h time formats 11 years ago
Jens Lody fb7ebcb36c Use toLocaleFormat, to format time; fix for 12h time formats 11 years ago
Jens Lody 2db32a94e5 Format fixes 11 years ago
Jens Lody 2d0e21dab2 Use constants for URL's, use Soup methods to build the request-string 11 years ago
Jens Lody e21aa6b869 Use different timers to update actual weather and forecast (save bandwidth on owm-server); minimal update interval is 10 min 11 years ago
Jens Lody 6f31505126 experimental switch to openweathermap 11 years ago
Jens Lody 1bf555c6aa Add option to center forecast, closes #1 11 years ago
Jens Lody e612a60532 Fix vertical align of info text with gnome-shell 3.10; ported from Neroth's weather extension. 11 years ago
Jens Lody c6252dae79 Dynamically set forecast-box scrollbar, depending on the width of the current-weather box; fix warnings, due to non-zero top-margin of hidden scrollbar. 11 years ago
Jens Lody f5088b3e07 Implement the possibility to chose how many days in forecast are shown; 2 is the minimum and 5 the maximum (!Yahoo's api returns a fiveday-forecast); localization is updated to reflect the changes in linenumbers 11 years ago
Jens Lody 32850e4288 Use Ibiza as default city, if list is empty. 11 years ago
Jens Lody 0eb1c09dfe (Hopefully) use correct values for condidtion-code; !Yahoo's weater-api description is obviously wrong 11 years ago
Jens Lody baea30d368 unify used comment-tags, no box-comments except for the file-headers 11 years ago
Jens Lody 434823ada0 Reformat javascript and stylesheet, no functional changes 11 years ago
Jens Lody 91dc39184a Distinguish between gnome-shell 3.9 and lower, make it work on 3.8 (and lower ?) again; NOTE: only tested on 3.8 and 3.10 (might be broken on 3.9 and on versions lower than 3.8) 11 years ago