Members
(inner) callback
- Description:
- SwitchBotの状態を取得したら呼ばれる関数を保持
- Source:
- Default Value:
SwitchBotの状態を取得したら呼ばれる関数を保持
(inner) client
- Description:
- Source:
- Default Value:
SwitchBotとの接続を保持
(inner) config
- Description:
- Source:
mainSwitchBotのconfig
(inner) isRun
- Description:
- Source:
- Default Value:
初期化して起動済みのフラグ
(inner) mainSwitchBot
- Description:
- Source:
SwitchBotとの通信を管理
(inner) observationJob
- Description:
- 定期的にSwitchBotの状態を取得するタイマー
- Source:
- Default Value:
定期的にSwitchBotの状態を取得するタイマー
(inner) persist
- Description:
- Source:
mainSwitchBotのpersist
(inner) sendIPCMessage
- Description:
- mainSwitchBotからIPCMessageを呼ぶためのcallback
- Source:
mainSwitchBotからIPCMessageを呼ぶためのcallback
Methods
(inner) control(idopt, commandopt) → {void}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
id |
id
|
<optional>
|
|
command |
command
|
<optional>
|
|
Returns:
-
Type
-
void
(async, inner) getCases(dateopt) → {ret}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
date |
date
|
<optional>
|
|
Returns:
-
Type
-
ret
(async, inner) getConfig() → {config}
- Source:
Parameters:
Returns:
-
Type
-
config
(async, inner) getCurrentRows(theDayBeginopt, theDayEndopt, plugopt, subQueryopt) → {rows}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
theDayBegin |
theDayBegin
|
<optional>
|
|
theDayEnd |
theDayEnd
|
<optional>
|
|
plug |
plug
|
<optional>
|
|
subQuery |
subQuery
|
<optional>
|
|
Returns:
-
Type
-
rows
(async, inner) getHumidityRows(_sendIPCMessageopt) → {rows}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
_sendIPCMessage |
sendIPCMessage
|
<optional>
|
|
Returns:
-
Type
-
rows
(async, inner) getMeterList(theDayBeginopt, theDayEndopt) → {rows}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
theDayBegin |
theDayBegin
|
<optional>
|
|
theDayEnd |
theDayEnd
|
<optional>
|
|
Returns:
-
Type
-
rows
(async, inner) getPersist() → {persist}
- Source:
Parameters:
Returns:
-
Type
-
persist
(async, inner) getTempratureRows(theDayBeginopt, theDayEndopt, meteropt, subQueryopt) → {rows}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
theDayBegin |
theDayBegin
|
<optional>
|
|
theDayEnd |
theDayEnd
|
<optional>
|
|
meter |
meter
|
<optional>
|
|
subQuery |
subQuery
|
<optional>
|
|
Returns:
-
Type
-
rows
(async, inner) getTodayRoomEnvSwitchBot() → {object}
- Source:
Parameters:
Returns:
-
Type
-
object
(async, inner) getVoltageRows(theDayBeginopt, theDayEndopt, plugopt, subQueryopt) → {rows}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
theDayBegin |
theDayBegin
|
<optional>
|
|
theDayEnd |
theDayEnd
|
<optional>
|
|
plug |
plug
|
<optional>
|
|
subQuery |
subQuery
|
<optional>
|
|
Returns:
-
Type
-
rows
(async, inner) getWeightRows(theDayBeginopt, theDayEndopt, plugopt, subQueryopt) → {rows}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
theDayBegin |
theDayBegin
|
<optional>
|
|
theDayEnd |
theDayEnd
|
<optional>
|
|
plug |
plug
|
<optional>
|
|
subQuery |
subQuery
|
<optional>
|
|
Returns:
-
Type
-
rows
(async, inner) plugMiniList(theDayBeginopt, theDayEndopt) → {rows}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
theDayBegin |
theDayBegin
|
<optional>
|
|
theDayEnd |
theDayEnd
|
<optional>
|
|
Returns:
-
Type
-
rows
(inner) renewFacilities(_clientopt, callback(devStatusList)opt)
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
_client |
Object
|
<optional>
|
|
callback(devStatusList) |
function
|
<optional>
|
|
(async, inner) sendTodayRoomEnv() → {void}
- Source:
Parameters:
Returns:
-
Type
-
void
(async, inner) setConfig(_configopt) → {void}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
_config |
_config
|
<optional>
|
|
Returns:
-
Type
-
void
(async, inner) start(_sendIPCMessageopt) → {void}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
_sendIPCMessage |
sendIPCMessage
|
<optional>
|
|
Returns:
-
Type
-
void
(async, inner) stop(voidopt) → {void}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
void |
void
|
<optional>
|
|
Returns:
-
Type
-
void
(async, inner) stopObservation(voidopt)
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
void |
void
|
<optional>
|
|
(async, inner) stopWithoutSave(voidopt) → {void}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
void |
void
|
<optional>
|
|
Returns:
-
Type
-
void
(async, inner) storeData(facilitiesopt)
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
facilities |
facilities
|
<optional>
|
|
Type Definitions
_callback() → {void}
- Source:
Returns:
-
Type
-
void