Giter Site home page Giter Site logo

fuzzy-archer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fuzzy-archer's Issues

Summary column colours

Thanks very much for your work.
Is it possible to specify a different colour scheme for the summary column colours?
Reason is that the totals sometimes can run into the individual months and give the wrong impression. See attached file for what I mean. Either a default colour for the summary column or a colour grade (separate scale) as in the rest of the table would be great.
Cold
rain
warm

Image rendering

I get the following error:


Mar 4 08:51:11 server weewx[21077]: **** Traceback (most recent call last):
Mar 4 08:51:11 server weewx[21077]: **** File "/usr/share/weewx/weewx/reportengine.py", line 140, in run
Mar 4 08:51:11 server weewx[21077]: **** obj.start()
Mar 4 08:51:11 server weewx[21077]: **** File "/usr/share/weewx/weewx/reportengine.py", line 170, in start
Mar 4 08:51:11 server weewx[21077]: **** self.run()
Mar 4 08:51:11 server weewx[21077]: **** File "/usr/share/weewx/weewx/imagegenerator.py", line 31, in run
Mar 4 08:51:11 server weewx[21077]: **** self.genImages(self.gen_ts)
Mar 4 08:51:11 server weewx[21077]: **** File "/usr/share/weewx/weewx/imagegenerator.py", line 213, in genImages
Mar 4 08:51:11 server weewx[21077]: **** image = plot.render()
Mar 4 08:51:11 server weewx[21077]: **** File "/usr/share/weewx/weeplot/genplot.py", line 174, in render
Mar 4 08:51:11 server weewx[21077]: **** self._renderTopBand(draw)
Mar 4 08:51:11 server weewx[21077]: **** File "/usr/share/weewx/weeplot/genplot.py", line 380, in _renderTopBand
Mar 4 08:51:11 server weewx[21077]: **** font=unit_label_font)
Mar 4 08:51:11 server weewx[21077]: **** File "/usr/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 273, in text
Mar 4 08:51:11 server weewx[21077]: **** self.draw.draw_bitmap(xy, mask, ink)
Mar 4 08:51:11 server weewx[21077]: **** TypeError: coordinate list must contain exactly 1 coordinate
Mar 4 08:51:11 server weewx[21077]: **** Generator terminated...


After installation and correcting the .conf-file (as per ticket #27) I got som errors due to that I hade no fonts installed on system. After installing "fonts-freefont-ttf" gauges are now being rendered. But not the graphs. And the error above is showen in the log.
I have been debugging for almost 3 hours now, and can not find what is wrong.

Cannot decode reading of 'None' for gauge 'windRose'

Hi,

I have installed bootstrap and got it running on weewx 3.6.2 (.deb install) with a few woes, since the wee_extension would not properly install everything.

However the question is why do I get loads of :
Cannot decode reading of 'None' for gauge 'windRose'
in my syslog?

Should I change something to avoid filling the disk with these messages?

Gauges with a major step less than 1 don't render very well

Here are my settings for barometer in the gauge:
[[barometer]]
minvalue = 28.5
maxvalue = 31
majorstep = .2
minorstep = .05
digitformat = %d
history = 24
bins = 80

This leads to the problem that my gauge shows the number "28" and the number "30" over and over again. For this gauge, it'd be nice if I could drop the two most significant digits after it's shown the first time and focus on the minor ones.

bin/wee_extension --list

(btw - the new wee_extension tool and v2.22 interact a little oddly -
reporting in case you hadn't seen it already:

bin/wee_extension --list

Extension Name Version Description

The following alternative languages are available:
espanol
francais
italian
german

Language changes can be made in skins/Bootstrap/skin.conf

Default location for HTML and image files is public_html/Bootstrap
*** POINT YOUR BROWSER TO: public_html/Bootstrap/index.html ***

bootstrap 2.22 A skin based around the bootstrap 3.2.0
framework

Max Temperatur over 35° in history.html

Hi brewster76

I have install weewx with our skin. At the moment we have high temperatures with max over 35°.
In the history.html my max temp have no backgroundcolor. It is white. Can we fix this "small error"?
thanks for the great skin and

greetings
sinabuddy
history

Wind plot uses wrong unit

Hi!

I've installed the latest version of the bootstrap skin on my weewx 3.0.1. system and everything works flawless except from one thing. Since I live in Sweden i have changed the unit for wind speed from mph to m/s and the setting have applied to all elements in the interface except from the plot which is strange. What can be the reason for this behaviour?

Best regards
Rasmus
skarmavbild 2015-04-14 kl 22 49 44

Unable to install this bootstrap extension

All documentation refers to a tar.gz but this extension is supplied as a zip.
I tried installing the zip file using the wee_extension installer but it didn't like that at all:-

sudo wee_extension --install bootstrap-2.2-beta.zip
Request to install 'bootstrap-2.2-beta.zip'
Extracting from tarball bootstrap-2.2-beta.zip
Traceback (most recent call last):
  File "/usr/bin/wee_extension", line 83, in <module>
    main()
  File "/usr/bin/wee_extension", line 75, in main
    ext.install_extension(options.install)
  File "/usr/share/weewx/weecfg/extension.py", line 110, in install_extension
    shutil.rmtree(extension_dir, ignore_errors=True)
UnboundLocalError: local variable 'extension_dir' referenced before assignment

So... Then I decompressed the zip and then re-compressed it back into a tar.gz and tried again and got something different. I even tried to rename it to something more descriptive but got the same error:-

sudo wee_extension --install bootstrap.tar.gz
Request to install 'bootstrap.tar.gz'
Extracting from tarball bootstrap.tar.gz
Traceback (most recent call last):
  File "/usr/bin/wee_extension", line 83, in <module>
    main()
  File "/usr/bin/wee_extension", line 75, in main
    ext.install_extension(options.install)
  File "/usr/share/weewx/weecfg/extension.py", line 108, in install_extension
    self.install_from_dir(extension_dir)
  File "/usr/share/weewx/weecfg/extension.py", line 169, in install_from_dir
    sys.exit("Unknown destination for file %s" % source_tuple)
TypeError: not all arguments converted during string formatting
david@ubuntu:~/downloads/weewx/bootstrap$ ls

Could you please have a look at this and advise. I am running this on Ubuntu Server 14.04 with weewx 3.2.1.
Thanks.

Wind gauges in mph

The wind gauges and graphs are in mph, altough configured as km_per_hour. With the standard theme the graphs and values are in km/h

auto install on debian

hello nick, i don't seen how i can install it on debian. can you help me ?

thx romain.

Rain gauge

Hi, I have tried to put a clock that measures the rainfall in the day, without success, I have not gotten any way that works.
You have an example of how to get it?
Cheers

Wind speed not metric

Hi,
I have been trying to find out why Bootstrap wind speed is in mph and not m/s although the rest is in metric units and skin.conf clearly states m/s for any speed unit.
Any idea where I can start look for a solution?
Rune.

How to change temperature units

Hello, nice skin! I wanted to change the temperature shown in the report from degree Fahrenheit to degree Celsius. But i can't find any option to do this.

Can you help me? Thanks a lot in advance.

Colors don't render in history.html when min/max values are equal

When setting up colors for history.html in skin.conf, if the min and max values are the same, colors to not render. If you offset the values, colors work.

works

minvalues = -10, 0, 10, 20, 30, 40, 50, 60, 70, 80, 90
maxvalues = 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100

colours =  "#0000ff", "#1933E1", "#3266C8", "#4B99AF", "#64CC96", "#7Dff7D", "#96CC64", "#AF9948", "#C86632", "#E13319", "#FF0000"

does not work

minvalues = 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
maxvalues = 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100

colours =  "#0000ff", "#1933E1", "#3266C8", "#4B99AF", "#64CC96", "#7Dff7D", "#96CC64", "#AF9948", "#C86632", "#E13319", "#FF0000"

cannot find 'BootstrapLabels'

I got this error in LOG, but the file & image generation seems to be working perfectly.
Please check here http://chennai.indianweatherman.com/
Below i've attached the LOG, which shows the error..

Jan  1 20:21:25 raspberrypi weewx[7150]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Jan  1 20:21:25 raspberrypi weewx[7150]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Bootstrap/history.html.tmpl
Jan  1 20:21:25 raspberrypi weewx[7150]: cheetahgenerator: **** Reason: cannot find 'BootstrapLabels'
Jan  1 20:21:25 raspberrypi weewx[7150]: ****  Traceback (most recent call last):
Jan  1 20:21:25 raspberrypi weewx[7150]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 295, in generate
Jan  1 20:21:25 raspberrypi weewx[7150]: ****      print >> _file, text
Jan  1 20:21:25 raspberrypi weewx[7150]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jan  1 20:21:25 raspberrypi weewx[7150]: ****      rc = getattr(self, mainMethName)()
Jan  1 20:21:25 raspberrypi weewx[7150]: ****    File "_etc_weewx_skins_Bootstrap_history_html_tmpl.py", line 92, in respond
Jan  1 20:21:25 raspberrypi weewx[7150]: ****  NotFound: cannot find 'BootstrapLabels'

Thanks
Rakesh

Add jauge of inside temperature

Hello,

With standard skin of weewx, there are data and graph of inside temperature.
How can I add this graph and data with Bootstrap skin?

Thank you

Raindays

Add an option to history generator for days of rain/sunshine.

LiveCharts - Days of Rain errors

I've found three possibly related errors in this table only - all the others :

  1. There were double quotes in some rows - see #000000"" style:
<div class="border-top media-body border-right" style="background-color:#E0F8E0; co
lor:#000000"" style="background-color:#A9F5A9; color:#000000"> 6 </div>
  1. The closing quote was missing in several places for the last cell in the table, it should be border-left">

<div class="border-top media-body ml-1 border-left> 91 </div>

  1. Once I had fixed these issues by editing the generated HTML,, colour coding was missing from the total rainfall column

Pre-fix

Post-fix

LiveCharts - problem when not displaying all charts in Live!

As my weather station is useless at wind direction & humidity I commented out the lines for Wind Direction and Humidity from the Index template:

            <div class="row">
                <div id="outTempChart" class="chart"></div>
                <div id="barometerChart" class="chart"></div>
                <div id="rainChart" class="chart"></div>
                <div id="windChart" class="chart"></div>
<!--
                <div id="windDirChart" class="chart"></div>
                <div id="outHumidityChart" class="chart"></div>
-->
            </div>

Having done that, windChart also doesn't display. The page source is exactly as per the template, with those two lines commented out.

Live

Confusing Install

Installation was a little confusing. I would recommend that you add the Bootstrap assets to the repo. Otherwise, install fails and those assets need to be copied manually.

Thanks for the work you put into this!

No way to change the graphs to imperial units?

Hello from the US, while I wish we were a metric country, we're not and it confuses and frightens my friends and neighbors that the charts are in metric even though the gauges are imperial. Any guidance on how I can change the graph formats?

Upgrade for weewx 3.0?

I have been running this extension for a year or so for a weather station popular with dinghy sailors and wind surfers.

After a recent SD card corruption on the raspberry pi, I decided to upgrade to the latest weewx, version 3.0.

I have had something of an outcry from the user community that they have lost their lovely gauges. Do you have any plans to upgrade the extension for 3.0? If not, I would be prepared to have a go myself over the Christmas break and contribute back.

Many thanks, Matthew
www.hillheadsc.org.uk/weewx

image font size too small

Installed v2.24, config file not changed, render fonts too small on BigImages and SmallImage, like this :
daytempchill-bootstrap

However gauges are working fine :
outtempgauge

error during report generation (weewx 3.1.0, fuzzy-archer-2.21)

Hi,
I installed the plugin via wee_setup install --extension /home/.../v2.21.tar.gz
Installation finished ok but during report generation the following errors appear and in the final report the gauges are missing. Are any other components needed for the gauges ?

Cheers
Dennis

syslog:
Feb 8 02:25:19 odroid-wheezy weewx[2325]: cheetahgenerator: Generated 16 files for report StandardReport in 2.89 seconds
Feb 8 02:25:20 odroid-wheezy weewx[2325]: genimages: Generated 12 images for StandardReport in 0.47 seconds
Feb 8 02:25:20 odroid-wheezy weewx[2325]: reportengine: Caught unrecoverable exception in generator user.gaugeengine.GaugeGenerator
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** cannot open resource
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** Traceback (most recent call last):
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/reportengine.py", line 139, in run
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** obj.start()
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/reportengine.py", line 170, in start
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** self.run()
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/user/gaugeengine.py", line 121, in run
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** self.gen_gauges()
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/user/gaugeengine.py", line 171, in gen_gauges
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** ret = self.gen_gauge(gauge, plot_options, img_file)
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/user/gaugeengine.py", line 311, in gen_gauge
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** gauge.add_text(label_text, text_font_size=label_font_size, text_font=font_path, text_color=text_color)
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/user/gauges.py", line 151, in add_text
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** self.text_font = ImageFont.truetype(text_font, text_font_size)
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 218, in truetype
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** return FreeTypeFont(filename, size, index, encoding)
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 134, in init
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** self.font = core.getfont(file, size, index, encoding)
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** IOError: cannot open resource
Feb 8 02:25:20 odroid-wheezy weewx[2325]: **** Generator terminated...
Feb 8 02:25:20 odroid-wheezy weewx[2325]: translategenerator.pyc: Language is german
Feb 8 02:25:20 odroid-wheezy weewx[2325]: historygenerator.pyc: Generated 5 tables in 0.04 seconds
Feb 8 02:25:21 odroid-wheezy weewx[2325]: cheetahgenerator: Generated 10 files for report HTMLPages in 1.53 seconds
Feb 8 02:25:22 odroid-wheezy weewx[2325]: translategenerator.pyc: Language is german
Feb 8 02:25:22 odroid-wheezy weewx[2325]: reportengine: Caught unrecoverable exception in generator user.translategenerator.ImageGeneratorTranslated
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** coordinate list must contain exactly 1 coordinate
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** Traceback (most recent call last):
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/reportengine.py", line 139, in run
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** obj.start()
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/reportengine.py", line 170, in start
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self.run()
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/imagegenerator.py", line 36, in run
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self.genImages(self.gen_ts)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/imagegenerator.py", line 220, in genImages
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** image = plot.render()
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weeplot/genplot.py", line 175, in render
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self._renderTopBand(draw)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weeplot/genplot.py", line 377, in _renderTopBand
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** font=unit_label_font)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 270, in text
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self.draw.draw_bitmap(xy, mask, ink)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** TypeError: coordinate list must contain exactly 1 coordinate
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** Generator terminated...
Feb 8 02:25:22 odroid-wheezy weewx[2325]: translategenerator.pyc: Language is german
Feb 8 02:25:22 odroid-wheezy weewx[2325]: reportengine: Caught unrecoverable exception in generator user.translategenerator.ImageGeneratorTranslated
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** coordinate list must contain exactly 1 coordinate
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** Traceback (most recent call last):
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/reportengine.py", line 139, in run
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** obj.start()
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/reportengine.py", line 170, in start
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self.run()
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/imagegenerator.py", line 36, in run
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self.genImages(self.gen_ts)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weewx/imagegenerator.py", line 220, in genImages
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** image = plot.render()
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weeplot/genplot.py", line 175, in render
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self._renderTopBand(draw)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/share/weewx/weeplot/genplot.py", line 377, in _renderTopBand
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** font=unit_label_font)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** File "/usr/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 270, in text
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** self.draw.draw_bitmap(xy, mask, ink)
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** TypeError: coordinate list must contain exactly 1 coordinate
Feb 8 02:25:22 odroid-wheezy weewx[2325]: **** Generator terminated...
Feb 8 02:25:23 odroid-wheezy weewx[2325]: reportengine: ftp'd 50 files in 1.27 seconds

Font path

It would be nice if there was a single place to configure a directory for the freetype fonts (preferably in weewx.conf) and let the extensions get and use that.

How many years are showed into history ?

Sorry 4 my bad english.
Hello, I have saved nearly 50 years of historical data, and do not know if it should be inserted into the database weewx or not, before doing so I would like to know how many years they show or if this is configurable in any way.
Cheers

data of the type "count" not processed correctly in historygenerator?

Hello Nick,
thank you very much for the great weewx-skin. Especially the history generator is a nice tool. Lately I added a lightning detector to my raspberry and added the "AS3935 Service" to weewx. For each lightning a "lightning_distance" of the type distance and a "lightning_strike_count" of the type count is stored in the weewx-database. For example with the tag $month.lightning_strike_count.sum the number of observed lightning strikes are shown on the webpage. However when I try to add lightning_strike_count to the history-table only zeros are shown for each month (in skin.conf obs_type = lightning_strike_count; aggregate_type = sum). Even for the months before the lightning detector was added (only NULL-values are stored in the database for these months) the history-page shows zeros instead of "-". I'd like to help investigating this issue but I would need some guidance where to start and what to look for. Thank you!

Summary column in history does not show up

Hi,
I am running the latest version and enabled the summary_column in the HistoryReport area of the skin.conf

