bootstrap history page

725 views
Skip to first unread message

Robin

unread,
Nov 12, 2015, 8:09:10 AM11/12/15
to weewx-user
I really like the bootstrap history page as seen at


I am pretty happy with my current skin, and was wondering if it is possible to add a page like this without a full install of the bootstrap skin? I would not be using the gauges and can edit the templates.

Any advice would be most welcome.

Robin

Eirik Skorstad

unread,
Nov 12, 2015, 1:02:01 PM11/12/15
to weewx-user

I also like the history page very much, so I just removed the gauges from history.html. It's running with a full BootStrap skin, because i was to lazy to edit code :P  http://weather.skorstad.name/history.html

Can have a look at it later on tonight and see if i can make it stand-alone. I guess it should be quite simple
 

Robin

unread,
Nov 13, 2015, 5:55:35 AM11/13/15
to weewx-user
Thank you for the answer Eirik.

Can somebody confirm that if I do a standard install of the bootstrap skin (as per the instructions), it will leave the rest of WeeWX running "as is" with my current web pages etc. I can then 'play' with bootstrap at my leisure to get the look I want.

Thanks
Robin

Steve

unread,
Nov 13, 2015, 6:29:41 AM11/13/15
to weewx-user
Sorry Robin, off topic.

Eirik, I'm going to send you an email off board about your kp index.

Regards,

Steve.

Luc Heijst

unread,
Nov 13, 2015, 8:04:18 AM11/13/15
to weewx-user
Hi Robin,

The standard installation of Bootstrap leaves all other settings of weewx unchanged. You will get a few extra skin directories (Bootstrap, (small) images, BigImages).and a few extra files in bin/user.
I have played a lot myself with Bootstrap. First the colors of the history. When you live in a country where the differences in the minimum, average and maximum temperatures are about 1 degree Celsius each, you need a more subtile color scheme... 

Recently I wanted to get rid of the generation of BigImages, because I found it a wast of processing time and FTP copying time. When you click on a small image, you should get the bigger BigImage. Well I cheeted a bit: replaced in the html files directories BigImages by images and gess what? The small images pop up as big images! OK same content, same resolution, but bigger.
I also have made a Dutch translation file in case you like it :-)

Luc

Robin

unread,
Nov 13, 2015, 10:48:33 AM11/13/15
to weewx-user
Thank you Luc.

I can start installing/playing.

Robin

Robin

unread,
Nov 14, 2015, 8:11:49 AM11/14/15
to weewx-user
OOPS!

I tried to install v2.2 but got the following:

root@PWS:~# wee_extension --install v2.2-beta.tar.gz
Request to install 'v2.2-beta.tar.gz'
Extracting from tarball v2.2-beta.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

What am I doing wrong? 

Luc Heijst

unread,
Nov 14, 2015, 9:22:22 AM11/14/15
to weewx-user
Hi Robin,

Not sure what happenned. I have installed a newer version: fuzzy archer V2.22. Search with Google for 'fuzzy archer'.

Luc

Robin

unread,
Nov 14, 2015, 9:39:23 AM11/14/15
to weewx-user
Thanks once again Luc,

DON'T follow the instructions on github and try to install v2.2-beta

use v2.22 from


Now working.

Regards
Robin 

David Johns

unread,
Nov 14, 2015, 10:10:51 AM11/14/15
to weewx...@googlegroups.com
Apologies for jumping on this thread but I think our objectives are the same.
I've been trying to install this for a while. I just installed this but it does not appear to have put anything in my public html, on my machine (Ubuntu 14.04 this is /var/www/html/).
I couldn't find a label for Bootstrap in weewx.conf until I looked more closely and there appears to be labelled as [[HTMLPages]] and also two more labels [[BigImages]] and [[SmallImages]] have been added.
I've tried searching for the missing webpage files but cannot seem to find them. Any ideas at all, please?

David

On 11/14/2015 14:39, Robin wrote:


David Johns

