Code by Scott שאול בן ישוע
Verified Commit b2f700eb authored by Sha'ul ben Yeshua's avatar Sha'ul ben Yeshua 🎗
Browse files

code changes

parent 05d32e68
......@@ -344,7 +344,7 @@ def getPrefDetails(){
}
def checkForUpdate(){
def params = [uri: "https://raw.githubusercontent.com/stephack/Hubitat/master/apps/Advanced%20Button%20Controller%20(ABC)/child.json",
def params = [uri: "https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/child.json",
contentType: "application/json"]
try {
httpGet(params) { response ->
......@@ -355,7 +355,7 @@ def checkForUpdate(){
}
else {
appStatus = "<small>Child ${version()}</small><br>${results.updateImg}${results.changeLog}"
log.warn "ABC Child App does not appear to be the latest version: Please update."
log.warn "Inovelli Scene Creator Child App does not appear to be the latest version: Please update."
}
return appStatus
}
......
......@@ -40,11 +40,11 @@ def mainPage() {
childVer = childApps.first().version()
}
section(){
def appHead = "<img src=https://raw.githubusercontent.com/stephack/Hubitat/master/resources/images/abc2.png height=80 width=80> \n${checkForUpdate()}"
def appHead = "<img src=https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/resources/abc2.png height=80 width=80> \n${checkForUpdate()}"
paragraph "<div style='text-align:center'>${appHead}</div>"
}
section("Create a new button device mapping.") {
app(name: "childApps", appName: "ABC Button Mapping", namespace: "stephack", title: "<img src=https://raw.githubusercontent.com/stephack/Hubitat/master/resources/images/New.png height=50 width=50> New Button Device Mapping", multiple: true)
app(name: "childApps", appName: "Inovelli Scene Creator Child", namespace: "Inovelli", title: "<img src=https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/resources/New.png height=50 width=50> New Button Device Mapping", multiple: true)
}
section("") {
href (name: "aboutPage", title: "User's Guide",
......@@ -70,7 +70,7 @@ def initialize() {
}
def checkForUpdate(){
def params = [uri: "https://raw.githubusercontent.com/stephack/Hubitat/master/apps/Advanced%20Button%20Controller%20(ABC)/parent.json",
def params = [uri: "https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/parent.json",
contentType: "application/json"]
try {
httpGet(params) { response ->
......@@ -81,7 +81,7 @@ def checkForUpdate(){
}
else {
appStatus = "<small>Parent ${version()}</small><br>${results.updateImg}${results.changeLog}"
log.warn "ABC Parent App does not appear to be the latest version: Please update."
log.warn "Inovelli Scene Creator App does not appear to be the latest version: Please update."
}
return appStatus
}
......
......@@ -5,10 +5,10 @@
"<small><a href='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/Inovelli-Scene-Creator.groovy' target='_blank'> [Raw Code]</a></small>",
"noUpdateImg":
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/noUpdate.png' title='No Update Needed.'><small><span style='color:green'> Up To Date</span></small>",
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/resources/noUpdate.png' title='No Update Needed.'><small><span style='color:green'> Up To Date</span></small>",
"updateImg":
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/update.png' title='Please Update Driver.'></a><small><span style='color:red'> Update Available: ",
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/resources/update.png' title='Please Update Driver.'></a><small><span style='color:red'> Update Available: ",
"changeLog":
"<a href='https://community.inovelli.com/advanced-button-controller-abc/' target='_blank'>[Update Notes]</a></span></small>"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment