I like the look of these websites:and a nice implementation of steelseries gaugesI'm more of a hardware person than a software one and would appreciate some help in getting from the 'vanilla' weewx web pages to something like the above sites.
[[Bootstrap]]skin = Bootstrap
HTML_ROOT = public_html
I guess you got the 'stock' layout as per the dajda site?
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Om7ruJwGhYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Only problem is I had to rename the gauge labels in the copy of bootstrap/skin.conf from the git site
eg. [[Temperature]] had to be changed to [[outTemp]]
[[Pressure]] had to be changed to [[barometer]]
and so forth.
windDir has a problem somewhere as the Web page lists it as WindDirgauge.png and the py file looks for a windDir, so not gauge for that one... late at night...so I will look later...
found the typo in the in the *.*tmpl files in the Bootstrap folder, eg index.html.tmpl I had to change WindDirGauge.png to windDirGauge.png
On Tuesday, 11 February 2014 07:03:58 UTC+10, gonk smith wrote:
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
This message has been scanned for viruses andThanks for posting your fixes, they all worked for me as well.
dangerous content by MailScanner, and is
believed to be clean.
-- Unencumbered by the thought process. -- Click and Clack the Tappet brothers
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Om7ruJwGhYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
<div id="content">
<div id="about">
<div class="header">
Current Weather:
</div>
<div id="plots">
<canvas id="CurrTemp"></canvas>
<canvas id="WindChill"></canvas>
<canvas id="Humidity"></canvas>
<canvas id="Barometer"></canvas>
<canvas id="WindGusts"></canvas>
</div> <!-- End id "plots" -->
<script type="text/javascript">
var CurrTemp = new Gauge
({
renderTo : 'CurrTemp',
width : 200,
height : 200,
minValue : -10,
maxValue : 40,
majorTicks : ['-10','0','10','20','30','40'],
glow : true,
units : '°C',
valueFormat : { int : 2, dec : 1 },
title : 'Current Temperature',
highlights :
[
{from : -10,
to : 10,
color : 'LightBlue'},
{from : 10,
to : 30,
color : 'PaleGreen'},
{from : 30,
to : 40,
color : 'LightSalmon'}
],
glow : true
});
CurrTemp.onready = function()
{
CurrTemp.setValue( $current.outTemp.formatted );
};
CurrTemp.draw();
</script>
</div> <!-- End id "about" -->
#plots { width: 90%; display: block; margin-left: auto; margin-right: auto; } #plots img { box-shadow: 0px 0px 15px 5px rgba(119, 119, 119, 0.8); border-style:ridge; margin: 3%; padding: 3px; }
#if $almanac.hasExtras
## Extended almanac information is available. Do the full set of tables.
<table>
<tr>
<th colspan="2">Sun</th>
<th colspan="2">Moon</th>
</tr>
<tr>
<th colspan="2"><img src="backgrounds/Sun.jpg" alt="Sun" width="112" height="110"></th>
<script>
document.write('<th colspan="2"><img src="backgrounds/' + '$almanac.moon_phase' + '.jpg" alt="Moon" width="110" height="110"></th>');
</script>
<tr>
Feb 22 22:45:01 raspberrypi weewx[7143]: genimages: Generated 6 images for SmallImages in 4.09 secondsFeb 22 22:45:07 raspberrypi weewx[7143]: genimages: Generated 6 images for BigImages in 6.36 secondsFeb 22 22:45:08 raspberrypi weewx[7143]: reportengine: Caught unrecoverable exception in generator user.gaugeengine.GaugeGeneratorFeb 22 22:45:08 raspberrypi weewx[7143]: **** float() argument must be a string or a numberFeb 22 22:45:08 raspberrypi weewx[7143]: **** Traceback (most recent call last):Feb 22 22:45:08 raspberrypi weewx[7143]: **** File "/home/weewx/bin/weewx/reportengine.py", line 133, in runFeb 22 22:45:08 raspberrypi weewx[7143]: **** obj.start()Feb 22 22:45:08 raspberrypi weewx[7143]: **** File "/home/weewx/bin/weewx/reportengine.py", line 298, in startFeb 22 22:45:08 raspberrypi weewx[7143]: **** self.run()Feb 22 22:45:08 raspberrypi weewx[7143]: **** File "/home/weewx/bin/user/gaugeengine.py", line 191, in runFeb 22 22:45:08 raspberrypi weewx[7143]: **** self.drawGauge(gauge, valueTuple, unitType)Feb 22 22:45:08 raspberrypi weewx[7143]: **** File "/home/weewx/bin/user/gaugeengine.py", line 493, in drawGaugeFeb 22 22:45:08 raspberrypi weewx[7143]: **** buckets = self.histogram(gaugeName, gaugeName, unitType, numBins)Feb 22 22:45:08 raspberrypi weewx[7143]: **** File "/home/weewx/bin/user/gaugeengine.py", line 424, in histogramFeb 22 22:45:08 raspberrypi weewx[7143]: **** histValue = float(valueTuple[0])Feb 22 22:45:08 raspberrypi weewx[7143]: **** TypeError: float() argument must be a string or a numberFeb 22 22:45:08 raspberrypi weewx[7143]: **** Generator terminated...Feb 22 22:45:09 raspberrypi weewx[7143]: cheetahgenerator: generated 1 'SummaryByMonth' files for HTMLPages in 0.78 secondsFeb 22 22:45:15 raspberrypi weewx[7143]: cheetahgenerator: generated 2 'SummaryByYear' files for HTMLPages in 6.34 secondsFeb 22 22:45:16 raspberrypi weewx[7143]: cheetahgenerator: generated 8 'ToDate' files for HTMLPages in 0.99 seconds
If you specify a history period for a gauge you also need to give a number of buckets to collect the history data into for the shading.
[GaugeGenerator] image_width = 180 image_height = 180 GAUGE_ROOT = public_html/
# Colors... # # Format is 0xBBGGRR, so a pinky-purple color (r=FF, g=00, B=99) which would have # an HTML tag of #FF0099 is expressed as 0x9900FF fill_color = 0x4242b4 background_color = 0xffffff label_color = 0x000000 dial_color = 0x707070 needle_color = 0xb48242 text_color = 0xb48242
[[outTemp]] minvalue = -20 maxvalue = 40 majorstep = 10 minorstep = 1 labelfontsize = 15 history = 24 bins = 120
[[barometer]] minvalue = 970 maxvalue = 1050 majorstep = 20 minorstep = 10 labelfontsize = 12
[[outHumidity]] minvalue = 0 maxvalue = 100 majorstep = 20 minorstep = 10 labelfontsize = 13
[[windSpeed]] minvalue = 0 maxvalue = 40 majorstep = 10 minorstep = 2 labelfontsize = 15 [[windGust]] minvalue = 0 maxvalue = 40 majorstep = 10 minorstep = 2 labelfontsize = 15
[[windDir]] labelfontsize = 12
# By default, needle points towards direction of wind source. Use invert to # point towards wind destination. Can be True or False. invert = False
# Number of groups that wind direction history is split into. bins = 32
# hours of data to use for windgauge background shading. history = 12
@ Erwin,
I’m not convinced its related to the scaling problem but there are some errors in the html code if you turn on the console.
It’s complaining about the lines
<input id="rad_temp1" type="radio" name="rad_temp" value="out" checked onclick="gauges.doTemp(this);">Outside</label>
Not having a valid end tag. The </label> should be </input>
Generally getting rid of any warnings in the javascript console seems to help things but I cant see any there that would stop the autoscaling.
So I suspect that this is some sort of problem with the events into the steelseries javascript since it isn’t doing its initialization properly.
I wonder if this is some interaction with bootstrap since IE also complains
HTML1514: Extra "<body>" tag found. Only one "<body>" tag should exist per document.
File: gauges.html, Line: 74, Column: 1
So I wonder if an ondraw event or something similar isn’t happening.
It’s a while since I went through that sort of grief with my webpages and the gauges but if you need it I am now reasonably familiar with the steelseries code so could probably look into where to add some debugging.
One day when I finish my site I should write up what I did as well.
The latest versions I have are
http://jpharvey1.no-ip.biz/tsctest/
which is intended for use in our sailing clubhouse so the wind information updates every 2 seconds (designed to fit on a wide screen so the pages just fit with no scrolling)
and
http://jpharvey1.no-ip.biz/tscweb/index.html
which is designed to fit on the club website so updates slower (and is running off a different weather station which has a broken wind sensor at the moment).
I’ve also tried to reduce the size of the uploaded data for this system so lots of the pages are fixed and the graphs & data are pulled into a template to keep the bandwidth down since we will be using a 3g dongle for internet connection.
John
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
Mar 1 08:00:28 raspberrypi weewx[9955]: **** Traceback (most recent call last):
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/weewx/reportengine.py", line 133, in run
Mar 1 08:00:28 raspberrypi weewx[9955]: **** obj.start()
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/weewx/reportengine.py", line 298, in start
Mar 1 08:00:28 raspberrypi weewx[9955]: **** self.run()
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 129, in run
Mar 1 08:00:28 raspberrypi weewx[9955]: **** self.generate(time_period, self.gen_ts)
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 266, in generate
Mar 1 08:00:28 raspberrypi weewx[9955]: **** archivedb, statsdb)
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 303, in _getSearchList
Mar 1 08:00:28 raspberrypi weewx[9955]: **** + self.getToDateSearchList(archivedb, statsdb, timespan)
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/user/historygenerator.py", line 117, in get_extension
Mar 1 08:00:28 raspberrypi weewx[9955]: **** search_list_extension[table + '_table'] = self.statsHTMLTable(table, self.table_dict[table]['sqlquery'], self.table_dict[table]['units'], statsdb)
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/user/historygenerator.py", line 151, in statsHTMLTable
Mar 1 08:00:28 raspberrypi weewx[9955]: **** for row in cursor.execute(sqlQuery):
Mar 1 08:00:28 raspberrypi weewx[9955]: **** File "/home/weewx/bin/weedb/mysql.py", line 181, in execute
Mar 1 08:00:28 raspberrypi weewx[9955]: **** mysql_string = sql_string.replace('?','%s')
Mar 1 08:00:28 raspberrypi weewx[9955]: **** AttributeError: 'list' object has no attribute 'replace'
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Om7ruJwGhYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
--
--
Mar 3 20:54:16 raspberrypi weewx[17815]: wxengine: Using stats database: stats_mysql
Mar 3 20:54:16 raspberrypi weewx[17815]: wxengine: Starting up weewx version 2.6.1
Mar 3 20:54:16 raspberrypi weewx[17815]: wxengine: Starting main packet loop.
Mar 3 20:55:30 raspberrypi weewx[17815]: archive: added record 2014-03-03 20:55:00 UTC (1393880100) to database 'weewx'; table 'archive'
Mar 3 20:55:31 raspberrypi weewx[17815]: restx: Wunderground-PWS: Published record 2014-03-03 20:55:00 UTC (1393880100)
Mar 3 20:55:49 raspberrypi weewx[17815]: genimages: Generated 9 images for SmallImages in 18.29 seconds
Mar 3 20:58:34 raspberrypi weewx[17815]: genimages: Generated 24 images for BigImages in 165.20 seconds
Mar 3 20:58:36 raspberrypi weewx[17815]: **** Traceback (most recent call last):
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/weewx/reportengine.py", line 133, in run
Mar 3 20:58:36 raspberrypi weewx[17815]: **** obj.start()
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/weewx/reportengine.py", line 298, in start
Mar 3 20:58:36 raspberrypi weewx[17815]: **** self.run()
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 129, in run
Mar 3 20:58:36 raspberrypi weewx[17815]: **** self.generate(time_period, self.gen_ts)
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 266, in generate
Mar 3 20:58:36 raspberrypi weewx[17815]: **** archivedb, statsdb)
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 303, in _getSearchList
Mar 3 20:58:36 raspberrypi weewx[17815]: **** + self.getToDateSearchList(archivedb, statsdb, timespan)
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/user/historygenerator.py", line 117, in get_extension
Mar 3 20:58:36 raspberrypi weewx[17815]: **** search_list_extension[table + '_table'] = self.statsHTMLTable(table, self.table_dict[table]['sqlquery'], self.table_dict[table]['units'], statsdb)
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/user/historygenerator.py", line 151, in statsHTMLTable
Mar 3 20:58:36 raspberrypi weewx[17815]: **** for row in cursor.execute(sqlQuery):
Mar 3 20:58:36 raspberrypi weewx[17815]: **** File "/home/weewx/bin/weedb/mysql.py", line 181, in execute
Mar 3 20:58:36 raspberrypi weewx[17815]: **** mysql_string = sql_string.replace('?','%s')
Mar 3 20:58:36 raspberrypi weewx[17815]: **** AttributeError: 'list' object has no attribute 'replace'
Mar 3 20:58:54 raspberrypi weewx[17815]: reportengine: ftp'd 33 files in 18.50 seconds
If I need to add credentials to the select statements for the MySql database, what would the syntax be, and where would I need to add it? I've confirmed that everything seems to be running OK with the Standard skin, it only occurs when I use the Bootstrap skin.
Try and add the missing trailing quote on the fifth colour in the three temperature history tables section. See if this makes any difference. Also try and remove the. Search extension and/or remove the history part of the gauge definitions to try and help isolate the problem if needed. I assume weewx.conf provides the MySQL database credentials. The issue from the log is something to do with history though.
--