However, this column does not show up in the generated page.
Am I missing something?

Thanks!

Weewx 3.7.1

Testing required on latest Weewx.
Last testing was on 3.5.0

Title tag

In the html, this is the title tag.

<title>The weather, in Royston</title>

Since I didn't find a way to configure it, I assume this is a bug.

wind

hello

is it possible to add windspeed in the history?

regard

can't encode character u'\xb0'

Just installed the skin but was getting the following error:


Mar 4 06:01:35 server weewx[21077]: reportengine: Caught unrecoverable exception in generator user.gaugeengine.GaugeGenerator
Mar 4 06:01:35 server weewx[21077]: **** 'ascii' codec can't encode character u'\xb0' in position 3: ordinal not in range(128)
Mar 4 06:01:35 server weewx[21077]: **** Traceback (most recent call last):
Mar 4 06:01:35 server weewx[21077]: **** File "/usr/share/weewx/weewx/reportengine.py", line 140, in run
Mar 4 06:01:35 server weewx[21077]: **** obj.start()
Mar 4 06:01:35 server weewx[21077]: **** File "/usr/share/weewx/weewx/reportengine.py", line 170, in start
Mar 4 06:01:35 server weewx[21077]: **** self.run()
Mar 4 06:01:35 server weewx[21077]: **** File "/usr/share/weewx/user/gaugeengine.py", line 121, in run
Mar 4 06:01:35 server weewx[21077]: **** self.gen_gauges()
Mar 4 06:01:35 server weewx[21077]: **** File "/usr/share/weewx/user/gaugeengine.py", line 171, in gen_gauges
Mar 4 06:01:35 server weewx[21077]: **** ret = self.gen_gauge(gauge, plot_options, img_file)
Mar 4 06:01:35 server weewx[21077]: **** File "/usr/share/weewx/user/gaugeengine.py", line 383, in gen_gauge
Mar 4 06:01:35 server weewx[21077]: **** gauge.render()
Mar 4 06:01:35 server weewx[21077]: **** File "/usr/share/weewx/user/gauges.py", line 379, in render
Mar 4 06:01:35 server weewx[21077]: **** self.draw_labels() # Reading/Text labels
Mar 4 06:01:35 server weewx[21077]: **** File "/usr/share/weewx/user/gauges.py", line 343, in draw_labels
Mar 4 06:01:35 server weewx[21077]: **** textsize = self.text_font.getsize(text)
Mar 4 06:01:35 server weewx[21077]: **** UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 3: ordinal not in range(128)
Mar 4 06:01:35 server weewx[21077]: **** Generator terminated...


Solved it by putting "" (quotes) around the labelse in etc/weewx/skins/Images/skin.conf that did not have it.

Running Ubuntu Server 14.04.3, locale sv_SE.UTF-8

The historygenerator can no longer create the UV Index

Hello, after the version 2.22 & 2.23 installation I get an error in the LOG. The historygenerator can no longer create the UV Index.

LOG
Mar 24 21:30:40 weather weewx[2210]: **** File "/usr/share/weewx/user/historygenerator.py", line 153, in get_extension_list Mar 24 21:30:40 weather weewx[2210]: **** NOAA=noaa) Mar 24 21:30:40 weather weewx[2210]: **** File "/usr/share/weewx/user/historygenerator.py", line 212, in _statsHTMLTable Mar 24 21:30:40 weather weewx[2210]: **** unit_formatted = reading.formatter.unit_label_dict[unit_type] Mar 24 21:30:40 weather weewx[2210]: **** File "/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__ Mar 24 21:30:40 weather weewx[2210]: **** val = dict.__getitem__(self, key) Mar 24 21:30:40 weather weewx[2210]: **** KeyError: 'uv_index' Mar 24 21:30:40 weather weewx[2210]: **** Generator terminated... Mar 24 21:30:40 weather weewx[2210]: reportengine: copied 0 files to /mnt/weewxdata/www/weewx Mar 24 21:30:40 weather weewx[2210]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator Mar 24 21:30:40 weather weewx[2210]: **** 'uv_index' Mar 24 21:30:40 weather weewx[2210]: **** Traceback (most recent call last):