unread,
Nov 15, 2015, 3:29:56 AM11/15/15
to weewx-user
I actually have this running now, to a fashion. I had to reinstall it again and for some reason or other  it was working. I was expecting to see a label such as [[Bootstrap]] in the weewx.conf file though.
It appears to be working but I am getting these errors in the log file:-

Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: windSpeed reading = 12.2694242625 mile_per_hour
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: Cannot decode reading of 'None' for gauge 'windSpeed'
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: windGust reading = 15.6827874902 mile_per_hour
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: Cannot decode reading of 'None' for gauge 'windGust'
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: windDir reading = 248.249023685 degree_compass
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: Cannot decode reading of 'None' for gauge 'windDir'
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: windRose reading = 248.249023685 degree_compass
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: Cannot decode reading of 'None' for gauge 'windRose'
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: Generated 7 images for HTMLPages in 0.76 seconds

I did note that someone did say back in January that this is a bug but then there was no further update to the posting - https://groups.google.com/forum/#!topic/weewx-user/hWGfYvIr9ug

Luc Heijst

unread,
Nov 15, 2015, 5:27:25 AM11/15/15
to weewx-user
Hi David,

Are you sure you have installed the latest version V2.22 (fuzzy-archer-master.zip)? SmallImages is now called images. 

Luc

Robin

unread,
Nov 15, 2015, 8:59:47 AM11/15/15
to weewx-user
Does anybody know if it is possible (and how) to modify the bootstrap history page to show the average maximum (daily) temperature for a month rather than the maximum temperature for that month?

In my simple brain, knowing the average daily maximum/minimum for a given period is more interesting in answering "what is the weather normally like?"

Thank you kind (and clever) people.

Regards
Robin

David Johns

unread,
Nov 15, 2015, 2:09:35 PM11/15/15
to weewx...@googlegroups.com
I'm sure I downloaded the v2.22 from the link provided in this thread. Maybe there were leftovers from a previous aborted install. Would it still have caused these errors, though?
What is seriously weird is that the errors will only show up in the log file when debug is set to 1....
Also, how do you uninstall Bootstrap? I tried almost everything (wee_extension --uninstall ?????? but it says it can't find whatever I am trying to uninstall. I installed it with v2.22.tar.gz but it will not uninstall with the same... or fuzzy-archer-2.22....

David

Luc Heijst

unread,
Nov 15, 2015, 2:35:15 PM11/15/15
to weewx-user
Hi David,

When a package is installed with wee_extension -- install some data is saved in directory bin\user\installer
If the info of a package is not there, that package can't be uninstalled with wee_extension --uninstall

You can manually 'uninstall' the old Bootstrap version by removing in weewx.conf the Bootstrap skins.
Look for Bootstrap, html_pages, images, BigImages, SmallImages and delete those sections.

The same for the subdirectories in skins and public_html:
Look for subdirectories Bootstrap, html_pages, images, BigImages, SmallImages and delete them.

The files in bin/user will be overwritten by the new version, so don't bother to delete them.

The 'error' messages you referring to are probably debug messages and not printed when debug is set to 0.

Luc

David Johns

unread,
Nov 15, 2015, 2:59:37 PM11/15/15
to weewx...@googlegroups.com
Thanks Luc.

The package was installed as bootstrap (lowercase), but referred to elsewhere as Bootstrap.
I would have thought that if these are genuine errors, then surely they would be reported regardless of the debug flag.
So are you saying that these are just debug 'test' messages?
--
You received this message because you are subscribed to the Google Groups "weewx-user" 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/d/optout.

L.J.M. Heijst

unread,
Nov 15, 2015, 3:12:48 PM11/15/15
to David Johns
Hi David,

When the wind or gust speed are 0 the values for wind and gust direction will be set to None.
Because this is expected behaviour the messages are probably debug messages. 

The strange thing about your debug messages is for instance:
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: windSpeed reading = 12.2694242625 mile_per_hour
Nov 15 08:05:35 localhost weewx[3847]: GaugeGenerator: Cannot decode reading of 'None' for gauge 'windSpeed'
The first message says: windSpeed reading = 12.2 mph
The second message says gauge 'windSpeed' is None
No idea what the program tries to tell me!

Luc


-- 
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/RGnQBVWsQM8/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/d/optout.


Avast logo

Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com


David Johns

unread,
Nov 15, 2015, 3:19:43 PM11/15/15
to weewx...@googlegroups.com
Luc,
Thats what I thought as we have had quite windy weather over the last few days and I doubt the windspeed has ever been zero.
I'm just trying to determine how the GaugeGenerator is making this mistake.
I'm going to go through the code to see if I can track this error down. Thanks for your help.

David

L.J.M. Heijst

unread,
Nov 15, 2015, 3:22:59 PM11/15/15
to David Johns
Hi David,

Brings me back to my original question: did you install version V2.22? The beta 2.2 version has errors.

Luc


Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. 
www.avast.com

David Johns

unread,
Nov 15, 2015, 3:27:26 PM11/15/15
to weewx...@googlegroups.com
Yes, it was the v2.22 from the link provided in this thread. It was not the beta version.

Jarmo Seppänen

unread,
Dec 16, 2015, 2:39:15 PM12/16/15
to weewx-user
Eirik, did you manage to make it standalone?

Jarmo Seppänen

unread,
Jan 11, 2016, 6:30:45 AM1/11/16
to weewx-user
I was able to tweak the skin so that it only creates the history information. :)

