You are not logged in.
hello
don't work with Théo's adress
here my cond_raw
<!DOCTYPE html>
<html lang="fr" class="">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8" />
<script>const startMetric=Date.now();function measureTiming(t){var e=Date.now()-startMetric;console.log(t+": "+e);window[t]=e}</script>
<link rel="canonical" href="https://www.accuweather.com/fr/fr/sarreguemines/135050/current-weather/135050" />
<title>Sarreguemines, Moselle, France Current Weather | AccuWeather</title>
<meta name="Description" content="Get Sarreguemines, Moselle, France, 57 current weather reports and conditions including temperature, RealFeel and precipitation from AccuWeather.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="text/javascript">!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){B=t}function r(t){G=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof z?function(){z(a)}:c()}function s(){var t=0,e=new J(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<W;t+=2){var e=V[t],n=V[t+1];e(n),V[t]=void 0,V[t+1]=void 0}W=0}function f(){try{var t=Function("return this")().require("vertx");return z=t.runOnLoop||t.runOnContext,i()}catch(e){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[Z]&&O(r);var o=n._state;if(o){var i=arguments[o-1];G(function(){return P(o,r,i,n._result)})}else E(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return g(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t){try{return t.then}catch(e){return nt.error=e,nt}}function y(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function m(t,e,n){G(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?g(t,n):S(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function b(t,e){e._state===tt?S(t,e._result):e._state===et?j(t,e._result):E(e,void 0,function(e){return g(t,e)},function(e){return j(t,e)})}function w(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?b(t,n):r===nt?(j(t,nt.error),nt.error=null):void 0===r?S(t,n):e(r)?m(t,n,r):S(t,n)}function g(e,n){e===n?j(e,v()):t(n)?w(e,n,_(n)):S(e,n)}function A(t){t._onerror&&t._onerror(t._result),T(t)}function S(t,e){t._state===$&&(t._result=e,t._state=tt,0!==t._subscribers.length&&G(T,t))}function j(t,e){t._state===$&&(t._state=et,t._result=e,G(A,t))}function E(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+tt]=n,o[i+et]=r,0===i&&t._state&&G(T,t)}function T(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?P(n,r,o,i):o(i);t._subscribers.length=0}}function M(t,e){try{return t(e)}catch(n){return nt.error=n,nt}}function P(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=void 0,a=void 0;if(i){if(s=M(r,o),s===nt?(a=!0,u=s.error,s.error=null):c=!0,n===s)return void j(n,d())}else s=o,c=!0;n._state!==$||(i&&c?g(n,s):a?j(n,u):t===tt?S(n,s):t===et&&j(n,s))}function x(t,e){try{e(function(e){g(t,e)},function(e){j(t,e)})}catch(n){j(t,n)}}function C(){return rt++}function O(t){t[Z]=rt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function k(){return new Error("Array Methods must be provided an Array")}function F(t){return new ot(this,t).promise}function Y(t){var e=this;return new e(U(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function q(t){var e=this,n=new e(p);return j(n,t),n}function D(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function K(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function L(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=it}var N=void 0;N=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var U=N,W=0,z=void 0,B=void 0,G=function(t,e){V[W]=t,V[W+1]=e,W+=2,2===W&&(B?B(a):X())},H="undefined"!=typeof window?window:void 0,I=H||{},J=I.MutationObserver||I.WebKitMutationObserver,Q="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),R="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,V=new Array(1e3),X=void 0;X=Q?o():J?s():R?u():void 0===H&&"function"==typeof require?f():c();var Z=Math.random().toString(36).substring(2),$=void 0,tt=1,et=2,nt={error:null},rt=0,ot=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[Z]||O(this.promise),U(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&S(this.promise,this._result))):j(this.promise,k())}return t.prototype._enumerate=function(t){for(var e=0;this._state===$&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=_(t);if(o===l&&t._state!==$)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===it){var i=new n(p);w(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===$&&(this._remaining--,t===et?j(r,n):this._result[e]=n),0===this._remaining&&S(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,function(t){return n._settledAt(tt,e,t)},function(t){return n._settledAt(et,e,t)})},t}(),it=function(){function t(e){this[Z]=C(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&D(),this instanceof t?x(this,e):K())}return t.prototype["catch"]=function(t){return this.then(null,t)},t.prototype["finally"]=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();return it.prototype.then=l,it.all=F,it.race=Y,it.resolve=h,it.reject=q,it._setScheduler=n,it._setAsap=r,it._asap=G,it.polyfill=L,it.Promise=it,it.polyfill(),it});</script>
<link rel="preload" href="/bundles/prebid.5772e094a03cf73ee8b6.js" as="script">
<link rel="preload" href="/bundles/city.current-weather.3da9cea75f18139cd471.js" as="script">
<link rel="preload" href="/bundles/0.cf35899e2f5f6a7c9ca2.js" as="script">
<link rel="preload" href="https://securepubads.g.doubleclick.net/tag/js/gpt.js" as="script">
<link rel="preconnect" href="//securepubads.g.doubleclick.net" crossorigin>
<link rel="preconnect" href="//sb.scorecardresearch.com" crossorigin>
<link rel="preconnect" href="//www.googletagmanager.com" crossorigin>
<link rel="preconnect" href="//contributor.google.com" crossorigin>
<link rel="stylesheet" href="/bundles/city.current-weather.0c11ccc1589183873ca8.css" />
<script>
var userCookie = {"cache":{"items":{}},"cDate":"2019-10-15","lifestyle":"allergies","lang":"fr","rl":["135050"],"tp":"C"};
var recentLocations = [{"adminArea":{"englishName":"Moselle","id":"57","localizedName":"Moselle"},"alertCount":0,"country":{"englishName":"France","id":"FR","localizedName":"France"},"icon":2,"key":"135050","localizedName":"Sarreguemines","postalCode":"","temp":"15°"}];
var currentLocation = {"administrativeArea":{"englishName":"Moselle","id":"57","localizedName":"Moselle"},"country":{"englishName":"France","id":"FR","localizedName":"France"},"englishName":"Sarreguemines","gmtOffset":2.0,"hasAlerts":true,"hasForecastConfidence":false,"hasMinuteCast":true,"hasRadar":true,"key":"135050","lat":49.11,"localizedName":"Sarreguemines","lon":7.069,"primaryPostalCode":"","region":{"englishName":"Europe","id":"EUR","localizedName":"Europe"}};
var currentCountryLocation = {"isEEA":true,"lat":46.0,"lon":2.0};
var currentAdminLocation = null;
var lifestyle = {"category":"Minimum","isStatusRed":false,"lifestyle":"allergies","localizedLifestyle":"Allergies","name":"Pollen d’ambroisie","value":1};
var userData = {"city":"PARIS","continent":2,"countryCode":"FR","lat":48.87,"lon":2.33,"regionCode":"IDF","throughput":"vhigh"};
var showPrivacyPolicyBanner = false;
var consentCookie = '.AspNet.Consent=yes; expires=Wed, 14 Oct 2020 07:08:02 GMT; path=/; samesite=lax';
var pageId = 'current-weather';
var userIsBot = false;
var adInfo = {"glacier":"1","fdate":"20191015","lang":"fr","ut":"1","advelvet":"1","bot":"0","pgview":"1","partner":"accuweather","city":"Sarreguemines","country":"FR","state":"57","dma":null,"cuhd":"87","cuhi":"65","cuuv":"1","cuwd":"4","cuwx":"2","realfeel":"65,a65","ixairq":"a1,b1,c1,d1,e1","ixconcert":"a1,b1,c1,d1,e1","ixdust":"a1,b1,c1,d1,e1","ixpgrass":"a1,b1,c1,d1,e1","ixpmold":"a1,b1,c1,d1,e1","ixmosq":"a1,b1,c1,d1,e2","ixpweed":"a1,b1,c1,d1,e1","ixschoolclosing":"a1,b1,c1,d1,e1","ixskiing":"a1,b1,c1,d1,e1","ixptree":"a1,b1,c1,d1,e1","ixconstruction":"a1,b4,c2,d2,e1","ixbbq":"a1,b2,c2,d2,e1","ixuvindex":"a1,b1,c1,d1,e1","ixcopd":"a1,b1,c1,d1,e1","ixbeach":"a1,b3,c2,d2,e1","ixgolf":"a1,b3,c2,d1,e1","ixfishing":"a1,b3,c1,d1,e1","ixmigraine":"a1,b1,c1,d1,e1","ixasthma":"a1,b1,c1,d1,e2","ixoutdoor":"a1,b3,c2,d2,e1","ixhunting":"a1,b3,c2,d1,e1","ixrunning":"a1,b4,c3,d2,e1","ixsailing":"a2,b4,c3,d3,e1","ixcold":"a2,b1,c2,d2,e2","ixtravel":"a3,b5,c5,d4,e1","ixsinus":"a3,b3,c3,d3,e3","ixarthritis":"a4,b2,c2,d2,e3","ixfrizz":"a3,b3,c3,d3,e3","ixfueleconomy":"a4,b4,c4,d4,e3","ixindoor":"a4,b2,c3,d3,e5","ixschoolbus":"a4,b5,c3,d3,e3","ixpollen":"a1,b1,c1,d1,e1","fc1hi":"65","fc1lo":"47","fc1wx":"18","lfscategory":"rain","lfsday":"15","lfsseverity":"3","lfs":"3_rain_15"};
var adPageInfo = {category:'weather',template:'current'};
const hostEnvironment = 'Production-NEURO';
var dataLayer = window.dataLayer = window.dataLayer || [];
dataLayer.push({
siteType: 'responsive',
page: 'current-weather',
section: 'forecast',
pageTemplate: 'world/forecast/forecast-current-conditions',
partnerSession: 'accuweather',
cookieCreationDate: '2019-10-15',
userLanguage: 'fr',
userCountry: 'FR',
physicalLocLat: '48.87',
physicalLocLong: '2.33',
visitFlow: 'current-weather',
weatherLocNum: '1',
userInterests: '',
weatherGovAlert: '',
weatherLocalForecast: '3/0/rain',
weatherLocationDMA: '',
weatherLocationUFDB: 'EDDR',
weatherLocCountry: 'fr',
weatherLocState: 'moselle',
weatherLocPostal: '',
weatherLocLat: '49.11',
weatherLocLong: '7.069',
weatherLocSureFind: '135050',
weatherLocCanSureFind: '135050',
weatherSkyTime: '2/day',
minutecastLocationType: 'city_center',
hostEnvironment: hostEnvironment
});
dataLayer.push({
event: 'adsTrigger',
eventCategory: 'Ads',
eventAction: 'Prebundle Initialized',
});
setTimeout(function() {
dataLayer.push({
event: 'adsTrigger',
eventCategory: 'Ads',
eventAction: '15s Timeout Test',
eventLabel: window.processProgress
});
}, 15000);
window.onunload = function() {
if (typeof window.processProgress === 'undefined') {
dataLayer.push({
event: 'windowTrigger',
eventCategory: 'Window',
eventAction: 'Unloaded w/out Bundle',
});
}
};
window.mapbox={token:"pk.eyJ1IjoiYWNjdXdlYXRoZXItaW5jIiwiYSI6ImNqeGtxeDc4ZDAyY2czcnA0Ym9ubzh0MTAifQ.HjSuXwG2bI05yFYmc0c9lw",style:"mapbox://styles/accuweather-inc/cjknc24na2o5u2sqoy0t8ku8a"};
var siteVersion = "2.1.4.0";
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Person",
"name": "AccuWeather",
"url": "https://www.accuweather.com",
"sameAs": [
"https://www.facebook.com/AccuWeather",
"https://twitter.com/BreakingWeather",
"https://www.instagram.com/accuweather",
"https://www.youtube.com/user/accuweather"
]
}
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Sarreguemines, France",
"addressRegion": "Moselle",
"postalCode": ""
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "49.11",
"longitude": "7.069",
"addressCountry": "FR",
"postalCode": ""
},
"name": "Sarreguemines, Moselle, France"
}
</script>
<script charset="utf-8" src="/bundles/prebid.5772e094a03cf73ee8b6.js" async></script>
<script src="/advertisement.js"></script>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5VJD4MS');</script>
<script src="https://securepubads.g.doubleclick.net/tag/js/gpt.js" async></script>
<script type="text/javascript">!function(a9,a,p,s,t,A,g){if(a[a9])return;function q(c,r){a[a9]._Q.push([c,r])}a[a9]={init:function(){q("i",arguments)},fetchBids:function(){q("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]};A=p.createElement(s);A.async=!0;A.src=t;g=p.getElementsByTagName(s)[0];g.parentNode.insertBefore(A,g)}("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js");</script>
<script>
window.isUserCountryEEA = true;
window.googlefc = window.googlefc || {};
googlefc.callbackQueue = googlefc.callbackQueue || [];
googlefc.suppressConsentMessage = false;
window['ntixyt'] = window['ntixyt'] || [];
window['ntixyt'].push(function(api) { api.enable(); });
var dataLayer = window.dataLayer = window.dataLayer || [];
dataLayer.push({ isCountryEEA: window.isUserCountryEEA });
googlefc.callbackQueue.push(function () {
switch (googlefc.getConsentStatus()) {
case googlefc.ConsentStatusEnum.CONSENTED_TO_PERSONALIZED_ADS:
case googlefc.ConsentStatusEnum.CONSENT_NOT_REQUIRED:
dataLayer.push({ fcConsentStatus: true, fcContributerStatus: false });
break;
case googlefc.ConsentStatusEnum.CONSENTED_TO_NON_PERSONALIZED_ADS:
case googlefc.ConsentStatusEnum.CONTRIBUTOR:
dataLayer.push({ fcConsentStatus: true, fcContributerStatus: true });
break;
case googlefc.ConsentStatusEnum.UNKNOWN:
case googlefc.ConsentStatusEnum.NO_CONSENT:
dataLayer.push({ fcConsentStatus: false, fcContributerStatus: false });
break;
}
dataLayer.push({ event: 'funding-choices-loaded' });
});
</script>
<script src="https://contributor.google.com/scripts/250229f2024a6c7b/loader.js"></script>
<script>
(function(){'use strict';var g=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},l=this,m=/^[\w+/_-]+[=]{0,2}$/,p=null,q=function(){},r=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";
if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},t=Date.now||function(){return+new Date},u=function(a,b){function c(){}c.prototype=b.prototype;a.m=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.j=function(d,e,f){for(var k=Array(arguments.length-2),h=2;h<arguments.length;h++)k[h-2]=arguments[h];return b.prototype[e].apply(d,
k)}};var v=function(a,b){Object.defineProperty(l,a,{configurable:!1,get:function(){return b},set:q})};var w=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^t()).toString(36)};var y=function(){this.a="";this.b=x},x={},z=function(a){var b=new y;b.a=a;return b};var A=function(a,b){a.src=b instanceof y&&b.constructor===y&&b.b===x?b.a:"type_error:TrustedResourceUrl";if(null===p)b:{b=l.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&m.test(b)){p=b;break b}p=""}b=p;b&&a.setAttribute("nonce",b)};var B=function(a){this.a=a||l.document||document};B.prototype.appendChild=function(a,b){a.appendChild(b)};var C=function(a,b,c,d,e,f){try{var k=a.a,h=a.a.createElement("SCRIPT");h.async=!0;A(h,b);k.head.appendChild(h);h.addEventListener("load",function(){e();d&&k.head.removeChild(h)});h.addEventListener("error",function(){0<c?C(a,b,c-1,d,e,f):(d&&k.head.removeChild(h),f())})}catch(n){f()}};var D=l.atob("aHR0cHM6Ly93d3cuZ3N0YXRpYy5jb20vaW1hZ2VzL2ljb25zL21hdGVyaWFsL3N5c3RlbS8xeC93YXJuaW5nX2FtYmVyXzI0ZHAucG5n"),E=l.atob("WW91IGFyZSBzZWVpbmcgdGhpcyBtZXNzYWdlIGJlY2F1c2UgYWQgb3Igc2NyaXB0IGJsb2NraW5nIHNvZnR3YXJlIGlzIGludGVyZmVyaW5nIHdpdGggdGhpcyBwYWdlLg=="),aa=l.atob("RGlzYWJsZSBhbnkgYWQgb3Igc2NyaXB0IGJsb2NraW5nIHNvZnR3YXJlLCB0aGVuIHJlbG9hZCB0aGlzIHBhZ2Uu"),ba=function(a,b,c){this.b=a;this.f=new B(this.b);this.a=null;this.c=[];this.g=!1;this.i=b;this.h=c},H=function(a){if(a.b.body&&!a.g){var b=
function(){F(a);l.setTimeout(function(){return G(a,3)},50)};C(a.f,a.i,2,!0,function(){l[a.h]||b()},b);a.g=!0}},F=function(a){for(var b=I(1,5),c=0;c<b;c++){var d=J(a);a.b.body.appendChild(d);a.c.push(d)}b=J(a);b.style.bottom="0";b.style.left="0";b.style.position="fixed";b.style.width=I(100,110).toString()+"%";b.style.zIndex=I(2147483544,2147483644).toString();b.style["background-color"]=K(249,259,242,252,219,229);b.style["box-shadow"]="0 0 12px #888";b.style.color=K(0,10,0,10,0,10);b.style.display=
"flex";b.style["justify-content"]="center";b.style["font-family"]="Roboto, Arial";c=J(a);c.style.width=I(80,85).toString()+"%";c.style.maxWidth=I(750,775).toString()+"px";c.style.margin="24px";c.style.display="flex";c.style["align-items"]="flex-start";c.style["justify-content"]="center";d=a.f.a.createElement("IMG");d.className=w();d.src=D;d.style.height="24px";d.style.width="24px";d.style["padding-right"]="16px";var e=J(a),f=J(a);f.style["font-weight"]="bold";f.textContent=E;var k=J(a);k.textContent=
aa;L(a,e,f);L(a,e,k);L(a,c,d);L(a,c,e);L(a,b,c);a.a=b;a.b.body.appendChild(a.a);b=I(1,5);for(c=0;c<b;c++)d=J(a),a.b.body.appendChild(d),a.c.push(d)},L=function(a,b,c){for(var d=I(1,5),e=0;e<d;e++){var f=J(a);b.appendChild(f)}b.appendChild(c);c=I(1,5);for(d=0;d<c;d++)e=J(a),b.appendChild(e)},I=function(a,b){return Math.floor(a+Math.random()*(b-a))},K=function(a,b,c,d,e,f){return"rgb("+I(Math.max(a,0),Math.min(b,255)).toString()+","+I(Math.max(c,0),Math.min(d,255)).toString()+","+I(Math.max(e,0),Math.min(f,
255)).toString()+")"},J=function(a){a=a.f.a.createElement("DIV");a.className=w();return a},G=function(a,b){0>=b||null!=a.a&&0!=a.a.offsetHeight&&0!=a.a.offsetWidth||(ca(a),F(a),l.setTimeout(function(){return G(a,b-1)},50))},ca=function(a){var b=a.c;var c="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];b=c?c.call(b):{next:g(b)};for(c=b.next();!c.done;c=b.next())(c=c.value)&&c.parentNode&&c.parentNode.removeChild(c);a.c=[];(b=a.a)&&b.parentNode&&b.parentNode.removeChild(b);a.a=null};var M=function(a,b,c){a=l.btoa(a+b);v(a,c)},da=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];e=l.btoa(a+b);e=l[e];if("function"==r(e))e.apply(null,d);else throw Error("API not exported.");};var fa=function(a,b,c,d,e){var f=ea(c),k=function(n){n.appendChild(f);l.setTimeout(function(){f?(0!==f.offsetHeight&&0!==f.offsetWidth?b():a(),f.parentNode&&f.parentNode.removeChild(f)):a()},d)},h=function(n){document.body?k(document.body):0<n?l.setTimeout(function(){h(n-1)},e):b()};h(3)},ea=function(a){var b=document.createElement("div");b.className=a;b.style.width="1px";b.style.height="1px";b.style.position="absolute";b.style.left="-10000px";b.style.top="-10000px";b.style.zIndex="-10000";return b};var N=null;var O=function(){},P="function"==typeof Uint8Array,Q=function(a,b){a.b=null;b||(b=[]);a.l=void 0;a.f=-1;a.a=b;a:{if(b=a.a.length){--b;var c=a.a[b];if(!(null===c||"object"!=typeof c||"array"==r(c)||P&&c instanceof Uint8Array)){a.g=b-a.f;a.c=c;break a}}a.g=Number.MAX_VALUE}a.i={}},R=[],S=function(a,b){if(b<a.g){b+=a.f;var c=a.a[b];return c===R?a.a[b]=[]:c}if(a.c)return c=a.c[b],c===R?a.c[b]=[]:c},U=function(a,b){var c=T;a.b||(a.b={});if(!a.b[b]){var d=S(a,b);d&&(a.b[b]=new c(d))}return a.b[b]};
O.prototype.h=P?function(){var a=Uint8Array.prototype.toJSON;Uint8Array.prototype.toJSON=function(){if(!N){N={};for(var b=0;65>b;b++)N[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)}b=N;for(var c=[],d=0;d<this.length;d+=3){var e=this[d],f=d+1<this.length,k=f?this[d+1]:0,h=d+2<this.length,n=h?this[d+2]:0,ha=e>>2;e=(e&3)<<4|k>>4;k=(k&15)<<2|n>>6;n&=63;h||(n=64,f||(k=64));c.push(b[ha],b[e],b[k],b[n])}return c.join("")};try{return JSON.stringify(this.a&&this.a,V)}finally{Uint8Array.prototype.toJSON=
a}}:function(){return JSON.stringify(this.a&&this.a,V)};var V=function(a,b){return"number"!=typeof b||!isNaN(b)&&Infinity!==b&&-Infinity!==b?b:String(b)};O.prototype.toString=function(){return this.a.toString()};var T=function(a){Q(this,a)};u(T,O);var W=function(a){Q(this,a)};u(W,O);var ia=function(a,b){this.g=new B(a);var c=U(b,11);c=z(S(c,4)||"");this.b=new ba(a,c,S(b,10));this.a=b;this.f=S(this.a,1);this.c=!1},X=function(a,b,c,d){b=new T(b?JSON.parse(b):null);b=z(S(b,4)||"");C(a.g,b,3,!1,c,function(){fa(function(){H(a.b);d(!1)},function(){d(!0)},S(a.a,12),S(a.a,5),S(a.a,3))})},ja=function(a){a.c||(M(a.f,"internal_api_load_with_sb",function(b,c,d){X(a,b,c,d)}),M(a.f,"internal_api_sb",function(){H(a.b)}),a.c=!0)};var Y=function(a){this.h=l.document;this.a=new ia(this.h,a);this.f=S(a,1);this.g=U(a,2);this.c=!1;this.b=a};Y.prototype.start=function(){try{ka(),ja(this.a),l.googlefc=l.googlefc||{},"callbackQueue"in l.googlefc||(l.googlefc.callbackQueue=[]),la(this)}catch(a){H(this.a.b)}};
var ka=function(){var a=function(){if(!l.frames.googlefcPresent)if(document.body){var b=document.createElement("iframe");b.style.display="none";b.style.width="0px";b.style.height="0px";b.style.border="none";b.style.zIndex="-1000";b.style.left="-1000px";b.style.top="-1000px";b.name="googlefcPresent";document.body.appendChild(b)}else l.setTimeout(a,5)};a()},la=function(a){var b=t();X(a.a,a.g.h(),function(){var c;var d=a.f,e=l[l.btoa(d+"cached_js")];if(e){e=l.atob(e);e=parseInt(e,10);d=l.btoa(d+"cached_js").split(".");
var f=l;d[0]in f||"undefined"==typeof f.execScript||f.execScript("var "+d[0]);for(;d.length&&(c=d.shift());)d.length?f[c]&&f[c]!==Object.prototype[c]?f=f[c]:f=f[c]={}:f[c]=null;c=Math.abs(b-e);c=1728E5>c?0:c}else c=-1;0!=c&&(da(a.f,"internal_api_sb"),Z(a,S(a.b,9)))},function(c){c?Z(a,S(a.b,7)):Z(a,S(a.b,8))})},Z=function(a,b){a.c||(a.c=!0,a=new l.XMLHttpRequest,a.open("GET",b,!0),a.send())};(function(a,b){l[a]=function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];l[a]=q;b.apply(null,d)}})("__475an521in8a__",function(a){"function"==typeof l.atob&&(a=l.atob(a),a=new W(a?JSON.parse(a):null),(new Y(a)).start())});}).call(this);
window.__475an521in8a__("WyIyNTAyMjlmMjAyNGE2YzdiIixbbnVsbCxudWxsLG51bGwsImh0dHBzOi8vZnVuZGluZ2Nob2ljZXNtZXNzYWdlcy5nb29nbGUuY29tL2YvQUdTS1d4VWRONnVKUUo5Tm4yTFROVHdHRVAxNENvbHlBc3IwMHdzMWh2X05nSDNJTFNmcDBOaWpVTW5MQVJmajN3YjdFaGd5MzB3dGtVSk1DX0RGTEVQZyJdCiwyMCxudWxsLDEwMCxudWxsLCJodHRwczovL2Z1bmRpbmdjaG9pY2VzbWVzc2FnZXMuZ29vZ2xlLmNvbS9sL0FHU0tXeFYzZHRHZzhHUW1ZMnh5UGx3aTdQUGdLWjNJUUtpaDR5cG5pcno2VV8yUmJZYk4tSWtNdVp2SktsREtOSTJmLXJJRHBYbmZpQll2bXhOZHZON20/YWJcdTAwM2QxIiwiaHR0cHM6Ly9mdW5kaW5nY2hvaWNlc21lc3NhZ2VzLmdvb2dsZS5jb20vbC9BR1NLV3hXNVJpbC1xTGNmUGNUVXJ3N3otLTRnbE9Ydk50aktPSUROdDNlcURjVXhFWXljN3hkcFZtY09DVzFKZjRxYXNKRE4wYlZxTTZtRjlmRkp5V3A3P2FiXHUwMDNkMVx1MDAyNnNiZlx1MDAzZDEiLCJodHRwczovL2Z1bmRpbmdjaG9pY2VzbWVzc2FnZXMuZ29vZ2xlLmNvbS9sL0FHU0tXeFhwWUhZd2x1SFBPUEg1U2hwQzVidUZjVF9DdEZvSHk5a0FYcGVYZ3JuNnJRS0VQRDV5allacmlqanZ1Zmk4WDJkM19qeHYwQmNWTGdxX211TVo/c2JmXHUwMDNkMiIsIk1qVXdNakk1WmpJd01qUmhObU0zWWdcdTAwM2RcdTAwM2QiLFtudWxsLG51bGwsbnVsbCwiaHR0cHM6Ly93d3cuZ3N0YXRpYy5jb20vMGVtbi9mL3AvMjUwMjI5ZjIwMjRhNmM3Yi5qcz91c3FwXHUwMDNkQ0FnIl0KLCJkaXYtZ3B0LWFkIl0K");
</script>
<script>(window.BOOMR_mq=window.BOOMR_mq||[]).push(["addVar",{"rua.upush":"false","rua.cpush":"false","rua.upre":"false","rua.cpre":"false","rua.uprl":"false","rua.cprl":"false","rua.cprf":"false","rua.trans":"","rua.cook":"false","rua.ims":"false","rua.ufprl":"false","rua.cfprl":"false"}]);</script>
<script>!function(){function o(n,i){if(n&&i)for(var r in i)i.hasOwnProperty(r)&&(void 0===n[r]?n[r]=i[r]:n[r].constructor===Object&&i[r].constructor===Object?o(n[r],i[r]):n[r]=i[r])}try{var n=decodeURIComponent("");if(n.length>0&&window.JSON&&"function"==typeof window.JSON.parse){var i=JSON.parse(n);void 0!==window.BOOMR_config?o(window.BOOMR_config,i):window.BOOMR_config=i}}catch(r){window.console&&"function"==typeof window.console.error&&console.error("mPulse: Could not parse configuration",r)}}();</script>
<script>!function(a){var e="https://s.go-mpulse.net/boomerang/",t="addEventListener";if("False"=="True")a.BOOMR_config=a.BOOMR_config||{},a.BOOMR_config.PageParams=a.BOOMR_config.PageParams||{},a.BOOMR_config.PageParams.pci=!0,e="https://s2.go-mpulse.net/boomerang/";if(function(){function n(e){a.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!a.BOOMR||!a.BOOMR.version&&!a.BOOMR.snippetExecuted){a.BOOMR=a.BOOMR||{},a.BOOMR.snippetExecuted=!0;var i,o,r,O=document.createElement("iframe");if(a[t])a[t]("load",n,!1);else if(a.attachEvent)a.attachEvent("onload",n);O.src="javascript:void(0)",O.title="",O.role="presentation",(O.frameElement||O).style.cssText="width:0;height:0;border:0;display:none;",r=document.getElementsByTagName("script")[0],r.parentNode.insertBefore(O,r);try{o=O.contentWindow.document}catch(_){i=document.domain,O.src="javascript:var d=document.open();d.domain='"+i+"';void(0);",o=O.contentWindow.document}o.open()._l=function(){var a=this.createElement("script");if(i)this.domain=i;a.id="boomr-if-as",a.src=e+"WVCM2-8MB3H-J4PHA-TKSJD-9YGAB",BOOMR_lstart=(new Date).getTime(),this.body.appendChild(a)},o.write("<bo"+'dy onload="document._l();">'),o.close()}}(),"".length>0)if(a&&"performance"in a&&a.performance&&"function"==typeof a.performance.setResourceTimingBufferSize)a.performance.setResourceTimingBufferSize();!function(){if(BOOMR=a.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var e=""=="true"?1:0,t="",n="jxggciix3hsu2xnfobja-f-068323abc-clientnsv4-s.akamaihd.net",i={"ak.v":23,"ak.cp":"804314","ak.ai":parseInt("295874",10),"ak.ol":"0","ak.cr":22,"ak.ipv":4,"ak.proto":"","ak.rid":"219735c","ak.r":20559,"ak.a2":e,"ak.m":"e12","ak.n":"essl","ak.bpcip":"77.204.97.0","ak.cport":51036,"ak.gh":"23.200.87.95","ak.quicv":"","ak.tlsv":"tls1.2","ak.0rtt":"","ak.csrc":"-","ak.acc":"reno","ak.t":"1571123282"};if(""!==t)i["ak.ruds"]=t;var o={i:!1,av:function(e){var t="http.initiator";if(e&&(!e[t]||"spa_hard"===e[t]))i["ak.feo"]=void 0!==a.aFeoApplied?1:0,BOOMR.addVar(i)},rv:function(){var a=["ak.bpcip","ak.cport","ak.cr","ak.csrc","ak.gh","ak.ipv","ak.m","ak.n","ak.ol","ak.proto","ak.quicv","ak.tlsv","ak.0rtt","ak.r","ak.acc","ak.t"];BOOMR.removeVar(a)}};BOOMR.plugins.AK={akVars:i,akDNSPreFetchDomain:n,init:function(){if(!o.i){var a=BOOMR.subscribe;a("before_beacon",o.av,null,null),a("onbeacon",o.rv,null,null),o.i=!0}return this},is_complete:function(){return!0}}}}()}(window);</script><script>bazadebezolkohpepadr="305753654"</script><script type="text/javascript" src="https://www.accuweather.com/akam/11/12396fd1" defer></script></head>
<body class="current-weather">
<div class="template-root" style="display:none;">
<div id="base-header" class="base-header">
<div class="main-nav-container">
<div class="adhesion-header">
<div class="glacier-ad adhesion " data-ad-type="adhesion" data-viewport="mobile"></div>
</div>
<div class="header-bg"></div>
<div class="main-menu">
<div class="logo-wrapper ">
<div class="icon-text">
<a href="/">
<img class="accuweather-logo header-logo" data-src="/images/logos/accuweather.svg" alt="AccuWeather" data-eager />
</a>
</div>
</div>
<ul class="nav-wrapper">
<li class="nav-item" data-category-key="radar">Radar et cartes</li>
<li class="nav-item" data-category-key="video">VIDÉO</li>
<li class="nav-item" data-category-key="severe">Vigilance météorologique</li>
</ul>
<div class="header-right-container">
<div class="search-wrapper is-wide js-search-button">
<svg xmlns="http://www.w3.org/2000/svg" class="icon-search" width="16" height="16" viewBox="0 0 16 16" ><path d="M15.784 13.68l-4.096-4.096c.585-.955.94-2.067.94-3.27a6.315 6.315 0 1 0-6.314 6.314 6.253 6.253 0 0 0 3.27-.937l4.096 4.094a.751.751 0 0 0 1.052 0l1.052-1.052a.75.75 0 0 0 0-1.053zm-9.47-3.157a4.21 4.21 0 1 1 0-8.419 4.21 4.21 0 0 1 0 8.42z" /></svg>
<div class="search-input">
Rechercher un emplacement, code postal, ...
</div>
</div>
<div class="icon-hamburger js-hamburger">
<svg xmlns="http://www.w3.org/2000/svg"
class="icon-close hamburger-close"
width="18"
height="18"
viewBox="0 0 18 18"
>
<g fill-rule="evenodd" transform="translate(-1 -1)">
<rect width="2" height="24" x="9" y="-2" rx="1" transform="rotate(45 10 10)"/>
<rect width="2" height="24" x="9" y="-2" rx="1" transform="rotate(-45 10 10)"/>
</g>
</svg>
</div>
<div class="settings-button js-settings-button">
<svg xmlns="http://www.w3.org/2000/svg" class="icon-settings" width="16" height="16" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="M10.333 8c0-.644-.228-1.194-.683-1.65A2.248 2.248 0 0 0 8 5.667c-.644 0-1.194.228-1.65.683A2.248 2.248 0 0 0 5.667 8c0 .644.228 1.194.683 1.65a2.248 2.248 0 0 0 1.65.683c.644 0 1.194-.228 1.65-.683A2.248 2.248 0 0 0 10.333 8zM15 7.007V9.03a.351.351 0 0 1-.073.21.277.277 0 0 1-.182.118l-1.686.255a5.84 5.84 0 0 1-.356.83c.213.304.538.723.975 1.258.061.072.092.148.092.227a.304.304 0 0 1-.082.21c-.165.225-.465.553-.903.984-.437.432-.723.648-.857.648a.445.445 0 0 1-.237-.082l-1.257-.985a5.2 5.2 0 0 1-.83.346c-.097.827-.185 1.392-.264 1.696-.043.17-.152.255-.328.255H6.988a.344.344 0 0 1-.223-.077.27.27 0 0 1-.105-.196l-.255-1.678a5.633 5.633 0 0 1-.82-.337l-1.286.976a.328.328 0 0 1-.227.082.314.314 0 0 1-.228-.1c-.766-.693-1.267-1.204-1.504-1.532a.356.356 0 0 1 .009-.42c.091-.127.246-.329.465-.605.219-.277.383-.491.492-.643a4.51 4.51 0 0 1-.374-.902l-1.668-.246a.287.287 0 0 1-.191-.114A.345.345 0 0 1 1 8.993V6.97c0-.073.024-.143.073-.21a.274.274 0 0 1 .173-.118l1.695-.255c.085-.28.204-.56.356-.839a20.747 20.747 0 0 0-.975-1.258.343.343 0 0 1-.092-.218c0-.061.028-.131.083-.21.157-.219.457-.545.897-.98.44-.434.728-.652.862-.652.079 0 .158.03.237.092l1.257.975a5.2 5.2 0 0 1 .83-.346c.097-.827.185-1.392.264-1.696.043-.17.152-.255.328-.255h2.024c.085 0 .16.026.223.077a.27.27 0 0 1 .105.196l.255 1.678c.298.097.571.21.82.337l1.295-.975a.296.296 0 0 1 .218-.083c.08 0 .155.03.228.092.784.723 1.285 1.24 1.504 1.55a.294.294 0 0 1 .064.2.351.351 0 0 1-.073.21c-.091.127-.246.329-.465.605-.219.277-.383.491-.492.643.158.304.283.602.374.893l1.668.255c.079.013.142.05.191.114a.345.345 0 0 1 .073.215z" /></svg>
</div>
</div>
</div>
<div class="utility-bar">
<div class="utility-bar-wrapper">
<div class="super-search-wrap">
<svg xmlns="http://www.w3.org/2000/svg" class="icon-search" width="16" height="16" viewBox="0 0 16 16" ><path d="M15.784 13.68l-4.096-4.096c.585-.955.94-2.067.94-3.27a6.315 6.315 0 1 0-6.314 6.314 6.253 6.253 0 0 0 3.27-.937l4.096 4.094a.751.751 0 0 0 1.052 0l1.052-1.052a.75.75 0 0 0 0-1.053zm-9.47-3.157a4.21 4.21 0 1 1 0-8.419 4.21 4.21 0 0 1 0 8.42z" /></svg>
<form class="super-search-form" action="/fr/search-locations" method="GET" autocomplete="off" onsubmit="event.preventDefault()">
<input name="query" />
</form>
</div>
<div class="settings-wrap">
<div class="dropdown-select fade-in-left js-dropdown select-country ">
<div class="dropdown-select-wrapper">
<img data-eager data-src="/images/flags/FR.png" width="22px" height="16px" /> <div class="select-title ">France</div>
<svg
class="icon-chevron "
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="dropdown-content">
<div class="dropdown-content-title">Mes pays récents</div>
<div class="country-dropdown-items"></div>
<a class="button-primary" href="/fr/browse-locations">
Plus de pays
</a>
</div>
</div>
<div class="dropdown-select fade-in-left js-dropdown select-locale ">
<div class="dropdown-select-wrapper">
<img data-eager data-src="/images/icons/language-icon.png" width="18px" height="17px" /> <div class="select-title ">Français</div>
<svg
class="icon-chevron "
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="dropdown-content">
<div class="dropdown-content-title">Langues</div>
<div class="dropdown-content-item js-locale-button" data-locale="en-us">English (US)</div>
<div class="dropdown-content-item js-locale-button" data-locale="es">Español</div>
<div class="dropdown-content-item js-locale-button" data-locale="fr">Français</div>
<div class="dropdown-content-item js-locale-button" data-locale="da">Dansk</div>
<div class="dropdown-content-item js-locale-button" data-locale="pt-pt">Português</div>
<div class="dropdown-content-item js-locale-button" data-locale="nl">Nederlands</div>
<div class="dropdown-content-item js-locale-button" data-locale="no">Norsk</div>
<div class="dropdown-content-item js-locale-button" data-locale="it">Italiano</div>
<div class="dropdown-content-item js-locale-button" data-locale="de">Deutsch</div>
<div class="dropdown-content-item js-locale-button" data-locale="sv">Svenska</div>
<div class="dropdown-content-item js-locale-button" data-locale="fi">Suomi</div>
<div class="dropdown-content-item js-locale-button" data-locale="zh-hk">中文 (HK)</div>
<div class="dropdown-content-item js-locale-button" data-locale="zh-cn">中文 (SIM)</div>
<div class="dropdown-content-item js-locale-button" data-locale="zh-tw">中文 (Taiwan)</div>
<div class="dropdown-content-item js-locale-button" data-locale="es-ar">Español (Argentina)</div>
<div class="dropdown-content-item js-locale-button" data-locale="es-mx">Español (Latin America)</div>
<div class="dropdown-content-item js-locale-button" data-locale="sk">Slovenčinu</div>
<div class="dropdown-content-item js-locale-button" data-locale="ro">Romana</div>
<div class="dropdown-content-item js-locale-button" data-locale="cs">Čeština</div>
<div class="dropdown-content-item js-locale-button" data-locale="hu">Magyar</div>
<div class="dropdown-content-item js-locale-button" data-locale="pl">Polski</div>
<div class="dropdown-content-item js-locale-button" data-locale="ca">Català</div>
<div class="dropdown-content-item js-locale-button" data-locale="pt-br">Português (Brazil)</div>
<div class="dropdown-content-item js-locale-button" data-locale="hi">हिन्दी</div>
<div class="dropdown-content-item js-locale-button" data-locale="ru">русский</div>
<div class="dropdown-content-item js-locale-button" data-locale="ar">عربي</div>
<div class="dropdown-content-item js-locale-button" data-locale="el">Ελληνικά</div>
<div class="dropdown-content-item js-locale-button" data-locale="en-gb">English (UK)</div>
<div class="dropdown-content-item js-locale-button" data-locale="ja">日本語</div>
<div class="dropdown-content-item js-locale-button" data-locale="ko">한국어</div>
<div class="dropdown-content-item js-locale-button" data-locale="tr">TÜRKÇE</div>
<div class="dropdown-content-item js-locale-button" data-locale="fr-ca">Français (Canada)</div>
<div class="dropdown-content-item js-locale-button" data-locale="he">עברית</div>
<div class="dropdown-content-item js-locale-button" data-locale="sl">Slovenski</div>
<div class="dropdown-content-item js-locale-button" data-locale="uk">Українське</div>
<div class="dropdown-content-item js-locale-button" data-locale="id">Bahasa Indonesia</div>
<div class="dropdown-content-item js-locale-button" data-locale="bg">български</div>
<div class="dropdown-content-item js-locale-button" data-locale="et">Eesti keeles</div>
<div class="dropdown-content-item js-locale-button" data-locale="hr">Hrvatski</div>
<div class="dropdown-content-item js-locale-button" data-locale="kk">Қазақша</div>
<div class="dropdown-content-item js-locale-button" data-locale="lt">Lietuvių</div>
<div class="dropdown-content-item js-locale-button" data-locale="lv">Latviski</div>
<div class="dropdown-content-item js-locale-button" data-locale="mk">Македонски</div>
<div class="dropdown-content-item js-locale-button" data-locale="ms">Bahasa Melayu</div>
<div class="dropdown-content-item js-locale-button" data-locale="tl">Tagalog</div>
<div class="dropdown-content-item js-locale-button" data-locale="sr">Srpski</div>
<div class="dropdown-content-item js-locale-button" data-locale="th">ไทย</div>
<div class="dropdown-content-item js-locale-button" data-locale="vi">Tiếng Việt</div>
<div class="dropdown-content-item js-locale-button" data-locale="fa">فارسی</div>
<div class="dropdown-content-item js-locale-button" data-locale="bn">বাংলা</div>
<div class="dropdown-content-item js-locale-button" data-locale="bs">bosanski</div>
<div class="dropdown-content-item js-locale-button" data-locale="is">íslenska</div>
<div class="dropdown-content-item js-locale-button" data-locale="sw">Kiswahili</div>
<div class="dropdown-content-item js-locale-button" data-locale="ur">اُردُو</div>
<div class="dropdown-content-item js-locale-button" data-locale="sr-me">Crnogorski</div>
<div class="dropdown-content-item js-locale-button" data-locale="uz">Oʻzbekcha</div>
<div class="dropdown-content-item js-locale-button" data-locale="az">Azərbaycanca</div>
<div class="dropdown-content-item js-locale-button" data-locale="ta">தமிழ்</div>
<div class="dropdown-content-item js-locale-button" data-locale="gu">ગુજરાતી</div>
<div class="dropdown-content-item js-locale-button" data-locale="kn">ಕನ್ನಡ</div>
<div class="dropdown-content-item js-locale-button" data-locale="te">తెలుగు</div>
<div class="dropdown-content-item js-locale-button" data-locale="mr">मराठी</div>
<div class="dropdown-content-item js-locale-button" data-locale="pa">ਪੰਜਾਬੀ</div>
<div class="dropdown-content-item js-locale-button" data-locale="my">မြန်မာဘာသာ</div>
</div>
</div>
<div class="temp-switcher fade-in-left ">
<span class="temp-switcher-label">
Temp
</span>
<div class="switcher-container switch-right">
<span class="switcher-label">
F°
</span>
<div class="switcher">
<div class="bar"></div>
<div class="ball"></div>
</div>
<span class="switcher-label">
C°
</span>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg"
class="icon-close js-close-utility"
width="18"
height="18"
viewBox="0 0 18 18"
>
<g fill-rule="evenodd" transform="translate(-1 -1)">
<rect width="2" height="24" x="9" y="-2" rx="1" transform="rotate(45 10 10)"/>
<rect width="2" height="24" x="9" y="-2" rx="1" transform="rotate(-45 10 10)"/>
</g>
</svg>
</div>
</div>
<div class="active-path">
<div class="active-bar"></div>
</div>
<div class="mega-menu">
</div>
<div class="header-accordion">
<div class="accordion-item accordion-item-simple " data-shared="true">
<div class="accordion-item-header-container">
<div class="accordion-item-header accordion-item-simple-header">
<span class="accordion-item-header-content">Radar et cartes</span>
<svg
class="icon-chevron accordion-item-header-icon"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</div>
<div class="accordion-item-content">
<div class="header-accordion-content">
<a href="/fr/fr/moselle/weather-radar" data-track-click="mainNav" data-event-action="radar">Radar</a>
<a href="/fr/fr/national/severe-weather-maps" data-track-click="mainNav" data-event-action="radar">Sévère</a>
<a href="/fr/fr/moselle/satellite" data-track-click="mainNav" data-event-action="radar">Satellite</a>
</div>
</div>
</div>
<div class="accordion-item accordion-item-simple " data-shared="true">
<div class="accordion-item-header-container">
<div class="accordion-item-header accordion-item-simple-header">
<span class="accordion-item-header-content">VIDÉO</span>
<svg
class="icon-chevron accordion-item-header-icon"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</div>
<div class="accordion-item-content">
<div class="header-accordion-content">
<a href="/fr/videos" data-track-click="mainNav" data-event-action="video">Actualités météo</a>
<a href="/fr/videos/experts" data-track-click="mainNav" data-event-action="video">Prévisions expertes</a>
<a href="/fr/videos/storm-chasers" data-track-click="mainNav" data-event-action="video">Chasseurs de tempêtes</a>
</div>
</div>
</div>
<div class="accordion-item accordion-item-simple " data-shared="true">
<div class="accordion-item-header-container">
<div class="accordion-item-header accordion-item-simple-header">
<span class="accordion-item-header-content">Vigilance météorologique</span>
<svg
class="icon-chevron accordion-item-header-icon"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</div>
<div class="accordion-item-content">
<div class="header-accordion-content">
<a href="/fr/fr/severe-weather" data-track-click="mainNav" data-event-action="severe">Vigilance météorologique</a>
<a href="/fr/hurricane" data-track-click="mainNav" data-event-action="severe">Ouragan</a>
</div>
</div>
</div>
<div class="accordion-item accordion-item-simple js-settings-accordion" data-shared="true">
<div class="accordion-item-header-container">
<div class="accordion-item-header accordion-item-simple-header">
<span class="accordion-item-header-content">paramètres</span>
<svg
class="icon-chevron accordion-item-header-icon"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</div>
<div class="accordion-item-content">
<div class="header-accordion-content">
<div class="dropdown-select fade-in-left js-select select-country accordion-item-settings">
<div class="dropdown-select-wrapper">
<img data-eager data-src="/images/flags/FR.png" width="22px" height="16px" /> <div class="select-title hidden">France</div>
<select>
<option value="FR" selected="selected" disabled="disabled">
France
</option>
<option value="/fr/browse-locations/afr">
Afrique
</option>
<option value="/fr/browse-locations/ant">
Antarctique
</option>
<option value="/fr/browse-locations/arc">
Arctique
</option>
<option value="/fr/browse-locations/asi">
Asie
</option>
<option value="/fr/browse-locations/cac">
Amérique centrale
</option>
<option value="/fr/browse-locations/eur">
Europe
</option>
<option value="/fr/browse-locations/mea">
Moyen-Orient
</option>
<option value="/fr/browse-locations/nam">
Amérique du Nord
</option>
<option value="/fr/browse-locations/ocn">
Océanie
</option>
<option value="/fr/browse-locations/sam">
Amérique du Sud
</option>
</select>
<svg
class="icon-chevron "
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</div>
<div class="dropdown-select fade-in-left js-select select-locale accordion-item-settings">
<div class="dropdown-select-wrapper">
<img data-eager data-src="/images/icons/language-icon.png" width="18px" height="17px" /> <div class="select-title hidden">English (US)</div>
<select>
<option value="en-us">
English (US)
</option>
<option value="es">
Español
</option>
<option value="fr" selected="selected">
Français
</option>
<option value="da">
Dansk
</option>
<option value="pt-pt">
Português
</option>
<option value="nl">
Nederlands
</option>
<option value="no">
Norsk
</option>
<option value="it">
Italiano
</option>
<option value="de">
Deutsch
</option>
<option value="sv">
Svenska
</option>
<option value="fi">
Suomi
</option>
<option value="zh-hk">
中文 (HK)
</option>
<option value="zh-cn">
中文 (SIM)
</option>
<option value="zh-tw">
中文 (Taiwan)
</option>
<option value="es-ar">
Español (Argentina)
</option>
<option value="es-mx">
Español (Latin America)
</option>
<option value="sk">
Slovenčinu
</option>
<option value="ro">
Romana
</option>
<option value="cs">
Čeština
</option>
<option value="hu">
Magyar
</option>
<option value="pl">
Polski
</option>
<option value="ca">
Català
</option>
<option value="pt-br">
Português (Brazil)
</option>
<option value="hi">
हिन्दी
</option>
<option value="ru">
русский
</option>
<option value="ar">
عربي
</option>
<option value="el">
Ελληνικά
</option>
<option value="en-gb">
English (UK)
</option>
<option value="ja">
日本語
</option>
<option value="ko">
한국어
</option>
<option value="tr">
TÜRKÇE
</option>
<option value="fr-ca">
Français (Canada)
</option>
<option value="he">
עברית
</option>
<option value="sl">
Slovenski
</option>
<option value="uk">
Українське
</option>
<option value="id">
Bahasa Indonesia
</option>
<option value="bg">
български
</option>
<option value="et">
Eesti keeles
</option>
<option value="hr">
Hrvatski
</option>
<option value="kk">
Қазақша
</option>
<option value="lt">
Lietuvių
</option>
<option value="lv">
Latviski
</option>
<option value="mk">
Македонски
</option>
<option value="ms">
Bahasa Melayu
</option>
<option value="tl">
Tagalog
</option>
<option value="sr">
Srpski
</option>
<option value="th">
ไทย
</option>
<option value="vi">
Tiếng Việt
</option>
<option value="fa">
فارسی
</option>
<option value="bn">
বাংলা
</option>
<option value="bs">
bosanski
</option>
<option value="is">
íslenska
</option>
<option value="sw">
Kiswahili
</option>
<option value="ur">
اُردُو
</option>
<option value="sr-me">
Crnogorski
</option>
<option value="uz">
Oʻzbekcha
</option>
<option value="az">
Azərbaycanca
</option>
<option value="ta">
தமிழ்
</option>
<option value="gu">
ગુજરાતી
</option>
<option value="kn">
ಕನ್ನಡ
</option>
<option value="te">
తెలుగు
</option>
<option value="mr">
मराठी
</option>
<option value="pa">
ਪੰਜਾਬੀ
</option>
<option value="my">
မြန်မာဘာသာ
</option>
</select>
<svg
class="icon-chevron "
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</div>
<div class="temp-switcher fade-in-left accordion-item-settings">
<span class="temp-switcher-label">
Temp
</span>
<div class="switcher-container switch-right">
<span class="switcher-label">
F°
</span>
<div class="switcher">
<div class="bar"></div>
<div class="ball"></div>
</div>
<span class="switcher-label">
C°
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="template-radar" class="js-template">
<div class="mega-menu-content">
<div class="mega-menu-item fade-in-left mega-menu-item-cta">
<a href="/fr/fr/moselle/weather-radar" data-track-click="mainNav" data-event-action="radar">
<h4>Radar et cartes</h4>
</a>
<p>Visualisez les conditions météo passées, présentes et à venir sous différents angles au moyen de cartes statiques et interactives.</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-link">
<a href="/fr/fr/moselle/weather-radar" data-track-click="mainNav" data-event-action="radar">
<h4>Radar</h4>
</a>
<p>Cartes radar présentes et futures pour évaluer les zones de précipitation, leur type et leur intensité</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-link">
<a href="/fr/fr/national/severe-weather-maps" data-track-click="mainNav" data-event-action="radar">
<h4>Sévère</h4>
</a>
<p>Avertissements et vigilances actifs globalement, orages et risques de conditions extrêmes</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-link">
<a href="/fr/fr/moselle/satellite" data-track-click="mainNav" data-event-action="radar">
<h4>Satellite</h4>
</a>
<p>Cartes satellite de visualisation des couvertures nuageuses et des précipitations associées</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-media">
<a
class="nav-media-item"
href="/fr/fr/national/weather-radar"
data-track-click="mapCTA"
data-event-label="[country} : carte nationale indiquant l'emplacement des précipitations et leur intensité"
>
<figure>
<img class="content-cta-image" data-src="https://api.accuweather.com/maps/v1/radar/static/globalSIR/tile?apikey=de13920f574d420984d3080b1fa6132b&zoom=2&lon=2.000&lat=46.000&imgwidth=480&imgheight=270&language=fr&base_data=radar&w=215" data-eager />
<p>France - Radar météo</p>
<figcaption>[country} : carte nationale indiquant l'emplacement des précipitations et leur intensité</figcaption>
</figure>
</a>
</div>
</div>
</div>
<div id="template-video" class="js-template">
<div class="mega-menu-content">
<div class="mega-menu-item fade-in-left mega-menu-item-cta">
<a href="/fr/videos" data-track-click="mainNav" data-event-action="video">
<h4>Vidéo</h4>
</a>
<p>Couverture vidéo des événements météo les plus populaires</p>
<a class="button-cta" href="/fr/videos" data-track-click="watchVideo">
<svg xmlns="http://www.w3.org/2000/svg" class="icon-play-square" width="18" height="18" viewBox="0 0 18 18">
<path fill="#FFF" d="M14.305.47H2.989A2.992 2.992 0 0 0 0 3.46v11.316a2.992 2.992 0 0 0 2.99 2.989h11.315a2.994 2.994 0 0 0 2.99-2.99V3.46c0-1.649-1.35-2.99-2.99-2.99zm-.845 9.677l-6.508 3.937a1.21 1.21 0 0 1-1.836-1.034V5.176c0-.948 1.033-1.528 1.836-1.033L13.46 8.08a1.2 1.2 0 0 1 0 2.067z"/>
</svg>
Regarder la vidéo
</a>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-link">
<a href="/fr/videos" data-track-click="mainNav" data-event-action="video">
<h4>Actualités météo</h4>
</a>
<p>Regardez le meilleur des vidéos du Web</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-link">
<a href="/fr/videos/experts" data-track-click="mainNav" data-event-action="video">
<h4>Prévisions expertes</h4>
</a>
<p>Quel sera l'impact sur vous des nouvelles tendances météo ?</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-link">
<a href="/fr/videos/storm-chasers" data-track-click="mainNav" data-event-action="video">
<h4>Chasseurs de tempêtes</h4>
</a>
<p>Nos experts de terrain bravent les éléments.</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-media">
</div>
</div>
</div>
<div id="template-severe" class="js-template">
<div class="mega-menu-content">
<div class="mega-menu-item fade-in-left mega-menu-item-cta">
<a href="/fr/fr/severe-weather" data-track-click="mainNav" data-event-action="severe">
<h4>Vigilance météorologique</h4>
</a>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-link">
<a href="/fr/hurricane" data-track-click="mainNav" data-event-action="severe">
<h4>Ouragan</h4>
</a>
<p>Tout ce dont vous avez besoin pour suivre la saison des ouragans</p>
</div>
<div class="mega-menu-item fade-in-left mega-menu-item-media">
</div>
</div>
</div>
<div id="template-search" class="js-template">
<div class="mega-menu-search">
<div class="content-column">
<div class="super-search-current-location js-cur-loc-button">
<img class="icon-gps" data-src="/images/icons/icon-gps.svg" data-eager />
<span>Utiliser le lieu actuel</span>
</div>
<div class="search-results">
</div>
<a class="super-search-browse" href="/fr/browse-locations">
<span>Rechercher votre emplacement</span>
<svg
class="icon-chevron right "
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</a>
</div>
<div class="content-column">
<h4>Lieux récents</h4>
<a class="recent-location-item-header recent-location-link fade-in-left" href="/web-api/three-day-redirect?key=135050" data-location-key="135050">
<span class="recent-location-name"></span>
<img class="weather-icon recent-location-icon" data-src="/images/weathericons/2.svg" width="128px" height="128px" data-eager />
<span class="recent-location-temp">15° C</span>
</a>
</div>
<a class="super-search-browse-mobile" href="/fr/browse-locations">
Rechercher votre emplacement
</a>
</div>
</div>
</div>
</div>
<div class="page-subheader content-module">
<div class="page-subheader-wrap">
<div id="sub-header-recent-location" class="recent-locations-label">
<a href="/fr/fr/france-weather">
France - Météo
</a>
<svg
class="icon-chevron right accordion-item-header-icon"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
<a class="recent-location-display" href="/fr/fr/sarreguemines/135050/weather-forecast/135050">
<span class="recent-location-display-label location-label">
Sarreguemines, Moselle
</span>
<span class="recent-location-display-label">15° C</span>
<img class="weather-icon " data-src="/images/weathericons/2.svg" width="128px" height="128px" data-eager />
</a>
<svg
class="icon-chevron chevron-button js-dropdown-toggle"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
<div class="recent-locations-dropdown">
<a class="recent-location-item-header recent-location-link" href="/web-api/three-day-redirect?key=135050" data-location-key="135050">
<span class="recent-location-name"></span>
<img class="weather-icon recent-location-icon" data-src="/images/weathericons/2.svg" width="128px" height="128px" data-eager />
<span class="recent-location-temp">15° C</span>
</a>
</div>
</div>
</div>
</div>
<div class="glacier-ad top content-module" data-ad-type="top" data-viewport="tablet desktop"></div>
<div class="page-subnav">
<div class="subnav" data-gatype="city">
<div class="overflow overflow-left">
<svg
class="icon-chevron left arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="overflow overflow-right">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="subnav-items">
<a
class="subnav-item "
href="/fr/fr/sarreguemines/135050/weather-forecast/135050"
data-gaid="now"
>
<span>Maintenant</span>
</a>
<a
class="subnav-item "
href="/fr/fr/sarreguemines/135050/weather-radar/135050"
data-gaid="radar"
>
<span>Radar</span>
</a>
<a
class="subnav-item "
href="/fr/fr/sarreguemines/135050/minute-weather-forecast/135050"
data-gaid="minutecast"
>
<span>MinuteCast</span>
</a>
<a
class="subnav-item "
href="/fr/fr/sarreguemines/135050/hourly-weather-forecast/135050"
data-gaid="hourly"
>
<span>Heure par heure</span>
</a>
<a
class="subnav-item "
href="/fr/fr/sarreguemines/135050/daily-weather-forecast/135050"
data-gaid="daily"
>
<span>Quotidien</span>
</a>
<a
class="subnav-item "
href="/fr/fr/sarreguemines/135050/october-weather/135050"
data-gaid="monthly"
>
<span>Mois</span>
</a>
<div class="subnav-item filler"></div>
</div>
</div>
</div>
<div class="two-column-page-content">
<div class="page-column-1">
<div class="current-conditions-card content-module">
<div class="content">
<div class="conditions-card card panel conditions ">
<p class="module-header">Météo actuelle</p>
<p class="module-header sub date">09:08</p>
<div class="temp-icon-wrapper">
<img class="weather-icon icon" data-src="/images/weathericons/2.svg" width="128px" height="128px" data-eager />
<div class="temperatures">
<p class="value">
15°
<span class="temp-unit">C</span>
</p>
<p class="realFeel">
RealFeel®
17°
</p>
</div>
</div>
<div class="phrase">Plutôt ensoleillé</div>
</div>
<div id="custom-ad-current-conditions"></div>
<div class="details-card card panel ">
<div class="list">
<p>
Humidité: 87 %
</p>
<p>
Indice UV: 1
</p>
<p>
Couverture nuageuse: 30 %
</p>
<p>
Pression: 1007.00 mbar
</p>
<p>
Point de rosée: 13° C
</p>
<p>
Visibilité: 16 km
</p>
<p>
RealFeel® - à l'ombre: 15°
</p>
</div>
<div class="short-list">
<div class="icon-wind wind-icon">
<svg
xmlns="http://www.w3.org/2000/svg"
class="arrow"
style="transform: rotate(270deg)"
width="74"
height="74"
viewBox="0 0 74 74"
>
<g fill="#19AEC2">
<path d="M36.5 29.636L26 22l10.5 32L47 22z" />
</g>
</svg>
</div>
<p>
Vent: 6 km/h O
</p>
<p>
Rafales: 6 km/h
</p>
</div>
</div>
</div>
<a href="/fr/fr/sarreguemines/135050/hourly-weather-forecast/135050" class="card-button ">
<span class="text">Voir heure par heure</span>
<div class="arrow-wrap is-next">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</a>
</div>
<div class="glacier-ad top content-module" data-ad-type="top" data-viewport="mobile"></div>
<div class="card-button centered content-module">
<span class="text">15 octobre</span>
<a class="arrow-wrap is-next" href="/fr/fr/sarreguemines/135050/daily-weather-forecast/135050?day=2">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</a>
</div>
<div class="sliding-panel sliding-panel content-module half-day">
<div class="panel-wrap skinny">
<div class="panel-1"><div class="half-day-card">
<div class="content">
<div class="conditions-card card panel allow-wrap">
<p class="module-header">Jour</p>
<p class="module-header sub date">15/10</p>
<div class="temp-icon-wrapper">
<img class="weather-icon icon" data-src="/images/weathericons/18.svg" width="128px" height="128px" data-eager />
<div class="temperatures">
<p class="value">
18°
<span class="temp-unit">C</span>
</p>
<p class="realFeel">
RealFeel®
17°
</p>
</div>
</div>
<div class="phrase">Pluie; devenant plus froid</div>
</div>
<div class="details-card card panel details allow-wrap">
<div class="list">
<p>
Précipitation: 66 %
</p>
<p>
Indice UV maximal: 1 (Minimum)
</p>
<p>
Orages: 16 %
</p>
<p>
Précipitation: 8 mm
</p>
<p>
Pluie: 8 mm
</p>
<p>
Neige: 0 cm
</p>
<p>
Verglas: 0 mm
</p>
<p>
Heures de précipitations: 5.5
</p>
<p>
Heures de pluie: 5.5
</p>
</div>
<div class="short-list">
<div class="icon-wind wind-icon">
<svg
xmlns="http://www.w3.org/2000/svg"
class="arrow"
style="transform: rotate(181deg)"
width="74"
height="74"
viewBox="0 0 74 74"
>
<g fill="#19AEC2">
<path d="M36.5 29.636L26 22l10.5 32L47 22z" />
</g>
</svg>
</div>
<p>
Vent: 13 km/h S
</p>
<p>
Rafales: 18 km/h
</p>
</div>
</div>
</div>
<div class="quarter-day-links">
<a href="/fr/fr/sarreguemines/135050/morning-weather-forecast/135050" class="card-button quarter-day-link left">
<span class="text">Matinée</span>
<div class="arrow-wrap is-next">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</a>
<a href="/fr/fr/sarreguemines/135050/afternoon-weather-forecast/135050" class="card-button quarter-day-link right">
<span class="text">Après-midi</span>
<div class="arrow-wrap is-next">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</a>
</div>
</div>
</div>
<div class="panel-2"><div class="half-day-card">
<div class="content">
<div class="conditions-card card panel allow-wrap">
<p class="module-header">Nuit</p>
<p class="module-header sub date">15/10</p>
<div class="temp-icon-wrapper">
<img class="weather-icon icon" data-src="/images/weathericons/12.svg" width="128px" height="128px" data-eager />
<div class="temperatures">
<p class="value">
9°
<span class="temp-unit">C</span>
</p>
<p class="realFeel">
RealFeel®
5°
</p>
</div>
</div>
<div class="phrase">Averses le soir; sinon, plutôt nuageux</div>
</div>
<div class="details-card card panel details allow-wrap">
<div class="list">
<p>
Précipitation: 59 %
</p>
<p>
Orages: 20 %
</p>
<p>
Précipitation: 2 mm
</p>
<p>
Pluie: 2 mm
</p>
<p>
Neige: 0 cm
</p>
<p>
Verglas: 0 mm
</p>
<p>
Heures de précipitations: 1
</p>
<p>
Heures de pluie: 1
</p>
</div>
<div class="short-list">
<div class="icon-wind wind-icon">
<svg
xmlns="http://www.w3.org/2000/svg"
class="arrow"
style="transform: rotate(229deg)"
width="74"
height="74"
viewBox="0 0 74 74"
>
<g fill="#19AEC2">
<path d="M36.5 29.636L26 22l10.5 32L47 22z" />
</g>
</svg>
</div>
<p>
Vent: 18 km/h SO
</p>
<p>
Rafales: 22 km/h
</p>
</div>
</div>
</div>
<div class="quarter-day-links">
<a href="/fr/fr/sarreguemines/135050/evening-weather-forecast/135050" class="card-button quarter-day-link left">
<span class="text">Soirée</span>
<div class="arrow-wrap is-next">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</a>
<a href="/fr/fr/sarreguemines/135050/overnight-weather-forecast/135050" class="card-button quarter-day-link right">
<span class="text">Nuit</span>
<div class="arrow-wrap is-next">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="sliding-panel sliding-panel content-module">
<div class="panel-wrap ">
<div class="panel-1"><div class="sunrise">
<div class="row-1">
<div class="rise content-panel">
<p class="module-header">Lever/coucher du soleil</p>
<span class="section-header">Lever du soleil:</span>
<span class="section-content">07:52</span>
</div>
<img class="weather-icon icon" data-src="/images/weathericons/1.svg" width="128px" height="128px" data-eager />
</div>
<div class="row-2">
<div class="set content-panel">
<span class="section-header">Coucher de soleil:</span>
<span class="section-content">18:42</span>
</div>
<div class="duration content-panel">
<span class="section-header">
Durée:
</span>
<span class="section-content last">
10:50 hr
</span>
</div>
</div>
</div>
</div>
<div class="panel-2"><div class="sunrise">
<div class="row-1">
<div class="rise content-panel">
<p class="module-header">Lever/coucher de lune</p>
<span class="section-header">Lever de lune:</span>
<span class="section-content">19:49</span>
</div>
<img class="weather-icon icon" data-src="/images/weathericons/33.svg" width="128px" height="128px" data-eager />
</div>
<div class="row-2">
<div class="set content-panel">
<span class="section-header">Coucher de lune:</span>
<span class="section-content">10:17</span>
</div>
<div class="duration content-panel">
<span class="section-header">
Durée:
</span>
<span class="section-content last">
14:28 hr
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="temp-history">
<div class="header-row card">
<div class="title">
<span class="module-header">Historique des températures</span>
<span class="module-header sub">15 octobre</span>
</div>
<div class="row">
<span class="label">Ce jour</span>
<span class="label">Normal</span>
<span class="label">Record</span>
<span class="label last">2018</span>
</div>
</div>
<div class="history card">
<div class="row">
<span class="label">18°</span>
<span class="label">13°</span>
<span class="label">
S/O
</span>
<span class="label last">24°</span>
</div>
<div class="row">
<span class="label">9°</span>
<span class="label">7°</span>
<span class="label">
S/O
</span>
<span class="label last">10°</span>
</div>
</div>
<a href="/fr/fr/sarreguemines/135050/october-weather/135050" class="card-button card-button content-module">
<span class="text">Plus d'historique météo</span>
<div class="arrow-wrap is-next">
<svg
class="icon-chevron right arrow"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
</a>
</div>
<div id="connatix" class="content-module"></div>
</div>
<div class="page-column-2">
<div class="right-rail left-align-children">
<div class="glacier-ad top_right content-module" data-ad-type="top_right" data-viewport="tablet desktop"></div>
<div class="glacier-ad middle content-module" data-ad-type="middle" data-viewport="mobile"></div>
<div class="glacier-ad bottom_right " data-ad-type="bottom_right" data-viewport="tablet desktop"></div>
</div>
</div>
</div>
<div class="glacier-ad native content-module" data-ad-type="native" data-viewport=""></div>
<div class="glacier-ad bottom content-module" data-ad-type="bottom" data-viewport=""></div>
<div class="glacier-ad oop " data-ad-type="oop" data-viewport=""></div>
<div class="breadcrumbs-wrapper ">
<div id="breadcrumbs" class="breadcrumbs">
<div class="crumb">
<a href="/fr/world-weather" class="crumb-link">Monde</a>
<svg
class="icon-chevron right crumb-chevron"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="crumb">
<a href="/fr/europe-weather" class="crumb-link">Europe</a>
<svg
class="icon-chevron right crumb-chevron"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="crumb">
<a href="/fr/fr/france-weather" class="crumb-link">France</a>
<svg
class="icon-chevron right crumb-chevron"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="crumb">
<a href="/fr/fr/57/moselle-weather" class="crumb-link">Moselle</a>
<svg
class="icon-chevron right crumb-chevron"
xmlns="http://www.w3.org/2000/svg"
width="10"
height="6"
viewBox="0 0 10 6"
>
<path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" />
</svg>
</div>
<div class="crumb">
<a href="/fr/fr/sarreguemines/135050/weather-forecast/135050" class="crumb-link">Sarreguemines</a>
</div>
</div>
</div>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/fr/world-weather","name":"Monde"}},{"@type":"ListItem","position":2,"item":{"@id":"/fr/europe-weather","name":"Europe"}},{"@type":"ListItem","position":3,"item":{"@id":"/fr/fr/france-weather","name":"France"}},{"@type":"ListItem","position":4,"item":{"@id":"/fr/fr/57/moselle-weather","name":"Moselle"}},{"@type":"ListItem","position":5,"item":{"@id":"/fr/fr/sarreguemines/135050/weather-forecast/135050","name":"Sarreguemines"}}]}</script>
<div class="base-footer ">
<div class="footer-legalese">
<div class="footer-copyright">
<span>
© 2019 AccuWeather, Inc. « AccuWeather » et le design du soleil sont des marques de commerce déposées d’AccuWeather, Inc. Tous droits réservés.
</span>
</div>
<div id="footer-terms" class="footer-terms">
<a
data-ga="Terms of usage"
href="/fr/legal"
target="_blank"
>
Conditions générales d'utilisation
</a>
|
<a
data-ga="Privacy Policy"
href="/fr/privacy"
target="_blank"
>
Charte de confidentialité
</a>
|
<a
data-ga="Cookie Policy"
href="/fr/cookiepolicy"
target="_blank"
>
Politique relative aux cookies
</a>
|
<a
data-ga="TAG Disclosure"
href="/fr/tag-publisher-sourcing-disclosure"
target="_blank"
>
Déclaration TAG
</a>
</div>
</div>
</div>
</div>
<script charset="utf-8" src="/bundles/city.current-weather.3da9cea75f18139cd471.js" async></script>
<script charset="utf-8" src="/bundles/0.cf35899e2f5f6a7c9ca2.js" async></script>
<!-- Begin comScore Tag -->
<script>var _comscore=_comscore||[];_comscore.push({c1:"2",c2:"6005068"}),function(){var c=document.createElement("script"),e=document.getElementsByTagName("script")[0];c.async=!0,c.src=(document.location.protocol=="https:"?"https://sb":"http://b")+".scorecardresearch.com/beacon.js",e.parentNode.insertBefore(c,e)}();</script>
<noscript><img src="https://sb.scorecardresearch.com/p?c1=2&c2=6005068&cv=2.0&cj=1" alt="ComScore" /></noscript>
<!-- End comScore Tag -->
<script>
window.comscoreBeacon = function() {
self.COMSCORE.beacon({c1: "2", c2: "6005068"});
// call to server to get pageview_candidate
var url = '/comscore/';
var httpRequest = new XMLHttpRequest();
httpRequest.open('GET', url);
httpRequest.send();
}
</script>
<noscript><img src="https://www.accuweather.com/akam/11/pixel_12396fd1?a=dD1iODVmM2ZmNjIxYWJiNTZjNGMwNDgxMzZiNjMzMWQ3OTY0NGRjMWJjJmpzPW9mZg==" style="visibility: hidden; position: absolute; left: -999px; top: -999px;" /></noscript></body>
</html>
Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX
Offline
to Weather.com
Teo,
i think i found the solution with the correct conversion of svg images to png images. My starting point were debians error reports for the imagemagick package.
This is where I found it:
https://github.com/ImageMagick/ImageMagick/issues/335
https://bugs.debian.org/cgi-bin/bugrepo … bug=793982
The subsequent installation of the inkscape package led to success both in bunsenlabs and in siduction.
Here these dependencies are drawn (example for sid):
...
fig2dev libcdr-0.1-1 libgsl23 libgslcblas0 libgtkspell0 libimage-magick-perl libimage-magick-q16-perl libmagick++-6.q16-8 libnetpbm10
libpotrace0 librevenge-0.0-0 libvisio-0.1-1 libwmf-bin libwpd-0.10-10 libwpg-0.3-3 netpbm python-scour python-six python3-scour scour
...
You can continue with your great work and optimize the script for weather.com.
Offline
Teo, thank you.
The Accuweather_conky_script is working correctly again. It only wonders how long.
I give it a couple of days.
hello
don't work with Théo's adress
What do you mean? It works fine for me.
Here's SARREGUEMINES:
to Weather.com
Teo,
i think i found the solution with the correct conversion of svg images to png images. My starting point were debians error reports for the imagemagick package.This is where I found it:
https://github.com/ImageMagick/ImageMagick/issues/335
https://bugs.debian.org/cgi-bin/bugrepo … bug=793982The subsequent installation of the inkscape package led to success both in bunsenlabs and in siduction.
Here these dependencies are drawn (example for sid):... fig2dev libcdr-0.1-1 libgsl23 libgslcblas0 libgtkspell0 libimage-magick-perl libimage-magick-q16-perl libmagick++-6.q16-8 libnetpbm10 libpotrace0 librevenge-0.0-0 libvisio-0.1-1 libwmf-bin libwpd-0.10-10 libwpg-0.3-3 netpbm python-scour python-six python3-scour scour ...
You can continue with your great work and optimize the script for weather.com.
![]()
Brilliant!!!
Thanks for your feedback and support unklar.
I hope I have the time today to make the script official.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Brilliant!!!
Thanks for your feedback and support unklar.
I hope I have the time today to make the script official.
Thanks!
I was very happy to do it for all of us!
It was a pleasure to support you as much as I could.
Could you already test it with your brother with ubuntu?
Offline
I'll try to convince my brother in law to test it for me and I'll report back.
Last edited by TeoBigusGeekus (2019-10-15 18:07:15)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Offline
Couldn't get him to try; neither could my sister.
Tomorrow's another day I guess...
EDIT: To compensate, I think I've solved the vpn issue with accuweather. Stay tuned.
Last edited by TeoBigusGeekus (2019-10-15 21:43:25)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Hello
I found it
you change
1_accuweather/
to
Accuweather_conky_script/
i must change all my conky.
i see you later
@+
work with en/fr
but no curr_cond when /fr/fr
Last edited by loutch (2019-10-16 08:28:52)
Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX
Offline
ANNOUNCEMENT
Accuweather Script:
Made the script (current weather section) a bit more international. I've also switched to curl and solved the VPN problem, at least with Expressvpn that is.
Sorry for the constant change of downloaders, I hope this is the last time.
Last edited by TeoBigusGeekus (2019-10-16 22:16:18)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@unklar
Flawless victory on ubuntu mate 18.04 with the inkscape package.
The weather.com script is here to stay.
Thanks a lot for that awesome find!!!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
.
Last edited by loutch (2019-10-17 08:56:14)
Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX
Offline
ANNOUNCEMENT
Weather.com script finally released. I've been meaning to do so for the last couple of weeks, but Accuweather didn't let me.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@unklar
Flawless victory on ubuntu mate 18.04 with the inkscape package.
The weather.com script is here to stay.
Thanks a lot for that awesome find!!!---
ANNOUNCEMENT
Weather.com script finally released. ...
Congratulations on this great achievement.
Script released into the wild.
(without fibbing, I guess it will be your main script... )
Offline
Yep, got tired of my old conky configuration, switched to weather.com.
Thanks again for all the support and feedback unklar, I really appreciate it mein Freund!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
hi,i have this erorr
[ettore@yoda-pc ~]$ git clone https://gitlab.com/teobigusgeekus/WUnderground_conky_script.git
Cloning into 'WUnderground_conky_script'...
remote: Enumerating objects: 170, done.
remote: Counting objects: 100% (170/170), done.
remote: Compressing objects: 100% (131/131), done.
Receiving objects: 7% (12/170), 12.00 KiB | 3.00 KiB/s
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
fatal: the remote end hung up unexpectedly
fatal: early EOF
Offline
for @ragamatix
whi mi conky sat not working?
I have this errors
disaster,a complete weather is no longer a conky weather, both satellite and time.
help please
ettore@yoda-pc ~]$ conky: desktop window (159) is root window
conky: window type - normal
conky: drawing to created window (0x1600002)
conky: drawing to double buffer
conky: forked to background, pid is 25045
conky: Unable to load image '/tmp/satireu1.png'
convert: improper image header `/tmp/satireu1.gif' @ error/gif.c/ReadGIFImage/1028.
convert: no images defined `/tmp/satireu1.png' @ error/convert.c/ConvertImageCommand/3273.
convert: unable to open image '/tmp/satireu1.png': No such file or directory @ error/blob.c/OpenBlob/3497.
Offline
@ector1935
See maybe here?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Hi @teo thanks for the reply, now git works great.
But I have problems with the new accuweather script.
This works:
#!/usr/bin/env bash
#########################################################################################
# Put the command that launches the conky configuration file that uses this script here #
#########################################################################################
weather_conky_launch_command="conky -b"
#####################################
# Put your Accuweather address here #
#####################################
#address="http://www.accuweather.com/en/ar/buenos-aires/7894/weather-forecast/7894"
#address="https://www.accuweather.com/en/us/hutto-tx/78634/weather-forecast/2110192"
#address="http://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
#address="http://www.accuweather.com/en/de/lichtenstein/09350/weather-forecast/171261"
address="http://www.accuweather.com/en/it/gorlago/2277856/weather-forecast/2277856"
#Pause weather conky
pkill -STOP -xf "$weather_conky_launch_command"
#function: test_image
test_image () {
case $1 in
1)
echo a
;;
2|3)
echo b
;;
4|5)
echo c
;;
6)
echo d
;;
7)
echo e
;;
8)
echo f
;;
11)
echo 0
;;
12)
echo h
;;
13|14)
echo g
;;
15)
echo m
;;
16|17)
echo k
;;
18)
echo i
;;
19)
echo q
;;
20|21|23)
echo o
;;
22)
echo r
;;
24|31)
echo E
;;
25)
echo v
;;
26)
echo x
;;
29)
echo y
;;
30)
echo 5
;;
32)
echo 6
;;
33)
echo A
;;
34|35)
echo B
;;
36|37)
echo C
;;
38)
echo D
;;
39|40)
echo G
;;
41|42)
echo K
;;
43|44)
echo O
;;
*)
echo -
;;
esac
}
############################
# Check the user arguments #
############################
if (( $# < 1 || $# > 15 )); then
echo "Invalid arguments!"
exit
fi
forecast0=0
forecast2015=0
forecast2016=0
hourly0=0
hourly2015=0
hourly2016=0
h_24hours=1
h_real=1
h_wind=1
h_rain=1
h_snow=1
h_ice=1
h_uv=1
h_cloud=1
h_humid=1
h_dew=1
h_visib=1
for i in $*
do
if [[ $i != -f && $i != -f2015 && $i != -f2016 && $i != -h && $i != -h2015 && $i != -h2016 && $i != -h_12h && $i != -h_no_real && $i != -h_no_wind && $i != -h_no_rain && $i != -h_no_snow && $i != -h_no_ice && $i != -h_no_uv && $i != -h_no_cloud && $i != -h_no_humid && $i != -h_no_dew && $i != -h_no_visib ]]; then
echo "Invalid arguments!"
exit
fi
case $i in
-f)
forecast0=1
;;
-f2015)
forecast2015=1
;;
-f2016)
forecast2016=1
;;
-h)
hourly0=1
;;
-h2015)
hourly2015=1
;;
-h2016)
hourly2016=1
;;
-h_12h)
h_24hours=0
;;
-h_no_real)
h_real=0
;;
-h_no_wind)
h_wind=0
;;
-h_no_rain)
h_rain=0
;;
-h_no_snow)
h_snow=0
;;
-h_no_ice)
h_ice=0
;;
-h_no_uv)
h_uv=0
;;
-h_no_cloud)
h_cloud=0
;;
-h_no_humid)
h_humid=0
;;
-h_no_dew)
h_dew=0
;;
-h_no_visib)
h_visib=0
;;
esac
done
if [[ $forecast0 == 1 ]]; then
forecast2015=0
forecast2016=0
fi
if [[ $hourly0 == 1 ]]; then
hourly2015=0
hourly2016=0
fi
last_number=$(echo $address|sed 's/^.*\///')
#############################################################
# NORMAL FORECAST: -f, -f2015 or -f2016 passed as arguments #
#############################################################
if [[ $forecast0 == 1 || $forecast2015 == 1 || $forecast2016 == 1 ]]; then
#function: convert_time
convert_time ()
{
hours=$(echo $1|awk -F ":| " '{print $1}')
minutes=$(echo $1|awk -F ":| " '{print $2}')
am_or_pm=$(echo $1|awk -F ":| " '{print $3}')
if [[ $am_or_pm == AM ]]; then
if (( $hours < 10 )); then
hours_24=0$hours
fi
if (( $hours == 10 || $hours == 11 )); then
hours_24=$hours
fi
if (( $hours == 12 )); then
hours_24=00
fi
elif [[ $am_or_pm == PM ]]; then
if (( $hours != 12 )); then
hours_24=$((hours+12))
fi
if (( $hours == 12 )); then
hours_24=12
fi
fi
time_24=$hours_24:$minutes
echo $time_24
}
#function: test_wind
test_wind () {
case $1 in
CLM)
echo -
;;
S)
echo 1
;;
SSW)
echo 2
;;
SW)
echo 3
;;
WSW)
echo 4
;;
W)
echo 5
;;
WNW)
echo 6
;;
NW)
echo 7
;;
NNW)
echo 8
;;
N)
echo 9
;;
NNE)
echo :
;;
NE)
echo ;
;;
ENE)
echo \<
;;
E)
echo =
;;
ESE)
echo \>
;;
SE)
echo ?
;;
SSE)
echo @
;;
esac
}
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -U "Oh hi Mark!" -O $HOME/Accuweather_conky_script/curr_cond_raw "$curr_addr"
daily_addr="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -U "Oh hi Mark!" -O $HOME/Accuweather_conky_script/daily_forecast "$daily_addr"
if [[ $forecast2015 == 1 ]]; then
rm $HOME/Accuweather_conky_script/forecast_2015/forecast_*.png
fi
if [[ $forecast2016 == 1 ]]; then
rm $HOME/Accuweather_conky_script/forecast_2016/forecast_*.png
fi
#current conditions
if [[ -s $HOME/Accuweather_conky_script/curr_cond_raw ]]; then
sed '/>Current Weather</,/>See Hourly</!d' $HOME/Accuweather_conky_script/curr_cond_raw > $HOME/Accuweather_conky_script/curr_cond_temp
sed -i '/\.svg"\|°\|phrase\|Humidity\|UV Index\|Cloud Cover\|Pressure\|Dew Point\|Visibility\|Wind/!d' $HOME/Accuweather_conky_script/curr_cond_temp
sed -i -e 's/^.*weathericons\///' -e 's/\.svg.*$//' -e 's/°.*$//g' -e 's/^[ ,\t]*//g' -e 's/^.*phrase">//' -e 's/<\/div>//' -e 's/: /\n/g' $HOME/Accuweather_conky_script/curr_cond_temp
sed -i -e '20s/\(.*\) /\1\n/' $HOME/Accuweather_conky_script/curr_cond_temp
sed -n 1,4p $HOME/Accuweather_conky_script/curr_cond_temp > $HOME/Accuweather_conky_script/curr_cond
sed -n 21p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 20p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 6p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 12p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 8p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 10p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/Accuweather_conky_script/curr_cond
sed -n 14p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 16p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed '/>Sunrise\/Sunset</,/>Temperature History</!d' $HOME/Accuweather_conky_script/curr_cond_raw > $HOME/Accuweather_conky_script/curr_cond_temp
sed -i '/AM\|PM\|hr/!d' $HOME/Accuweather_conky_script/curr_cond_temp
sed -i -e 's/^.*content">//g' -e 's/^[ ,\t]*//g' -e 's/<\/span>//g' -e 's/ hr//g' $HOME/Accuweather_conky_script/curr_cond_temp
sed -n 1,3p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/Accuweather_conky_script/curr_cond
sed -n 4,6p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/Accuweather_conky_script/curr_cond
rm $HOME/Accuweather_conky_script/curr_cond_temp
image=$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 14p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 15p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 18p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 19p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
wind=$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond)
echo $(test_wind $wind) >> $HOME/Accuweather_conky_script/curr_cond
if (( $(sed -n 14p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '14s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if (( $(sed -n 15p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '15s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if (( $(sed -n 18p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '18s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if (( $(sed -n 19p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '19s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if [[ $forecast2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2015/forecast_0.png
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2015/wind_0.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2016/wind_0.png
fi
fi
#Daily forecast
if [[ -s $HOME/Accuweather_conky_script/daily_forecast ]]; then
sed -i '/var dailyForecast/!d' $HOME/Accuweather_conky_script/daily_forecast
sed -i -e 's/var dailyForecast = \[//' -e 's/","\|":"/\n/g' -e 's/icon":/icon\n/g' -e 's/,"phrase/\nphrase/g' -e 's/temp":/temp\n/g' -e 's/},"dow/\ndow/g' -e 's/":{"dTemp/\ndTemp/g' $HOME/Accuweather_conky_script/daily_forecast
sed -i -e 's/}}.*,"date/\ndate/' -e 's/}}];//g' -e '1s/^.*$/date/' -e 's/°//g' $HOME/Accuweather_conky_script/daily_forecast
sed -i '601,$d' $HOME/Accuweather_conky_script/daily_forecast
for (( i=9; i<=569; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/daily_forecast)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/daily_forecast
done
for (( i=30; i<=590; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/daily_forecast)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/daily_forecast
done
if [[ $forecast0 == 0 ]]; then
j=1
for (( i=9; i<=569; i+=40 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2015/forecast_$j.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2016/forecast_$j.png
fi
((j++))
done
for (( i=30; i<=590; i+=40 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2015/forecast_$j.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2016/forecast_$j.png
fi
((j++))
done
fi
fi
fi
#############################################################
# HOURLY FORECAST: -h, -h2015 or -h2016 passed as arguments #
#############################################################
if [[ $hourly0 == 1 || $hourly2015 == 1 || $hourly2016 == 1 ]]; then
#Hourly: 24h
if [[ $hourly2015 == 1 ]]; then
rm $HOME/Accuweather_conky_script/hourly_2015/hourly_*.png
fi
if [[ $hourly2016 == 1 ]]; then
rm $HOME/Accuweather_conky_script/hourly_2016/hourly_*.png
fi
hourly_addr1="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"
hourly_addr2="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"?day=2
wget -U "Oh hi Mark!" -O $HOME/Accuweather_conky_script/hourly_raw1 "$hourly_addr1"
wget -U "Oh hi Mark!" -O $HOME/Accuweather_conky_script/hourly_raw2 "$hourly_addr2"
if [[ -s $HOME/Accuweather_conky_script/hourly_raw1 && -s $HOME/Accuweather_conky_script/hourly_raw2 ]]; then
sed -i '/var hourlyForecast/!d' $HOME/Accuweather_conky_script/hourly_raw1
sed -i -e 's/var hourlyForecast = \[//' -e 's/","\|":"/\n/g' $HOME/Accuweather_conky_script/hourly_raw1
sed -i -e 's/°.*ceiling/\nceiling/g' -e 's/{"extended":{"//' -e 's/":{"category//g' $HOME/Accuweather_conky_script/hourly_raw1
sed -i -e 's/":\|},"/\n/g' -e 's/,"localDate/\nlocaldate/g' -e 's/"}];//g' -e 's/°//g' -e 's/ km\/h\| mph//g' $HOME/Accuweather_conky_script/hourly_raw1
sed -i '/var hourlyForecast/!d' $HOME/Accuweather_conky_script/hourly_raw2
sed -i -e 's/var hourlyForecast = \[//' -e 's/","\|":"/\n/g' $HOME/Accuweather_conky_script/hourly_raw2
sed -i -e 's/°.*ceiling/\nceiling/g' -e 's/{"extended":{"//' -e 's/":{"category//g' $HOME/Accuweather_conky_script/hourly_raw2
sed -i -e 's/":\|},"/\n/g' -e 's/,"localDate/\nlocaldate/g' -e 's/"}];//g' -e 's/°//g' -e 's/ km\/h\| mph//g' $HOME/Accuweather_conky_script/hourly_raw2
cat $HOME/Accuweather_conky_script/hourly_raw1 $HOME/Accuweather_conky_script/hourly_raw2 > $HOME/Accuweather_conky_script/hourly
sed -i '961,$d' $HOME/Accuweather_conky_script/hourly
for (( i=28; i<=948; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/hourly)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/hourly
done
if [[ $hourly0 == 0 ]]; then
j=1
for (( i=28; i<=948; i+=40 ))
do
if [[ $hourly2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly).png $HOME/Accuweather_conky_script/hourly_2015/hourly_$j.png
fi
if [[ $hourly2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly).png $HOME/Accuweather_conky_script/hourly_2016/hourly_$j.png
fi
((j++))
done
fi
fi
# Full info, next 24h - altogether24 file
rm $HOME/Accuweather_conky_script/{altogether24,altogether24_2015,altogether24_2016}
#TIME
echo "\${color1}TIME\${goto 100}$(sed -n 32p $HOME/Accuweather_conky_script/hourly)" > $HOME/Accuweather_conky_script/altogether24
jump_to=160
for (( i=72; i<=472; i+=40 ))
do
time=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=512; i<=952; i+=40 ))
do
time=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
sed -i '1s/$/\n\n\n/' $HOME/Accuweather_conky_script/altogether24
#FORECAST
echo "\${color1}FORECAST\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=34; i<=474; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=514; i<=954; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
sed -i '5s/$/\n/' $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=34; i<=474; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=514; i<=954; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#TEMPERATURE
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "TEMPER.\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=40; i<=480; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=520; i<=960; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#REAL FEEL
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "REAL FEEL\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=38; i<=478; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=518; i<=958; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#WIND
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "WIND\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=24; i<=464; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=504; i<=944; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#RAIN
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "RAIN\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=14; i<=454; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=494; i<=934; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#SNOW
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "SNOW\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=16; i<=456; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=496; i<=936; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#ICE
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "ICE\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=12; i<=452; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=492; i<=932; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#UV INDEX
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "UV INDEX\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=20; i<=460; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=500; i<=940; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#CLOUD COVER
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "CLOUD COV.\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=4; i<=444; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=484; i<=924; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#HUMIDITY
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "HUMIDITY\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=10; i<=450; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=490; i<=930; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#DEW POINT
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "DEW POINT\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=6; i<=446; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=486; i<=926; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#VISIBILITY
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "VISIBILITY\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=22; i<=462; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=502; i<=942; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#IMAGES
if [[ $hourly0 == 0 ]]; then
if [[ $hourly2015 == 1 ]]; then
jump_to=75
cp $HOME/Accuweather_conky_script/altogether24 $HOME/Accuweather_conky_script/altogether24_2015
fi
if [[ $hourly2016 == 1 ]]; then
jump_to=85
cp $HOME/Accuweather_conky_script/altogether24 $HOME/Accuweather_conky_script/altogether24_2016
fi
rm $HOME/Accuweather_conky_script/altogether24
hours=$((12+$h_24hours*12))
for (( i=1; i<=$hours; i+=1 ))
do
if [[ $hourly2015 == 1 ]]; then
sed -i "4s/$/\${image \$HOME\/Accuweather_conky_script\/hourly_2015\/hourly_$i.png -s 60x36 -p $jump_to,49}/" $HOME/Accuweather_conky_script/altogether24_2015
fi
if [[ $hourly2016 == 1 ]]; then
sed -i "4s/$/\${image \$HOME\/Accuweather_conky_script\/hourly_2016\/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/Accuweather_conky_script/altogether24_2016
fi
((jump_to+=60))
done
fi
#CONKYFONT
if [[ $hourly0 == 1 ]]; then
sed -i '4s/$/\${color}\${font conkyweather:size=35}/' $HOME/Accuweather_conky_script/altogether24
jump_to=95
for (( i=961; i<=972; i+=1 ))
do
sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=973; i<=984; i+=1 ))
do
sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
sed -i '4s/$/\${font}/' $HOME/Accuweather_conky_script/altogether24
sed -i '2,3d' $HOME/Accuweather_conky_script/altogether24
fi
#DELETE UNWANTED VARIABLES
if [[ $h_real == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '7,8s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_wind == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_rain == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_snow == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_ice == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_uv == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_cloud == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_humid == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_dew == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_visib == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '27,28s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '27,28s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
sed -i '/VOID/d' $HOME/Accuweather_conky_script/{altogether24,altogether24_2015,altogether24_2016}
fi
#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"
But this doesn't work, why?
#!/usr/bin/env bash
#########################################################################################
# Put the command that launches the conky configuration file that uses this script here #
#########################################################################################
weather_conky_launch_command="conky -b"
#####################################
# Put your Accuweather address here #
#####################################
address="http://www.accuweather.com/en/it/gorlago/2277856/weather-forecast/2277856"
#address="https://www.accuweather.com/en/us/hutto-tx/78634/weather-forecast/2110192"
#address="https://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
#address="http://www.accuweather.com/en/de/lichtenstein/09350/weather-forecast/171261"
#Pause weather conky
pkill -STOP -xf "$weather_conky_launch_command"
#function: test_image
test_image () {
case $1 in
1)
echo a
;;
2|3)
echo b
;;
4|5)
echo c
;;
6)
echo d
;;
7)
echo e
;;
8)
echo f
;;
11)
echo 0
;;
12)
echo h
;;
13|14)
echo g
;;
15)
echo m
;;
16|17)
echo k
;;
18)
echo i
;;
19)
echo q
;;
20|21|23)
echo o
;;
22)
echo r
;;
24|31)
echo E
;;
25)
echo v
;;
26)
echo x
;;
29)
echo y
;;
30)
echo 5
;;
32)
echo 6
;;
33)
echo A
;;
34|35)
echo B
;;
36|37)
echo C
;;
38)
echo D
;;
39|40)
echo G
;;
41|42)
echo K
;;
43|44)
echo O
;;
*)
echo -
;;
esac
}
############################
# Check the user arguments #
############################
if (( $# < 1 || $# > 15 )); then
echo "Invalid arguments!"
exit
fi
forecast0=0
forecast2015=0
forecast2016=0
hourly0=0
hourly2015=0
hourly2016=0
h_24hours=1
h_real=1
h_wind=1
h_rain=1
h_snow=1
h_ice=1
h_uv=1
h_cloud=1
h_humid=1
h_dew=1
h_visib=1
for i in $*
do
if [[ $i != -f && $i != -f2015 && $i != -f2016 && $i != -h && $i != -h2015 && $i != -h2016 && $i != -h_12h && $i != -h_no_real && $i != -h_no_wind && $i != -h_no_rain && $i != -h_no_snow && $i != -h_no_ice && $i != -h_no_uv && $i != -h_no_cloud && $i != -h_no_humid && $i != -h_no_dew && $i != -h_no_visib ]]; then
echo "Invalid arguments!"
exit
fi
case $i in
-f)
forecast0=1
;;
-f2015)
forecast2015=1
;;
-f2016)
forecast2016=1
;;
-h)
hourly0=1
;;
-h2015)
hourly2015=1
;;
-h2016)
hourly2016=1
;;
-h_12h)
h_24hours=0
;;
-h_no_real)
h_real=0
;;
-h_no_wind)
h_wind=0
;;
-h_no_rain)
h_rain=0
;;
-h_no_snow)
h_snow=0
;;
-h_no_ice)
h_ice=0
;;
-h_no_uv)
h_uv=0
;;
-h_no_cloud)
h_cloud=0
;;
-h_no_humid)
h_humid=0
;;
-h_no_dew)
h_dew=0
;;
-h_no_visib)
h_visib=0
;;
esac
done
if [[ $forecast0 == 1 ]]; then
forecast2015=0
forecast2016=0
fi
if [[ $hourly0 == 1 ]]; then
hourly2015=0
hourly2016=0
fi
last_number=$(echo $address|sed 's/^.*\///')
#############################################################
# NORMAL FORECAST: -f, -f2015 or -f2016 passed as arguments #
#############################################################
if [[ $forecast0 == 1 || $forecast2015 == 1 || $forecast2016 == 1 ]]; then
#function: convert_time
convert_time ()
{
hours=$(echo $1|awk -F ":| " '{print $1}')
minutes=$(echo $1|awk -F ":| " '{print $2}')
am_or_pm=$(echo $1|awk -F ":| " '{print $3}')
if [[ $am_or_pm == "" ]]; then
echo $1
return 0
elif [[ $am_or_pm == AM ]]; then
if (( $hours < 10 )); then
hours_24=0$hours
fi
if (( $hours == 10 || $hours == 11 )); then
hours_24=$hours
fi
if (( $hours == 12 )); then
hours_24=00
fi
elif [[ $am_or_pm == PM ]]; then
if (( $hours != 12 )); then
hours_24=$((hours+12))
fi
if (( $hours == 12 )); then
hours_24=12
fi
fi
time_24=$hours_24:$minutes
echo $time_24
}
#function: test_wind
test_wind () {
case $1 in
CLM)
echo -
;;
S)
echo 1
;;
SSW)
echo 2
;;
SW)
echo 3
;;
WSW)
echo 4
;;
W)
echo 5
;;
WNW)
echo 6
;;
NW)
echo 7
;;
NNW)
echo 8
;;
N)
echo 9
;;
NNE)
echo :
;;
NE)
echo ;
;;
ENE)
echo \<
;;
E)
echo =
;;
ESE)
echo \>
;;
SE)
echo ?
;;
SSE)
echo @
;;
esac
}
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0' -H 'Accept-Language: en-US,en;q=0.5' --compressed -o $HOME/Accuweather_conky_script/curr_cond_raw "$curr_addr"
daily_addr="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0' -H 'Accept-Language: en-US,en;q=0.5' --compressed -o $HOME/Accuweather_conky_script/daily_forecast "$daily_addr"
if [[ $forecast2015 == 1 ]]; then
rm $HOME/Accuweather_conky_script/forecast_2015/forecast_*.png
fi
if [[ $forecast2016 == 1 ]]; then
rm $HOME/Accuweather_conky_script/forecast_2016/forecast_*.png
fi
#current conditions
if [[ -s $HOME/Accuweather_conky_script/curr_cond_raw ]]; then
sed '/conditions-card card panel conditions/,/class="card-button "/!d' $HOME/Accuweather_conky_script/curr_cond_raw > $HOME/Accuweather_conky_script/curr_cond_temp
sed -i -e '/\.svg"\|°\|phrase\|: /!d' -e '/style="transform: /d' $HOME/Accuweather_conky_script/curr_cond_temp
sed -i -e 's/^.*weathericons\///' -e 's/\.svg.*$//' -e 's/°.*$//g' -e 's/^[ ,\t]*//g' -e 's/^.*phrase">//' -e 's/<\/div>//' -e 's/: /\n/g' $HOME/Accuweather_conky_script/curr_cond_temp
sed -i -e '20s/\(.*\) /\1\n/' $HOME/Accuweather_conky_script/curr_cond_temp
sed -n 1,4p $HOME/Accuweather_conky_script/curr_cond_temp > $HOME/Accuweather_conky_script/curr_cond
sed -n 21p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 20p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 6p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 12p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 8p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 10p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/Accuweather_conky_script/curr_cond
sed -n 14p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed -n 16p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
sed '/<div class="panel-1"><div class="sunrise">/,/<div class="temp-history">/!d' $HOME/Accuweather_conky_script/curr_cond_raw > $HOME/Accuweather_conky_script/curr_cond_temp
sed -i '/:[0-9][0-9]/!d' $HOME/Accuweather_conky_script/curr_cond_temp
sed -i -e 's/^.*content">//g' -e 's/^[ ,\t]*//g' -e 's/<\/span>//g' -e 's/ hr//g' $HOME/Accuweather_conky_script/curr_cond_temp
sed -n 1,3p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/Accuweather_conky_script/curr_cond
sed -n 4,6p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/Accuweather_conky_script/curr_cond
rm $HOME/Accuweather_conky_script/curr_cond_temp
image=$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 14p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 15p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 18p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
sunrise_time=$(sed -n 19p $HOME/Accuweather_conky_script/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond
wind=$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond)
echo $(test_wind $wind) >> $HOME/Accuweather_conky_script/curr_cond
if (( $(sed -n 14p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '14s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if (( $(sed -n 15p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '15s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if (( $(sed -n 18p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '18s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if (( $(sed -n 19p /$HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
sed -i '19s/^/0/' $HOME/Accuweather_conky_script/curr_cond
fi
if [[ $forecast2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2015/forecast_0.png
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2015/wind_0.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2016/wind_0.png
fi
fi
#Daily forecast
if [[ -s $HOME/Accuweather_conky_script/daily_forecast ]]; then
sed -i '/var dailyForecast/!d' $HOME/Accuweather_conky_script/daily_forecast
sed -i -e 's/var dailyForecast = \[//' -e 's/","\|":"/\n/g' -e 's/icon":/icon\n/g' -e 's/,"phrase/\nphrase/g' -e 's/temp":/temp\n/g' -e 's/},"dow/\ndow/g' -e 's/":{"dTemp/\ndTemp/g' $HOME/Accuweather_conky_script/daily_forecast
sed -i -e 's/}}.*,"date/\ndate/' -e 's/}}];//g' -e '1s/^.*$/date/' -e 's/°//g' $HOME/Accuweather_conky_script/daily_forecast
sed -i '601,$d' $HOME/Accuweather_conky_script/daily_forecast
for (( i=9; i<=569; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/daily_forecast)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/daily_forecast
done
for (( i=30; i<=590; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/daily_forecast)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/daily_forecast
done
if [[ $forecast0 == 0 ]]; then
j=1
for (( i=9; i<=569; i+=40 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2015/forecast_$j.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2016/forecast_$j.png
fi
((j++))
done
for (( i=30; i<=590; i+=40 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2015/forecast_$j.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2016/forecast_$j.png
fi
((j++))
done
fi
fi
fi
#############################################################
# HOURLY FORECAST: -h, -h2015 or -h2016 passed as arguments #
#############################################################
if [[ $hourly0 == 1 || $hourly2015 == 1 || $hourly2016 == 1 ]]; then
#Hourly: 24h
if [[ $hourly2015 == 1 ]]; then
rm $HOME/Accuweather_conky_script/hourly_2015/hourly_*.png
fi
if [[ $hourly2016 == 1 ]]; then
rm $HOME/Accuweather_conky_script/hourly_2016/hourly_*.png
fi
hourly_addr1="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"
hourly_addr2="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"?day=2
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0' -H 'Accept-Language: en-US,en;q=0.5' --compressed -o $HOME/Accuweather_conky_script/hourly_raw1 "$hourly_addr1"
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0' -H 'Accept-Language: en-US,en;q=0.5' --compressed -o $HOME/Accuweather_conky_script/hourly_raw2 "$hourly_addr2"
if [[ -s $HOME/Accuweather_conky_script/hourly_raw1 && -s $HOME/Accuweather_conky_script/hourly_raw2 ]]; then
sed -i '/var hourlyForecast/!d' $HOME/Accuweather_conky_script/hourly_raw1
sed -i -e 's/var hourlyForecast = \[//' -e 's/","\|":"/\n/g' $HOME/Accuweather_conky_script/hourly_raw1
sed -i -e 's/°.*ceiling/\nceiling/g' -e 's/{"extended":{"//' -e 's/":{"category//g' $HOME/Accuweather_conky_script/hourly_raw1
sed -i -e 's/":\|},"/\n/g' -e 's/,"localDate/\nlocaldate/g' -e 's/"}];//g' -e 's/°//g' -e 's/ km\/h\| mph//g' $HOME/Accuweather_conky_script/hourly_raw1
sed -i '/var hourlyForecast/!d' $HOME/Accuweather_conky_script/hourly_raw2
sed -i -e 's/var hourlyForecast = \[//' -e 's/","\|":"/\n/g' $HOME/Accuweather_conky_script/hourly_raw2
sed -i -e 's/°.*ceiling/\nceiling/g' -e 's/{"extended":{"//' -e 's/":{"category//g' $HOME/Accuweather_conky_script/hourly_raw2
sed -i -e 's/":\|},"/\n/g' -e 's/,"localDate/\nlocaldate/g' -e 's/"}];//g' -e 's/°//g' -e 's/ km\/h\| mph//g' $HOME/Accuweather_conky_script/hourly_raw2
cat $HOME/Accuweather_conky_script/hourly_raw1 $HOME/Accuweather_conky_script/hourly_raw2 > $HOME/Accuweather_conky_script/hourly
sed -i '961,$d' $HOME/Accuweather_conky_script/hourly
for (( i=28; i<=948; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/hourly)
echo $(test_image $image) >> $HOME/Accuweather_conky_script/hourly
done
if [[ $hourly0 == 0 ]]; then
j=1
for (( i=28; i<=948; i+=40 ))
do
if [[ $hourly2015 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly).png $HOME/Accuweather_conky_script/hourly_2015/hourly_$j.png
fi
if [[ $hourly2016 == 1 ]]; then
cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly).png $HOME/Accuweather_conky_script/hourly_2016/hourly_$j.png
fi
((j++))
done
fi
fi
# Full info, next 24h - altogether24 file
rm $HOME/Accuweather_conky_script/{altogether24,altogether24_2015,altogether24_2016}
#TIME
echo "\${color1}TIME\${goto 100}$(sed -n 32p $HOME/Accuweather_conky_script/hourly)" > $HOME/Accuweather_conky_script/altogether24
jump_to=160
for (( i=72; i<=472; i+=40 ))
do
time=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=512; i<=952; i+=40 ))
do
time=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
sed -i '1s/$/\n\n\n/' $HOME/Accuweather_conky_script/altogether24
#FORECAST
echo "\${color1}FORECAST\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=34; i<=474; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=514; i<=954; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
sed -i '5s/$/\n/' $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=34; i<=474; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=514; i<=954; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#TEMPERATURE
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "TEMPER.\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=40; i<=480; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=520; i<=960; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#REAL FEEL
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "REAL FEEL\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=38; i<=478; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=518; i<=958; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#WIND
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "WIND\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=24; i<=464; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=504; i<=944; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#RAIN
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "RAIN\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=14; i<=454; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=494; i<=934; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#SNOW
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "SNOW\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=16; i<=456; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=496; i<=936; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#ICE
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "ICE\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=12; i<=452; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=492; i<=932; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#UV INDEX
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "UV INDEX\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=20; i<=460; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=500; i<=940; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#CLOUD COVER
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "CLOUD COV.\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=4; i<=444; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=484; i<=924; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#HUMIDITY
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "HUMIDITY\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=10; i<=450; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=490; i<=930; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#DEW POINT
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "DEW POINT\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=6; i<=446; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=486; i<=926; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#VISIBILITY
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
echo "VISIBILITY\${color}" >> $HOME/Accuweather_conky_script/altogether24
jump_to=100
for (( i=22; i<=462; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=502; i<=942; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
#IMAGES
if [[ $hourly0 == 0 ]]; then
if [[ $hourly2015 == 1 ]]; then
jump_to=75
cp $HOME/Accuweather_conky_script/altogether24 $HOME/Accuweather_conky_script/altogether24_2015
fi
if [[ $hourly2016 == 1 ]]; then
jump_to=85
cp $HOME/Accuweather_conky_script/altogether24 $HOME/Accuweather_conky_script/altogether24_2016
fi
rm $HOME/Accuweather_conky_script/altogether24
hours=$((12+$h_24hours*12))
for (( i=1; i<=$hours; i+=1 ))
do
if [[ $hourly2015 == 1 ]]; then
sed -i "4s/$/\${image \$HOME\/Accuweather_conky_script\/hourly_2015\/hourly_$i.png -s 60x36 -p $jump_to,49}/" $HOME/Accuweather_conky_script/altogether24_2015
fi
if [[ $hourly2016 == 1 ]]; then
sed -i "4s/$/\${image \$HOME\/Accuweather_conky_script\/hourly_2016\/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/Accuweather_conky_script/altogether24_2016
fi
((jump_to+=60))
done
fi
#CONKYFONT
if [[ $hourly0 == 1 ]]; then
sed -i '4s/$/\${color}\${font conkyweather:size=35}/' $HOME/Accuweather_conky_script/altogether24
jump_to=95
for (( i=961; i<=972; i+=1 ))
do
sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=973; i<=984; i+=1 ))
do
sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)/" $HOME/Accuweather_conky_script/altogether24
((jump_to+=60))
done
fi
sed -i '4s/$/\${font}/' $HOME/Accuweather_conky_script/altogether24
sed -i '2,3d' $HOME/Accuweather_conky_script/altogether24
fi
#DELETE UNWANTED VARIABLES
if [[ $h_real == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '7,8s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_wind == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_rain == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_snow == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_ice == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_uv == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_cloud == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_humid == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_dew == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
if [[ $h_visib == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '27,28s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '27,28s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
fi
fi
sed -i '/VOID/d' $HOME/Accuweather_conky_script/{altogether24,altogether24_2015,altogether24_2016}
fi
#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"
Where am I wrong?
Maybe I'm missing something?
Thank for the job and help
Ector
Last edited by ector1935 (2019-10-19 14:15:47)
Offline
The incredible thing is that if I use your address:
address="https://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
the script works, is there any block for Italy maybe?
Last edited by ector1935 (2019-10-19 14:26:06)
Offline
Try changing your address to https instead of http.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Hello
Change all my accuweather conky to Wunderground ,since 3 days all work great , integrate my wind icon in script.
For me bye accuweather .
Last edited by loutch (2019-10-19 16:27:40)
Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX
Offline
Yeah, they've been a liability lately, I abandoned them myself...
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
it’s a pity accuweather was a reference in conky.
Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX
Offline
& Hoping the wunderground site doesn’t change.
Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX
Offline