skin.conf
`

[[uv]]
    obs_type = UV
    aggregate_type = max

    minvalues = 0, 3, 6, 8, 11
    maxvalues = 3, 6, 8, 11, 16
    colours = "#C0FFA0", "#F8F040", "#F87820", "#D80020", "#A80080" `

best regards
cerberus

Times in LiveCharts

Most of my LiveCharts have the time shown at the bottom every 4 hours, but for some reason Radiation is every 2 hours which looks messy.

I can't see anything in the LiveCharts section that might control this. Do you know how I can fix this?

Capture

Installing v2.26 on Raspberry PI with Python 3.7 fails

Installing V2.26 on Raspberry PI (Raspbian) with Python 3.7 fails with following traceback;

sudo wee_extension --install=/home/pi/Downloads/fuzzy-archer-2.26.tar.gz
Request to install '/home/pi/Downloads/fuzzy-archer-2.26.tar.gz'
Extracting from tar archive /home/pi/Downloads/fuzzy-archer-2.26.tar.gz
Traceback (most recent call last):
File "/usr/share/weewx/wee_extension", line 88, in
main()
File "/usr/share/weewx/wee_extension", line 80, in main
ext.install_extension(options.install)
File "/usr/share/weewx/weecfg/extension.py", line 123, in install_extension
self.install_from_dir(extension_dir)
File "/usr/share/weewx/weecfg/extension.py", line 145, in install_from_dir
extension_dir)
File "/usr/share/weewx/weecfg/init.py", line 1800, in get_extension_installer
import('install')
File "/var/tmp/fuzzy-archer-2.26/install.py", line 84
print ""
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("")?

Additional gauge & history: intemp

Hi,

I modified the files for displaying the inside temperature.
Works fine for the gauge but the history is showing the wrong units (fahrenheit in stead of degrees celsius).
All other units are OK.
Any idea's?

Wind Direction

In win direction gauge when the direction is one of the bins points, the history of wind direction dosnt show correctly.

Example: When is North wind the history marc to a side of it.

i want to rotate the point of start of bins sections. start at 15° and 8 bins. Then you have the important points like N NNW W in the midle of the bin.

IOError during installation of version 2.23