Now one does not have to try to remember whether or not "the summer of xxxx was warm or winter of xxxx was cold" :)

Mikael Fredriksson

unread,
Nov 10, 2019, 9:37:43 AM11/10/19
to weewx-user
Hi!

I see this is an old thread but I'll put my question here.

I'm using the bootstrap history.tmpl and I want to have the extra column like on this page( http://www.dajda.net/history.html ), with the max, min, avg, total etc for each year and observation

Which files do I need to change and to what to get this last column added to my page?

Thanks in advance / Mikael

Andrew Milner

unread,
Nov 10, 2019, 10:04:43 PM11/10/19
to weewx-user
looking further at the dajda net site you linked to - and then the about page took me to his github site.

seems like you need version 2.25 of bootstrap, and the two files used for history with the extra column are historygenerator.py and skin.conf

I am going to update mine also I think - I like the extra column!!!!

Mikael Fredriksson

unread,
Nov 29, 2019, 4:44:49 PM11/29/19
to weewx-user
Hi Andrew! Did you manage to get this to work? I don't know how to update bootstrap. When I look at my skin.conf it says:
$Revision: 737 $
# $Author: tkeffer $
# $Date: 2012-11-04 09:05:51 -0800 (Sun, 04 Nov 2012) $

Where can I find the historygenerator.py file?

Thanks!

Andrew Milner

unread,
Nov 29, 2019, 10:08:16 PM11/29/19
to weewx-user
from memory I tried to just change the two files, and it did not work.  Seems there are other changes in the latest version and so my configuration was not compatible - I kept on getting an error to do with colors and fonts not being equal for noaa files so gave up.  The latest version allows you to set background color and font color for the history - which is useful.  However I use highly customised colors and did not want to lose my current color settings so I stopped trying to work out why the noaa selection fonts/colors were failing.  I am sure it is something simple though.  The files are inside the zip which I pointed to on github before.

Andrew Milner

unread,
Nov 29, 2019, 10:14:55 PM11/29/19
to weewx-user
history generator.py lives in weewx/bin/user

Mikael Fredriksson

unread,
Dec 1, 2019, 4:43:50 PM12/1/19
to weewx-user
Ok, thanks Andrew!

I did also try to update and use the new files but nothing changed so I guess this has been removed in the latest update.

Mikael

Andrew Milner

unread,
Dec 1, 2019, 10:17:46 PM12/1/19
to weewx-user
i only copied the files a week or so ago.  The only problem I am having is with the noaa table which is giving me an error - i have got the summary columns for the min, max, rain tables working as expected.

Mikael Fredriksson

unread,
Dec 7, 2019, 5:26:31 PM12/7/19
to weewx-user
Andrew,

I've tried to copy these files and even changed them line by line in place, but the summary columns just won't apear.
Don't know what to try more, I left a comment on his github. Hope to get some answer to this.

