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

proper import url's now

parent 5f4b6387
Pipeline #66 passed with stage
in 1 second
/**
/**
* Raspberry Pi DHT11/22 Sensor
*
* Copyright Scott Grayban
*
* Monitor your Raspberry Pi using SmartThings and Raspberry Pi Monitor <https://github.com/sgrayban/raspberrypi.monitor>
* Monitor your Raspberry Pi using SmartThings and Raspberry Pi Monitor <https://gitlab.borgnet.us:8443/sgrayban/raspberrypi.monitor>
*
* Copyright 2019 Scott Grayban
*
......@@ -22,7 +22,7 @@
*
* By downloading, installing, and/or executing this software you hereby agree to the terms and conditions set forth
* in the Software license agreement.
* This agreement can be found on-line at: https://sgrayban.github.io/Hubitat-Public/software_License_Agreement.txt
* This agreement can be found on-line at: http://sgrayban.borgnet.online:8081/scotts-projects/software_License_Agreement.txt
*
* Hubitat is the Trademark and intellectual Property of Hubitat Inc.
* Shelly is the Trademark and Intellectual Property of Allterco Robotics Ltd
......@@ -49,21 +49,8 @@ metadata {
name: "Raspberry Pi DHT11/22 Sensor",
namespace: "sgrayban",
author: "Scott Grayban",
importURL: "http://sgrayban.borgnet.online:8081/raspberrypi.monitor/Raspberry-Pi-DHT-Sensor.groovy"
importUrl: "http://sgrayban.borgnet.online:8081/raspberrypi.monitor/Raspberry-Pi-DHT-Sensor.groovy"
)
preferences {
input("ip", "string", title:"IP Address", description: "Rpi IP", defaultValue: "" ,required: true, displayDuringSetup: true)
input("port", "string", title:"Port", description: "8080", defaultValue: "8080" , required: true, displayDuringSetup: true)
input "refreshEvery", "enum", title: "Enable auto refresh every XX Minutes", required: false, defaultValue: false, //RK
options: [5:"5 minutes",10:"10 minutes",15:"15 minutes",30:"30 minutes"] //RK
input "locale", "enum", title: "Choose refresh date format", required: true, defaultValue: true, //RK
options: [US:"US MM/DD/YYYY",UK:"UK DD/MM/YYYY"] //RK
input name: "debugOutput", type: "bool", title: "Enable debug logging?", defaultValue: true
input name: "txtEnable", type: "bool", title: "Enable descriptionText logging", defaultValue: true //RK
}
{
capability "Temperature Measurement"
capability "Polling"
......@@ -82,6 +69,17 @@ preferences {
details(["temperature", "humidity", "refresh"])
}
preferences {
input("ip", "string", title:"IP Address", description: "Rpi IP", defaultValue: "" ,required: true, displayDuringSetup: true)
input("port", "string", title:"Port", description: "8080", defaultValue: "8080" , required: true, displayDuringSetup: true)
input "refreshEvery", "enum", title: "Enable auto refresh every XX Minutes", required: false, defaultValue: false, //RK
options: [5:"5 minutes",10:"10 minutes",15:"15 minutes",30:"30 minutes"] //RK
input "locale", "enum", title: "Choose refresh date format", required: true, defaultValue: true, //RK
options: [US:"US MM/DD/YYYY",UK:"UK DD/MM/YYYY"] //RK
input name: "debugOutput", type: "bool", title: "Enable debug logging?", defaultValue: true
input name: "txtEnable", type: "bool", title: "Enable descriptionText logging", defaultValue: true //RK
}
def installed() {
log.debug "Device installed"
initialize();
......@@ -284,7 +282,7 @@ def version(){
def updatecheck(){
setVersion()
def paramsUD = [uri: "https://sgrayban.github.io/Hubitat-Public/version.json"]
def paramsUD = [uri: "http://sgrayban.borgnet.online:8081/scotts-projects/version.json"]
try {
httpGet(paramsUD) { respUD ->
if (txtEnable) log.warn " Version Checking - Response Data: ${respUD.data}" // Troubleshooting Debug Code - Uncommenting this line should show the JSON response from your webserver
......
......@@ -71,7 +71,7 @@ metadata {
name: "Raspberry Pi Stats",
namespace: "sgrayban",
author: "Scott Grayban",
importURL: "http://sgrayban.borgnet.online:8081/raspberrypi.monitor/Raspberry-Pi-Stats.groovy"
importUrl: "http://sgrayban.borgnet.online:8081/raspberrypi.monitor/Raspberry-Pi-Stats.groovy"
)
{
......
Markdown is supported
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