public class ELKRestRequester extends ISYRestRequester
Modifier and Type | Class and Description |
---|---|
static class |
ELKRestRequester.words |
Modifier and Type | Field and Description |
---|---|
protected static String |
CLASSNAME |
protected static boolean |
debugOut_ |
static String |
LOG_TAG |
protected String |
restUrlPath_
The start path to use in therest URL.
|
ClimateCloudConditions, ClimateCoverage, ClimateIntensity, ClimateWeatherConditions, DEFAULT_ISY994_IP, DEFAULT_ISY994_PASSWORD, DEFAULT_ISY994_REST_URL_PATHSTR, DEFAULT_ISY994_USERNAME, DWNKITCHEN_ADDR, DWNKITCHEN_NODENAME, FAMILYMAINLIGHTS_ADDR, GAMESROOMLIGHTS_ADDR, GAMESROOMLIGHTS_NODENAME, helpMsg_, isyIntVars_, isyNodes_, isyStateVars_, THERMOSTAT_ADDR, TOMS_ISY994_IP, TOMS_ISY994_PASSWORD, TOMS_ISY994_USERNAME, tomsIsy_, TVDIM_ADDR, VALENCEFRONTLIGHTS_ADDR, VALENCESURROUNDLIGHTS_ADDR
acceptJSON_, authenticating_, baseUrl_, password_, SYSTEM_FILE_SEPERATOR, SYSTEM_LINE_SEPERATOR, USER_AGENT, username_
Constructor and Description |
---|
ELKRestRequester()
Default constructor that authenticates the default ISY with the default user password (using the class vars)
UNLESS the tomsIsy_ class var is true to over-ride with TOMS _isy IP, userID, and password.
|
Modifier and Type | Method and Description |
---|---|
protected static StringBuilder |
getHelpMsg()
initializes and gets the helpMsg_
class var.
|
protected static String |
getHelpMsgStr()
gets the help as a String.
|
String |
getRestUrlPath()
Get Method for class field 'restUrlPath_'.
|
protected void |
listAreasCMD(String[] args)
commandLine command executor method for the listAreas Command.
|
static void |
main(String[] args)
Class main commandLine entry method that has a test command and some convienience commands, as well as a pure rest command.
|
StringBuilder |
queryAllAreas()
Sends a REST call to elk/areas/query to query all areas and changes to states are published through event infrastructure .
|
protected void |
sayWelcomeHomeCMD(String[] args)
commandLine command executor method for the listAreas Command.
|
void |
setRestUrlPath(String restUrlPath)
Set Method for class field 'restUrlPath_'.
|
protected void |
speakCurrentTime() |
StringBuilder |
speakPhrase(ELKRestRequester.words word)
Sends a REST call to elk to speak a phrase specified by the pre-defined wordID.
|
StringBuilder |
speakWord(ELKRestRequester.words word)
Sends a REST call to elk to speak a word specified by the pre-defined wordID.
|
protected void |
templateCMD(String[] args)
Template method for future commandLine command executor methods.
|
protected void |
testCMD(String[] args)
commandLine command executor method for the test Command.
|
canConnect, deviceAddressIntProperty, deviceAddressOff, deviceAddressOn, deviceAddressOn, deviceAddressProperty, deviceAddressPropertyUOM, deviceAddressPropertyXML, deviceAddressStatus, deviceAddressStatus, deviceAddressToggle, deviceOff, deviceOn, deviceProperty, devicePropertyFormattedValue, devicePropertyValue, devicePropertyXML, deviceStatus, deviceToggle, getConfig, getIsyIntVars, getIsyStateVars, getNextAvailableIntVarID, getNextAvailableIntVarID, getNextAvailableStateVarID, getNextAvailableStateVarID, getNodes, getPropertyCMD, getPropertyUOM, getPropertyValue, getQuery, getQueryNode, getQueryNodeFromAddress, getStatus, getTomsIsy, getVarCMD, getVarCMD, getVariable, getVariableIntValue, groupAddressStatus, listNodesCMD, listScenesCMD, listVarsCMD, parseAllNodes, parseAllNodes, queryAllIntegerVars, queryAllIntVarVals, queryAllNodes, queryAllNodesAndScenes, queryAllScenes, queryAllStateVars, queryAllVars, queryAllVarValues, restCMD, setTomsIsy_, setVariable, statusCMD, toggleCMD, toggleLight
callService, callService, getAcceptJSON, getBaseUrl, getPassword, getServiceUrl, getUsername, isInit, responseIndenter, serviceGet, servicePost, setAcceptJSON, setBaseUrl, setPassword, setUsername
protected static final String CLASSNAME
public static final String LOG_TAG
protected String restUrlPath_
protected static boolean debugOut_
public ELKRestRequester()
tomsIsy_
class var is false.public void setRestUrlPath(String restUrlPath)
setRestUrlPath
in class ISYRestRequester
restUrlPath_
- is the value to set this class field to.public String getRestUrlPath()
getRestUrlPath
in class ISYRestRequester
public StringBuilder queryAllAreas()
public StringBuilder speakPhrase(ELKRestRequester.words word)
public StringBuilder speakWord(ELKRestRequester.words word)
public static void main(String[] args)
protected void testCMD(String[] args)
testCMD
in class ISYRestRequester
args
- the array of commandLine args that got passed inprotected void listAreasCMD(String[] args)
args
- the array of commandLine args that got passed inprotected void speakCurrentTime()
protected void sayWelcomeHomeCMD(String[] args)
args
- the array of commandLine args that got passed inprotected void templateCMD(String[] args)
templateCMD
in class ISYRestRequester
args
- the array of commandLine args that got passed inprotected static String getHelpMsgStr()
protected static StringBuilder getHelpMsg()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses