Index: /trunk/FACT++/src/magicweather.cc
===================================================================
--- /trunk/FACT++/src/magicweather.cc	(revision 13190)
+++ /trunk/FACT++/src/magicweather.cc	(revision 13191)
@@ -45,5 +45,6 @@
 class ConnectionWeather : public Connection
 {
-    int  fState;
+    int      fState;
+    uint16_t fInterval;
 
     bool fIsVerbose;
@@ -209,5 +210,5 @@
         PostRequest();
 
-        fKeepAlive.expires_from_now(boost::posix_time::seconds(55));
+        fKeepAlive.expires_from_now(boost::posix_time::seconds(fInterval));
         fKeepAlive.async_wait(boost::bind(&ConnectionWeather::HandleRequest,
                                           this, dummy::error));
@@ -268,4 +269,9 @@
     {
         fIsVerbose = b;
+    }
+
+    void SetInterval(uint16_t i)
+    {
+        fInterval = i;
     }
 
@@ -457,4 +463,5 @@
 
         fWeather.SetVerbose(!conf.Get<bool>("quiet"));
+        fWeather.SetInterval(conf.Get<uint16_t>("interval"));
 
         return -1;
@@ -480,4 +487,5 @@
         ("addr,a",  var<string>("www.magic.iac.es:80"),  "Network address of Cosy")
         ("quiet,q", po_bool(true),  "Disable printing contents of all received messages (except dynamic data) in clear text.")
+        ("interval,i", var<uint16_t>(25), "Interval between two server requests in seconds")
         ;
 
