Bootstrap 4 ... LiveGauge and Live graph do not work

106 views
Skip to first unread message

Yves Martin

unread,
Jul 13, 2023, 8:11:25 AM7/13/23
to weewx-user
For Michael ...

I've installed Boostrap 4.0, all was fine.
Then I've installed Boostrap 4.1 and get issues
So I returned back and re-installed Boostrap 4.0

Now all works except the LiveGauge and the live graphs which stopped to get data.

I checked the files, they seems OK. I cannot find errors in the logs about this issue  (/var/log/syslog) or perhaps I do not check at the right place?

PS: To see what it is look like, go to YMartin.com/meteo

Any ideas?

Yves,
YMartin.com/meteo

michael.k...@gmx.at

unread,
Jul 13, 2023, 9:23:25 AM7/13/23
to weewx-user
The reason is, that the JSONGenerator fails (See log excerpt of your other post). No JSON, no Gauges, no LiveCharts.

Yves Martin

unread,
Jul 13, 2023, 10:08:51 AM7/13/23
to weewx-user
OK, I've change the skin.conf for (then it works fine!!!) :

    [[radiation]]
        [[[radiation]]]
            payload_key = radiation
            #convertFunction = "function(value) { return value / 126.7; }" #you can do value conversions if needed
            showMaxMarkPoint = true
            showMinMarkPoint = true
            showAvgMarkLine = true
            lineColor = '#ffcd56'
            decimals = 0

   [[UV]]
        [[[UV]]]
            yAxisIndex = 1  #to assign UV to the 2nd yAxis
            plotType = bar  #plot type, "line" is default
            aggregateType = avg
            aggregateInterval = 3600
            payload_key = UV
            showMaxMarkPoint = true
            showMinMarkPoint = true
            showAvgMarkLine = false
            lineColor = '#7f1ae555'
            decimals = 0

What are the option for the "plotType"? I've set "bar" to make it plain but this does not change ...

Yves
YMartin.com/meteo

Yves Martin

unread,
Jul 13, 2023, 10:14:21 AM7/13/23
to weewx-user
Hi Michael,

Another question about the rain for the Live Graphs, it is a way to add the total (sum) of all rain fallen in the graph?

    [[rain]]
        aggregate_interval_minutes = 30
        [[[rain]]]
            payload_key = rain_mm
            showMaxMarkPoint = false
            showMinMarkPoint = false
            showAvgMarkLine = false
            lineColor = '#428bca'
            decimals = 1

There are the Max, the Min, The Avg but how to get Sum? New option?

Yves
YMartin.com/meteo

michael.k...@gmx.at

unread,
Jul 13, 2023, 10:15:30 AM7/13/23
to weewx-user
For LiveCharts, the plot_type option didn't exist in 4.0. Looking at the js-files on you site, you are on 4.0. Still, with a broken Installation, since some js-files are missing.

Yves Martin

unread,
Jul 13, 2023, 10:26:46 AM7/13/23
to weewx-user
Oh! ... no problem, when your 4.1 will be release?

What about the calculation of total rain fallen shown on the graph?

Yves,
YMartin.com/meteo

michael.k...@gmx.at

unread,
Jul 13, 2023, 10:30:32 AM7/13/23
to weewx-user

> Another question about the rain for the Live Graphs, it is a way to add the total (sum) of all rain fallen in the graph?

With 4.1 you should be able to configure this in the one or the other way, but "showMaxMarkPoint", "showMinMarkPoint", "showAvgMarkLine" refer to a feature of eCharts, and for these charts, there ist no "sum" feature: https://echarts.apache.org/en/option.html#series-line.markPoint.data.type 

michael.k...@gmx.at

unread,
Jul 13, 2023, 10:32:30 AM7/13/23
to weewx-user
There is no release schedule. It will be there, when it is ready. It is very, very likely that there will be only minor change from the current 4.1 state. My suggestion was, and still is: go for 4.1, now.

Yves Martin

unread,
Jul 13, 2023, 10:44:19 AM7/13/23
to weewx-user
OK ... where can I download it? The last one was broken as you said.

Thanks,

Yves,
YMartin.com/meteo

michael.k...@gmx.at

unread,
Jul 13, 2023, 11:13:13 AM7/13/23
to weewx-user

Yves Martin

unread,
Jul 13, 2023, 11:24:58 AM7/13/23
to weewx-user
Hi Michael,

Just installed the version 4.1 ... but "plotType = bar" still do not work here (for the last graph UV Index).

Yves,
YMartin.com/meteo

michael.k...@gmx.at

unread,
Jul 13, 2023, 2:23:19 PM7/13/23
to weewx-user
https://ymartin.com/meteo/js/site.js is still 4.0, the other already mentioned resources are still missing. There is something wrong, either with the upload to your webspace, with your skin installation or with the page generation. Did you restart everything? Did the installer really work correctly?
2023-07-13 20_22_14-Window.png
Assuming that your skin installation resides in /etc/weewx/skins/Bootstrap, is the content of the files the same as in https://github.com/brewster76/fuzzy-archer/tree/4.1/skins/Bootstrap ?


Message has been deleted

Yves Martin

unread,
Jul 13, 2023, 2:46:46 PM7/13/23
to weewx-user
Yep, I did it manually, will check it later. The tool "wee_extension --install= 4.1.zip" do not work here.
Definitely, I will wait your official release when it will be ready, this is not rush.

YM

michael.k...@gmx.at

unread,
Jul 13, 2023, 3:07:51 PM7/13/23
to weewx-user
wee_extension --install= 4.1.zip => This will never work.

This will do the trick:

wee_extension --install 4.1.zip

Maybe wee_extension with "sudo"

Yves Martin

unread,
Jul 13, 2023, 3:21:00 PM7/13/23
to weewx-user
Just did it ... but I lost my UV graphs ... again and the livegauges are not at the same place...

hummmm...

YM

michael.k...@gmx.at

unread,
Jul 13, 2023, 3:32:01 PM7/13/23
to weewx-user
Yes, that happens, if you don't follow the recommended way customizing the skin. I told you before, I sent you the link with the explanation, why. 
By the way, your archive_interval of 60s not only makes some plots look ugly, it also causes poor performance. Without any benefit.

Yves Martin

unread,
Jul 13, 2023, 3:49:29 PM7/13/23
to weewx-user
Hi Michael,

I understand. I've already modified the interval from 60 to 180 ... 2 days ago.

I will try it again, but later, now everything is working.

I've sent some add on you could add in your next release (the UV indice for example ... Useful for the summer!!)

Thanks for all your efforts, I appreciate a lot and I like the option to be able to modify the language, it is easy and simple.

If I can help, do not hesitate ... but I'm not a programmer ;)

Yves,
YMartin.com/meteo
Reply all
Reply to author
Forward
0 new messages