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
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
Gauges In The Default Home Page
- The Dalek Hunter
- Posts: 342
- Joined: Wed 05 Aug 2020 11:51 am
- Weather Station: Vantage Pro 2, Ecowitt GW2000
- Operating System: macOS Sonoma on a Mac Mini M2
- Contact:
Gauges In The Default Home Page
It might be nice to have a couple of gauges on the default web home page.
Say wind and temperature - maybe the wind realtime?
or maybe user definable
Is that an easy thing?
I know Cumulusutils does this but I prefer to stick to default CMX
Say wind and temperature - maybe the wind realtime?
or maybe user definable
Is that an easy thing?
I know Cumulusutils does this but I prefer to stick to default CMX
Last edited by The Dalek Hunter on Fri 10 Feb 2023 7:45 pm, edited 1 time in total.
- 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: Gauges In The Default Home Page
Well, anybody interested in a merge? 
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
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
-
flort
- Posts: 248
- Joined: Thu 17 Dec 2020 9:06 am
- Weather Station: Davis Vantage Vue
- Operating System: Raspbian GNU/Linux 10 (buster)
- Location: Tin Can Bay, Queensland, Australia
Re: Gauges In The Default Home Page
The gauges sit very nicely in the sidebar and look quite good. The question is whether people see value in having them there.
Below is a sample of what the page could look like.
Personally, I prefer to look at numbers rather than gauges. I've attached the index.html page that produced the above.
Regards,
Trevor
Below is a sample of what the page could look like.
Personally, I prefer to look at numbers rather than gauges. I've attached the index.html page that produced the above.
Regards,
Trevor
You do not have the required permissions to view the files attached to this post.
- The Dalek Hunter
- Posts: 342
- Joined: Wed 05 Aug 2020 11:51 am
- Weather Station: Vantage Pro 2, Ecowitt GW2000
- Operating System: macOS Sonoma on a Mac Mini M2
- Contact:
Re: Gauges In The Default Home Page
That is nice! Yes please!
Applied to all three of my CMX sites.
(I know it won't survive an upgrade)
Applied to all three of my CMX sites.
(I know it won't survive an upgrade)
- The Dalek Hunter
- Posts: 342
- Joined: Wed 05 Aug 2020 11:51 am
- Weather Station: Vantage Pro 2, Ecowitt GW2000
- Operating System: macOS Sonoma on a Mac Mini M2
- Contact:
Re: Gauges In The Default Home Page
Could people perhaps post a "yes" or "no" to this to see how popular (or not) it might be?
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Gauges In The Default Home Page
Yes if the type of gauge was definable (I would like to see wind, others may want different ones), otherwise no.
The "yes"is with the caveat that if I really wanted them on that page I would've done it myself by now.
The "yes"is with the caveat that if I really wanted them on that page I would've done it myself by now.
- The Dalek Hunter
- Posts: 342
- Joined: Wed 05 Aug 2020 11:51 am
- Weather Station: Vantage Pro 2, Ecowitt GW2000
- Operating System: macOS Sonoma on a Mac Mini M2
- Contact:
Re: Gauges In The Default Home Page
I do not possess that skill
- The Dalek Hunter
- Posts: 342
- Joined: Wed 05 Aug 2020 11:51 am
- Weather Station: Vantage Pro 2, Ecowitt GW2000
- Operating System: macOS Sonoma on a Mac Mini M2
- Contact:
Re: Gauges In The Default Home Page
Is it possible you could tell me how to do this very simply!!flort wrote: ↑Thu 09 Feb 2023 10:49 pm The gauges sit very nicely in the sidebar and look quite good. The question is whether people see value in having them there.
Below is a sample of what the page could look like.
index.jpg
Personally, I prefer to look at numbers rather than gauges. I've attached the index.html page that produced the above.
Regards,
Trevor
ie add these lines
line 1
line 2
line 3 etc
between these lines in index.htm so the next time there is an update I can amend the files myself
Thanks
-
flort
- Posts: 248
- Joined: Thu 17 Dec 2020 9:06 am
- Weather Station: Davis Vantage Vue
- Operating System: Raspbian GNU/Linux 10 (buster)
- Location: Tin Can Bay, Queensland, Australia
Re: Gauges In The Default Home Page
Make sure you use a good editor like Notepad++
Step 1 - Add the Stylesheet specifically for the gauges into the header. I did this at line 27 underneath the other Stylesheets.
Step 2 - Now you want to insert the gauges into the Sidebar. Go down to the start of the Sidebar code. In the current file that will be line 217 after inserting the line from step 1. You want to insert the following code after the welcome message and forecast. This will currently be line 227.
Step 3 - Lastly you need to add the code to give the popup box for selecting your units of measure. This is inserted before the second last line where it says </body>. You will probably find it is line 268 after applying steps 1 and 2.
Just remember that if index.htm changes in future updates then the line numbers stated above will be different. You will have to find the correct spot to insert each of the code.
Regards,
Trevor
Step 1 - Add the Stylesheet specifically for the gauges into the header. I did this at line 27 underneath the other Stylesheets.
Code: Select all
<link href="css/gauges.css" rel="stylesheet">Code: Select all
<div class="w3-bar" style="max-width:200px;">
<button class="w3-bar-item w3-btn w3-theme-hvr w3-right at-slim" onClick="showModal('MXmodal');">Units</button>
<div class="w3-dropdown-hover w3-right">
<button class="w3-btn w3-theme-hvr at-slim">Gauge Options</button>
<div id="Options" class="w3-dropdown-content w3-bar-block w3-theme-l1">
<div class="w3-bar-item at-slim at-menu-label w3-small w3-theme-l3 w3-center">Temperature</div>
<div class="w3-bar-item at-slim"><input id="rad_temp1" type="radio" class="w3-radio" name="rad_temp" value="out" checked onclick="gauges.doTemp(this);"><label id="lab_temp1" for="rad_temp1">Outside</label></div>
<div class="w3-bar-item at-slim"><input id="rad_temp2" type="radio" class="w3-radio" name="rad_temp" value="in" onclick="gauges.doTemp(this);"><label id="lab_temp2" for="rad_temp2">Inside</label></div>
</div>
</div>
</div>
<div style="display:flex; flex-flow: row wrap; justify-content:space-evenly">
<div class="w3-panel w3-theme-l5 at-gaugeSmall" style="order:0;">
<!-- dial -->
<h5 class="">Temperature</h5>
<div class="gauge w3-center">
<div id="tip_0">
<canvas id="canvas_temp" class="gaugeSmall"></canvas>
</div>
</div>
</div>
<div class="w3-panel w3-theme-l5 at-gaugeSmall" style="order:0;">
<!-- dial -->
<h5 class="">Wind</h5>
<div id="tip_6" class="gauge w3-center">
<canvas id="canvas_wind" class="gaugeSmall"></canvas>
</div>
</div>
</div>Code: Select all
<!-- Modal -->
<div id="MXmodal" class="w3-modal w3-hide at-theme-modal">
<div class="w3-modal-content w3-round-large" style="margin-top:10%; max-width:500px;">
<header class="w3-container w3-theme-dark" style="border-radius:8px 8px 0 0;">
<span onclick="showModal('MXmodal')" class="w3-btn w3-theme-hvr w3-display-topright" style="border-radius: 0 8px 0 8px;">×</span>
<h3>Gauge Units</h3>
</header>
<div class="w3-row-padding w3-theme-white">
<div class="w3-panel">
<div class="w3-col l3 m3 s5"><span class="lang_temparature">Temperature</span>:</div>
<div class="w3-col l2 m3 s3"><input id="rad_unitsTemp1" type="radio" class="w3-radio" name="rad_unitsTemp" value="C" checked onclick="gauges.setUnits(this);"><label id="lab_unitsTemp1" for="rad_unitsTemp1">°C</label></div>
<div class="w3-rest"><input id="rad_unitsTemp2" type="radio" class="w3-radio" name="rad_unitsTemp" value="F" onclick="gauges.setUnits(this);"><label id="lab_unitsTemp2" for="rad_unitsTemp2">°F</label></div>
<div class="w3-col l3 m3 s5"><span id="lang_windSpeed">Wind Speed</span></div>
<div class="w3-col l2 m2 s3"><input id="rad_unitsWind4" type="radio" class="w3-radio" name="rad_unitsWind" value="km/h" checked onclick="gauges.setUnits(this);"><label id="lab_unitsWind4" for="rad_unitsWind4">km/h</label></div>
<div class="w3-col l2 m2 s4"><input id="rad_unitsWind3" type="radio" class="w3-radio" name="rad_unitsWind" value="m/s" onclick="gauges.setUnits(this);"><label id="lab_unitsWind3" for="rad_unitsWind3">m/s</label></div>
<div class="w3-col s5 w3-hide-medium w3-hide-large"> </div>
<div class="w3-col l2 m2 s3"><input id="rad_unitsWind1" type="radio" class="w3-radio" name="rad_unitsWind" value="mph" onclick="gauges.setUnits(this);"><label id="lab_unitsWind1" for="rad_unitsWind1">mph</label></div>
<div class="w3-col l3 m3 s4"><input id="rad_unitsWind2" type="radio" class="w3-radio" name="rad_unitsWind" value="kts" onclick="gauges.setUnits(this);"><label id="lab_unitsWind2" for="rad_unitsWind2">knots</label></div>
</div>
</div>
<footer class="w3-container w3-theme-dark" style="border-radius: 0 0 8px 8px;">
<p class="w3-right">Powered by <span class="w3-theme-txt">Cumulus MX</span></p>
</footer>
</div>
</div>
<script>
var showModal = function(modalID) {
$('#' + modalID).toggleClass('w3-show', 'w3-hide');
};
</script>
<!-- Combined steelseries.js & tween.js -->
<script src="lib/steelseries/scripts/steelseries_tween.min.js"></script>
<!-- Once you have customised this scripts to your requirements you should minimise and concatenate them into a single file in the same order as below -->
<script src="lib/steelseries/scripts/language.min.js"></script>
<script src="lib/steelseries/scripts/gauges.js"></script>
<!--Optional Wind Rose scripts -->
<script src="lib/steelseries/scripts/RGraph.common.core.min.js"></script>
<script src="lib/steelseries/scripts/RGraph.rose.min.js"></script>Regards,
Trevor
- The Dalek Hunter
- Posts: 342
- Joined: Wed 05 Aug 2020 11:51 am
- Weather Station: Vantage Pro 2, Ecowitt GW2000
- Operating System: macOS Sonoma on a Mac Mini M2
- Contact:
Re: Gauges In The Default Home Page
Brilliant
Many many thanks
Many many thanks