Code by Scott שאול בן ישוע
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sha'ul ben Yeshua
raspberrypi.monitor
Commits
8d21423e
Verified
Commit
8d21423e
authored
Oct 16, 2019
by
Sha'ul ben Yeshua
🎗
Browse files
proper import url's now
parent
5f4b6387
Pipeline
#66
passed with stage
in 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Driver/Raspberry-Pi-DHT-Sensor.groovy
View file @
8d21423e
/**
/**
* Raspberry Pi DHT11/22 Sensor
*
* Copyright Scott Grayban
*
* Monitor your Raspberry Pi using SmartThings and Raspberry Pi Monitor <https://git
hub.com
/sgrayban/raspberrypi.monitor>
* Monitor your Raspberry Pi using SmartThings and Raspberry Pi Monitor <https://git
lab.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: http
s
://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"
,
importU
RL
:
"http://sgrayban.borgnet.online:8081/raspberrypi.monitor/Raspberry-Pi-DHT-Sensor.groovy"
importU
rl
:
"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:
"http
s
://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
...
...
Driver/Raspberry-Pi-Stats.groovy
View file @
8d21423e
...
...
@@ -71,7 +71,7 @@ metadata {
name:
"Raspberry Pi Stats"
,
namespace:
"sgrayban"
,
author:
"Scott Grayban"
,
importU
RL
:
"http://sgrayban.borgnet.online:8081/raspberrypi.monitor/Raspberry-Pi-Stats.groovy"
importU
rl
:
"http://sgrayban.borgnet.online:8081/raspberrypi.monitor/Raspberry-Pi-Stats.groovy"
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment