Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Temperature radio buttons

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Temperature radio buttons

Post by AndyKF650 »

Hi Hans

I am sure that the outside temp and inside temp radio buttons should be visible below the temperature gauge but for me this is not the case. I can see the coding in the index file and despite running a clean install or an overwrite install the buttons do not show.

Do you have any thoughts on this very minor problem?

BTW I upped the swap file on my RPi v4 from 100 to 1028Mb and will let you know if I see any problems.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Temperature radio buttons

Post by HansR »

I'll look into the cause of the radio button disappearance, my first peek at the code could not find why they would not appear.
The code for your gauge and the same on my site is equal. The strange thing is that the code for the radio buttons the there (view source of the page) but it does not work. Even worse: the code is there but I don't see it when I do Inspect of the element.

[EDIT:] when I look around I see that you are not the only one. Seems an issue with 6.7.8 but some others have the same issue
I miss what's wrong. I'll come back to this.

I assume your RPi4 has 4Gb of memory?
You might just as well up the swap then to 4Gb.
Btw is that 1028 a typo? Shouldn't that be 1024?
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Temperature radio buttons

Post by mcrossley »

They are being removed by gauges with this...

Code: Select all

          if (!config.showIndoorTempHum) {
            $('#rad_temp1').remove();
            $('#lab_temp1').remove();
            $('#rad_temp2').remove();
            $('#lab_temp2').remove();
            $('#rad_hum1').remove();
            $('#lab_hum1').remove();
            $('#rad_hum2').remove();
            $('#lab_hum2').remove();
          }
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Temperature radio buttons

Post by HansR »

Aha... Thanks Mark, that makes the route for me much easier, I hadn't found that yet. Apparently there is something in my code, which I messed up, with setting the config which sometimes does and sometimes don't.

Tomorrow the solution (I hope :D ).
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Temperature radio buttons

Post by HansR »

OK, much simpler than I thought: it is not a bug it is a parameter !
Check the Wiki for the ShowInsideMeasurements parameter (must be true to show).

I must admit: I had forgotten all about this :lol:
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Temperature radio buttons

Post by AndyKF650 »

Hans

Thanks for that, what a simple fix! Change the .ini file run website and hey presto it works :D

I did look through the .ini file to see if the fix was there but obviously it was a "man look" and not spotted.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Temperature radio buttons

Post by HansR »

AndyKF650 wrote: Wed 23 Feb 2022 9:16 am I did look through the .ini file to see if the fix was there but obviously it was a "man look" and not spotted.
Haha... yes I know what you mean. Happens to me all the time. ;)
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Post Reply