Installation of v2.23 fails with IOError: [Errno 2] No such file or directory: '/home/weewx/skins/Bootstrap/about.html.tmpl'

I use the command bin/wee_extension --install=/home/pi/v2.23.tar.gz

Request to install '/home/pi/v2.23.tar.gz'
Extracting from tar archive /home/pi/v2.23.tar.gz

The following alternative languages are available:
espanol
francais
italian
german

Language changes can be made in skins/Bootstrap/skin.conf

Default location for HTML and image files is public_html/Bootstrap
*** POINT YOUR BROWSER TO: public_html/Bootstrap/index.html ***

Traceback (most recent call last):
File "bin/wee_extension", line 83, in
main()
File "bin/wee_extension", line 75, in main
ext.install_extension(options.install)
File "/home/weewx/bin/weecfg/extension.py", line 115, in install_extension
self.install_from_dir(extension_dir)
File "/home/weewx/bin/weecfg/extension.py", line 173, in install_from_dir
shutil.copy(source_path, destination_path)
File "/usr/lib/python2.7/shutil.py", line 119, in copy
copyfile(src, dst)
File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: '/home/weewx/skins/Bootstrap/about.html.tmpl'

Error

hello,

my
*.py files are in
/usr/share/weewx/user
eg
/usr/share/weewx/user/historygenerator.py

weewx is installed on a PI3 according this page
http://weewx.com/docs/debian.htm

but i get this error here:

Aug 3 10:05:16 raspberrypi weewx[10259] INFO weewx.manager: Added record 2021-08-03 10:05:00 CEST (1627977900) to database 'weewx.sdb'
Aug 3 10:05:16 raspberrypi weewx[10259] INFO weewx.manager: Added record 2021-08-03 10:05:00 CEST (1627977900) to daily summary in 'weewx.sdb'
Aug 3 10:05:21 raspberrypi weewx[10259] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 4.16 seconds
Aug 3 10:05:22 raspberrypi weewx[10259] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.25 seconds
Aug 3 10:05:22 raspberrypi weewx[10259] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: Unable to instantiate generator 'user.gaugeengine.GaugeGenerator'
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** No module named 'Image'
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** Traceback (most recent call last):
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 179, in run
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** obj = weeutil.weeutil.get_object(generator)(
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1119, in get_object
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** mod = import(module)
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** File "/usr/share/weewx/user/gaugeengine.py", line 106, in
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** import Image
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** ModuleNotFoundError: No module named 'Image'
Aug 3 10:05:22 raspberrypi weewx[10259] ERROR weewx.reportengine: **** Generator ignored
Aug 3 10:05:22 raspberrypi /weewxd: historygenerator.py: Generated 5 tables in 0.24 seconds
Aug 3 10:05:25 raspberrypi weewx[10259] INFO weewx.cheetahgenerator: Generated 10 files for report StandardReport in 2.74 seconds
Aug 3 10:05:25 raspberrypi weewx[10259] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Aug 3 10:05:28 raspberrypi weewx[10259] INFO weewx.cheetahgenerator: Generated 1 files for report Highcharts in 3.02 seconds
Aug 3 10:05:38 raspberrypi weewx[10259] INFO weewx.reportengine: ftpgenerator: Ftp'd 31 files in 9.87 seconds

import Image error

Originally I had a problem with this, using a clean install of the latest Buster etc. however v4.4.0 has the following where it imports Image libraries. Hopefully your new code does as well.

try:
    from PIL import Image, ImageDraw
except ImportError:
    import Image, ImageDraw

Foreground text in history

I would like to ask you if it is possible to have a yearly summary column in the history tab in each table? So the yearly minimum, maximum, rain days, rainfall etc. would be visible beside their monthly equivalents. Another feature I would find very useful, would be to make it possibly to specify a text color for each temperature range, not only a background color, because on many screens there are temperaturie ranges which are very hard to read. For instance the minimum in Feb. 2012 on your site (dark blue, -10,9°C) is very hard to read. A text color with a bit more contrast to the background color would be an improvement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.