Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
javalikescript committed Jan 11, 2025
1 parent f548f96 commit 7bbd79a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extensions/free-mobile-sms/free-mobile-sms.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
7 changes: 4 additions & 3 deletions lha/Extension.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lha/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"configuration": {
"default": "0 0 * * *",
"title": "Schedule for archiving configuration",
"title": "Schedule for archiving configuration and refreshing",
"type": "string"
},
"data": {
Expand Down

0 comments on commit 7bbd79a

Please sign in to comment.