Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
bmon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
energy
bmon
Commits
76e60449
Commit
76e60449
authored
Mar 01, 2020
by
Alan Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added NWS Dewpoint temperature as a calculated function.
parent
09e2efd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
bmsapp/calcs/calcfuncs01.py
bmsapp/calcs/calcfuncs01.py
+12
-0
No files found.
bmsapp/calcs/calcfuncs01.py
View file @
76e60449
...
...
@@ -98,6 +98,18 @@ class CalcReadingFuncs_01(calcreadings.CalcReadingFuncs_base):
# not info info available for calculation.
return
[],
[]
def
getInternetDewpoint
(
self
,
stnCode
):
"""** No parameters are sensor reading arrays **
Returns an outdoor Dewpoint temperature from an NWS weather station in degrees F.
Returns just one record of information, timestamped with the current time.
"""
obs
=
internetwx
.
getWeatherObservation
(
stnCode
)
if
obs
.
dewpt
is
not
None
:
return
[
int
(
time
.
time
())],
[
obs
.
dewpt
.
value
()
*
1.8
+
32.0
]
else
:
return
[],
[]
def
getWUtemperature
(
self
,
stn
,
stn2
=
None
):
"""** No parameters are sensor reading arrays **
...
...
Write
Preview
Markdown
is supported
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