diff --git a/extensions/free-mobile-sms/free-mobile-sms.lua b/extensions/free-mobile-sms/free-mobile-sms.lua index 44f4814..1d3a473 100644 --- a/extensions/free-mobile-sms/free-mobile-sms.lua +++ b/extensions/free-mobile-sms/free-mobile-sms.lua @@ -34,7 +34,7 @@ local FreeMobileSms = class.create(function(freeMobileSms) function freeMobileSms:sendMessage(msg) logger:info('Sending message: "%s"', msg) local url = Url:new(self.apiUrl or 'https://smsapi.free-mobile.fr/sendmsg') - local resource = url:getFile()..'?'..Url.mapToQuery({user = self.user, pass = self.pass, msg = msg}) + local resource = url:getPath()..'?'..Url.mapToQuery({user = self.user, pass = self.pass, msg = msg}) local client = HttpClient:new(url) return client:fetch(resource):next(function(response) response:consume() diff --git a/lha/Extension.lua b/lha/Extension.lua index 437fe46..14058a7 100644 --- a/lha/Extension.lua +++ b/lha/Extension.lua @@ -23,9 +23,10 @@ return require('jls.lang.class').create(require('jls.util.EventPublisher'), func -- configuration: called when the configuration changes -- things: called when things change, added, removed, or extension loaded -- extensions: called when extensions change - -- poll: called depending on the configuration schedule, to collect things data and discover things - -- refresh: called depending on the configuration schedule - -- clean: called depending on the configuration + -- poll: called every 15 minutes(*), to collect things data and discover things + -- refresh: called every day at midnight(*) + -- clean: called the first day of the month(*) + -- (*) depending on the configuration schedule -- @function Extension:new -- @param engine the engine that holds this extension. -- @param dir the extension directory diff --git a/lha/schema.json b/lha/schema.json index 5386592..6931180 100644 --- a/lha/schema.json +++ b/lha/schema.json @@ -21,7 +21,7 @@ }, "configuration": { "default": "0 0 * * *", - "title": "Schedule for archiving configuration", + "title": "Schedule for archiving configuration and refreshing", "type": "string" }, "data": {