Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
空白の変更を非表示
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
テキストスタイル
外観を変更
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Timer
作成日
6 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
2 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
29 行
すべてコピー
2 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
29 行
すべてコピー
return {
return {
on = {
on = {
コピー
コピー済み
コピー
コピー済み
--
timer = { 'every second' },
timer = { 'every second' },
devices = { 1 },
--
devices = { 1 },
httpResponses = { 'lampStatus' }
httpResponses = { 'lampStatus' }
},
},
execute = function(domoticz, item)
execute = function(domoticz, item)
domoticz.log("Hallo?")
domoticz.log("Hallo?")
local lamp = domoticz.devices(384)
local lamp = domoticz.devices(384)
コピー
コピー済み
コピー
コピー済み
if (item.
isDevice
) then
if (item.
isTimer
) then
domoticz.openURL({
domoticz.openURL({
url = 'http://192.168.1.149/json/state/0',
url = 'http://192.168.1.149/json/state/0',
method = 'GET',
method = 'GET',
callback = 'lampStatus'
callback = 'lampStatus'
})
})
domoticz.log("test?")
domoticz.log("test?")
elseif (item.isHTTPResponse) then
elseif (item.isHTTPResponse) then
if (item.ok) then
if (item.ok) then
local currentStatus = item.json.on
local currentStatus = item.json.on
if(currentStatus == true) then
if(currentStatus == true) then
lamp.switchOn()
lamp.switchOn()
elseif(currentStatus == false) then
elseif(currentStatus == false) then
lamp.switchOff()
lamp.switchOff()
end
end
end
end
end
end
end
end
}
}
保存された差分
原文
ファイルを開く
return { on = { --timer = { 'every second' }, devices = { 1 }, httpResponses = { 'lampStatus' } }, execute = function(domoticz, item) domoticz.log("Hallo?") local lamp = domoticz.devices(384) if (item.isDevice) then domoticz.openURL({ url = 'http://192.168.1.149/json/state/0', method = 'GET', callback = 'lampStatus' }) domoticz.log("test?") elseif (item.isHTTPResponse) then if (item.ok) then local currentStatus = item.json.on if(currentStatus == true) then lamp.switchOn() elseif(currentStatus == false) then lamp.switchOff() end end end end }
変更されたテキスト
ファイルを開く
return { on = { timer = { 'every second' }, --devices = { 1 }, httpResponses = { 'lampStatus' } }, execute = function(domoticz, item) domoticz.log("Hallo?") local lamp = domoticz.devices(384) if (item.isTimer) then domoticz.openURL({ url = 'http://192.168.1.149/json/state/0', method = 'GET', callback = 'lampStatus' }) domoticz.log("test?") elseif (item.isHTTPResponse) then if (item.ok) then local currentStatus = item.json.on if(currentStatus == true) then lamp.switchOn() elseif(currentStatus == false) then lamp.switchOff() end end end end }
違いを見つける