mirror of
https://github.com/weewx/weewx.git
synced 2026-05-24 17:55:15 -04:00
Fixed bug in link on smartphone formatted webpage.
Retained old "mobile formatted" page.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"""
|
||||
import time
|
||||
|
||||
__version__="1.14.0b1"
|
||||
__version__="1.14.0b2"
|
||||
|
||||
# Holds the program launch time in unix epoch seconds:
|
||||
# Useful for calculating 'uptime.'
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
<p>What follows are directions for upgrading from specific versions.</p>
|
||||
<h2>V1.13 or earlier</h2>
|
||||
<p>Version 1.14 introduces some new webpages that have been expressly formatted for
|
||||
the smartphone, using <a href="http://jquery.com/">jQuery</a>.</p>
|
||||
the smartphone by using <a href="http://jquery.com/">jQuery</a>.</p>
|
||||
<p>The skins shipped with the distribution take advantage of these features. If
|
||||
you do nothing, your old skins will continue to work, but you will not take
|
||||
you do nothing, your old skins will continue to work, but you will not be taking
|
||||
advantage of these new webpages.</p>
|
||||
<p>If you want these new webpages, then you have two choices:</p>
|
||||
<p>If you want them, then you have two choices:</p>
|
||||
<ol>
|
||||
<li>Rename your old skin directory (call it "<span class="code">skins.old</span>")
|
||||
then do the install. This will install the new skin distribution. You can
|
||||
@@ -40,11 +40,11 @@ advantage of these new webpages.</p>
|
||||
skins/Standard/mobile</span> from the distribution into your <span class="code">skins/Standard</span>
|
||||
directory. You will then need to modify your <span class="code">skin.conf</span>.
|
||||
</ol>
|
||||
<p class="indent">Replace the section that looks like</p>
|
||||
<p class="indent">After the section that looks like</p>
|
||||
<pre class="style1"> [[[Mobile]]]
|
||||
template = mobile.html.tmpl</pre>
|
||||
<p class="indent">with a section that looks like</p>
|
||||
<pre class="style1"> [[[Mobile]]]
|
||||
<p class="indent">add the following directives:</p>
|
||||
<pre class="style1"> [[[MobileSmartphone]]]
|
||||
template = mobile/index.html.tmpl
|
||||
|
||||
[[[MobileTempOutside]]]
|
||||
@@ -73,7 +73,9 @@ to add the <span class="highlight">highlighted</span> files:</p>
|
||||
copy_once = backgrounds/*, weewx.css, mobile.css, favicon.ico, <span class="highlight">mobile/icons/*, mobile/custom.js</span></pre>
|
||||
<p>Whichever approach you chose, the generated files will appear in
|
||||
<span class="code">public_html/mobile</span>. The start of the document root
|
||||
will be at <span class="code">public_html/mobile/index.html</span>.</p>
|
||||
will be at <span class="code">public_html/mobile/index.html</span>. You may want
|
||||
to add a link to this in the template for your main index page
|
||||
<span class="code">skins/Standard/index.html.tmpl</span>.</p>
|
||||
<h2>V1.12 or earlier</h2>
|
||||
<p>Version 1.13 changed the way binding happens to the databases used in reports
|
||||
so that it happens much later. The upshot is that the signature of a few
|
||||
|
||||
@@ -309,7 +309,8 @@
|
||||
fast, and easy to understand by leveraging modern software concepts.
|
||||
</p>
|
||||
<p><a href="RSS/weewx_rss.xml">RSS feed</a></p>
|
||||
<p><a href="mobile/index.html">Mobile formatted</a></p>
|
||||
<p><a href="mobile.html">Mobile formatted</a></p>
|
||||
<p><a href="mobile/index.html">Smartphone formatted</a></p>
|
||||
<p>Weewx uptime: $station.uptime<br/>
|
||||
Server uptime: $station.os_uptime<br/>
|
||||
weewx v$station.version</p>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<ul data-role="listview" data-inset="true" data-divider-theme="b">
|
||||
<li><a href="radar.html">Radar</a></li>
|
||||
<li><a href="../index.html" data-rel="external">Big page</a></li>
|
||||
<li><a href="../index.html" rel="external">Big page</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -244,6 +244,9 @@
|
||||
template = RSS/weewx_rss.xml.tmpl
|
||||
|
||||
[[[Mobile]]]
|
||||
template = mobile.html.tmpl
|
||||
|
||||
[[[MobileSmartphone]]]
|
||||
template = mobile/index.html.tmpl
|
||||
|
||||
[[[MobileTempOutside]]]
|
||||
|
||||
@@ -29,7 +29,7 @@ debug = 0
|
||||
socket_timeout = 20
|
||||
|
||||
# Current version
|
||||
version = 1.14.0b1
|
||||
version = 1.14.0b2
|
||||
|
||||
############################################################################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user