UV and Sun with Nick's gauge generator.

29 views
Skip to first unread message

Yves Martin

unread,
Jul 24, 2020, 10:39:47 AM7/24/20
to weewx-user
Hi,

I'm using weewx since years now and I'm very grateful to Tom for his wonderful job and passion!

I use version 3.9.2 plus the Nick's gauge generator. I wanted to add Sun and UV gauges to my pages, so I've added this in "skin.conf" :


[GaugeGenerator]

    image_width = 180

    image_height = 180


(...)


    [[Sun]]

    minvalue = 0

    maxvalue = 1000

    majorstep = 50

    minorstep = 1

    history = 25

    bins = 100


    [[max_UV]]

    minvalue = 0

    maxvalue = 16

    majorstep = 5

    minorstep = 1

    history = 24

    bins = 80



Then I've added something like this in my templates :

            <li class="span2">

                <img src="SunGauge.png" alt="">

              <h5 align="center">Ensoleillement</h5>

            </li>

            <li class="span2">

              <img src="max_UVGauge.png" alt="">

              <h5 align="center">UV</h5>

            </li>


... but it does not work and I have no error messages.


I cannot find the link how is generated the gauge image (I'm not programmer).


Is there anything I'm doing wrong?


I am using the gaugeengine.py file from the trunk: https://github.com/brewster76/fuzzy-archer/tree/master/bin/user


Any help or suggestion will be welcome. Thanks!



---

Yves MARTIN

ymartin.com/meteo



Reply all
Reply to author
Forward
0 new messages