V2.0.0b14

This commit is contained in:
Tom Keffer
2012-10-31 03:56:28 +00:00
parent e8fb490f80
commit b3c67be6c3
8 changed files with 28 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
TODO before the next release:
Improve the documentation on writing a custom search list.
Offer a way to change the horizon for the almanac.
Calculate altimeter pressure to send off to CWOP.
See http://davisnet.com/product_documents/weather/app_notes/AN_28-derived-weather-variables.pdf

View File

@@ -578,12 +578,28 @@ def timestamp_to_string(ts):
>>> print timestamp_to_string(1196705700)
2007-12-03 10:15:00 PST (1196705700)
>>> print timestamp_to_string(None)
******* N/A ******* ( N/A )
"""
if ts:
return "%s (%d)" % (time.strftime("%Y-%m-%d %H:%M:%S %Z", time.localtime(ts)), ts)
else:
return "****** N/A ******** ( N/A )"
return "******* N/A ******* ( N/A )"
def timestamp_to_gmtime(ts):
"""Return a string formatted for GMT
>>> print timestamp_to_gmtime(1196705700)
2007-12-03 18:15:00 UTC (1196705700)
>>> print timestamp_to_gmtime(None)
******* N/A ******* ( N/A )
"""
if ts:
return "%s (%d)" % (time.strftime("%Y-%m-%d %H:%M:%S UTC", time.gmtime(ts)), ts)
else:
return "******* N/A ******* ( N/A )"
def utcdatetime_to_timestamp(dt):
"""Convert from a datetime object holding a UTC time, to a unix timestamp.

View File

@@ -12,7 +12,7 @@
"""
import time
__version__="2.0.0b13"
__version__="2.0.0b14"
# Holds the program launch time in unix epoch seconds:
# Useful for calculating 'uptime.'

View File

@@ -37,6 +37,8 @@ along the way. See the Customizing Guide.
You can now use "mmHg" as a unit of pressure.
Added new almanac information such as first and last quarter moons.
Changed the engine architecture so it is more event driven. It now uses
callbacks, making it easier to add new event types.

View File

@@ -16,10 +16,6 @@
<!-- JavaScript -->
<script src="samaxesjs.toc-1.5.min.js" type="text/javascript"></script>
<style type="text/css">
.auto-style1 {
font-family: "Courier New", Courier, monospace;
margin-left: 40px;
}
</style>
</head>
@@ -856,7 +852,7 @@ Next summer, winter solstice: 21-Jun-2011 10:16 21-Dec-2011 21:29</pre>
Sunrise, sunset: 06:51 19:30
</pre>
<p>Here's a table of available extended almanac information:</p>
<table class="auto-style1" style="width: 60%">
<table class="code" style="width: 60%">
<tr>
<td>previous_equinox</td>
<td>next_equinox</td>
@@ -1931,7 +1927,7 @@ class MyAlarm(StdService):
...
<span class="highlight"> ('electricity', 'REAL'),</span>
('inTempBatteryStatus', 'REAL')]</pre>
<p>The new line has been highlighted in <span class="highlight">yellow</span>.</p>
<p>The new line has been <span class="highlight">highlighted</span>.</p>
<p>2. <strong>Check permissions.</strong> The reconfiguration utility will create
a new database with the same name as the old, except with the suffix '<span class="code">_new</span>'
attached to the end. Make sure you have the necessary permissions to do this.

View File

@@ -631,7 +631,7 @@ Mutating actions will request confirmation before proceeding.</pre>
Gain: -1.000
Offset: -1.000</pre>
<p>
Values in <span class="highlight">yellow</span> can be
<span class="highlight">Highlighted</span> values can be
changed.</p>
<p>
For example, to change the archive interval to 10 minutes (600

View File

@@ -120,9 +120,9 @@ td {
.xxsmall {
font-size: xx-small;
}
.highlight {
background-color: #FFFF66;
}
.highlight {
background-color: #FFCC99;
}
.center {
text-align: center;
}

View File

@@ -32,7 +32,7 @@ WEEWX_ROOT = /home/weewx
socket_timeout = 20
# Current version
version = 2.0.0b13
version = 2.0.0b14
############################################################################################