/Micael

Andrew Milner

unread,
Dec 7, 2019, 6:49:39 PM12/7/19
to weewx-user
does the log offer any clues??  worked for me just changing history generator.py and the skin.conf.  I suspect noaa does not work for me because i have changed my noaa files to html instead of txt and also altered the header lines so suspect i have upset something!!  I've also emailed him and also not heard anything back (yet).

Mikael Fredriksson

unread,
Dec 8, 2019, 2:59:18 AM12/8/19
to weewx-user
Andrew,

Finally got it to work
!
Got an answer on my comment on github, and followed the proceduer.
I must have made some misstake before because it looks like this was what you told me to do.
My NOAA works also but I haven't made any changes on that.

Hope you get some answer to your issue with this now!

And thanks for your answers on this!

/Mikael

Michi Kaa

unread,
Dec 8, 2019, 11:52:21 PM12/8/19
to weewx-user
For the Bootstrap skin to run correctly, you have to install the latest commit of https://github.com/brewster76/fuzzy-archer/blob/master/bin/user/historygenerator.py  , which is NOT included in the latest release!

Andrew Milner

unread,
Dec 9, 2019, 4:17:04 AM12/9/19
to weewx-user
that is, I think, what I am using.  The history tables are generated correctly for max, min, average, rain, raindays - but the noaa table does not generate for some raeson - historygenerator seems to think it is a normal table rather than the noaa table of buttons and i cannot find what is wrong.

Michi Kaa

unread,
Dec 9, 2019, 11:05:52 AM12/9/19
to weewx-user
@Andrew Milner Can you post your noaa section?

Michi Kaa

unread,
Dec 9, 2019, 11:08:46 AM12/9/19
to weewx-user
I think I was the one who gave the answer on github. Did you post how you solved it?

Andrew Milner

unread,
Dec 9, 2019, 12:41:56 PM12/9/19
to weewx-user
here is my bootstrap skin which generates temperature and rain tables correctly but fails to create the NOAA button select table and instead gives a spurious error saying min values, max values and colours must have same number of elements. Whilst this is correct for normal history tables it does not apply to the NOAA table.  I assume that the NOAA section is not being identified as a NOAA table - why not??
skin.2.25.conf

Jozef Smolders

unread,
Dec 9, 2019, 1:13:15 PM12/9/19
to weewx-user

Missing double quotes in default temp colours


Op maandag 9 december 2019 18:41:56 UTC+1 schreef Andrew Milner:
Message has been deleted

Michi Kaa

unread,
Dec 9, 2019, 2:55:38 PM12/9/19
to weewx-user
Haha! There it is. And now I know why I didn't find it: I have the same error in my config but the line was commented out, because I use different colours (sic!). But doing a DIFF on my config and yours didn't highlight it, because the lines where the same except for the "#". I don't know where I got this commented out line from, I guess from an older release?

I hope the issue is solved by now and there is no other error...

Am Montag, 9. Dezember 2019 19:34:45 UTC+1 schrieb J D:
Here is the line for easy find
 colours =   "#0029E5", "#0186E7", "#02E3EA", "#04EC97", "#05EF3D2, "#2BF207", 

Andrew Milner

unread,
Dec 9, 2019, 10:48:18 PM12/9/19
to weewx-user
The power of many eyes - that was it!!!!  It now works as expected.  Many thanks to everyone - especially Michi.  I never saw it either because I never really thought about the default values as they are not used.  Many many thanks - I can sleep peacefully again now!!
All working at 

Many many thanks

Michi Kaa

unread,
Dec 10, 2019, 4:56:54 AM12/10/19
to weewx-user
Since the author of the skin didn't respond to any questions for over a year now (I had some conversation with him, when he introduced the yearly summaries which I suggested) I am thinking of forking the project and maintaining it. The skin is simple yet powerful and the history generator is a very nice, and (as far as I know) unique feature. But time doesn't stop and things like live gauges and charts etc. are on my "things-I-really-wanna-have"-list without changing to another, more sophistivated (and fatter) skin.
Reply all
Reply to author
Forward
0 new messages