Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Steel Gauges on a mobile
Moderator: mcrossley
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Steel Gauges on a mobile
It works fairly well. However I need to move the popup graph location so they pop up centrally. If you got to http://www.sheffieldweather.co.uk/Live%20Weather.htm on a mobile (not ipad) you'll see what I mean.
Can I fix this?
Can I fix this?
- mcrossley
- Posts: 12953
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Steel Gauges on a mobile
The lines you need to change to alter the centring is...
I'd start by making the x offset 0 rather than 20, then changing "x - tipw - ..." to "x - 0 - ..."
I haven't tried it, so you may need to play around to find what works for you.
Code: Select all
tooltipoffsets : [20, -30], //additional x and y offset from mouse cursor for tooltips
and
x = (x + tipw > $(document).scrollLeft() + $(window).width()) ? x - tipw - (ddimgtooltip.tooltipoffsets[0] * 2) : x;
I haven't tried it, so you may need to play around to find what works for you.
-
- Posts: 29
- Joined: Sun 20 Jul 2014 5:53 pm
- Weather Station: N96GY
- Operating System: Wndows 8
- Location: ashreigney
- Contact:
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Re: Steel Gauges on a mobile
Only finally got around to playing with this and changes the values didn't seem to have any effect. Any other ideas?
- mcrossley
- Posts: 12953
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Steel Gauges on a mobile
The script hasn't been changed? ... (http://www.sheffieldweather.co.uk/cumul ... /gauges.js)
Code: Select all
tooltipoffsets : [20, -30], //additional x and y offset from mouse cursor for tooltips
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Re: Steel Gauges on a mobile
That's because I put it back since it had no affect.
- mcrossley
- Posts: 12953
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Steel Gauges on a mobile
In positiontooltip, change...
Edit: there is something odd about your page, the browser debugger shows the page and code being loaded twice? If you online edit the wrong copy in memory it doesn't show on teh page.
Code: Select all
// $tooltip.css({left: x, top: y});
to
$tooltip.css({left: Math.min(Math.max(x,0),$(window).width()-tipw), top:y})
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Re: Steel Gauges on a mobile
how do you know it's loaded twice????
I've noticed the graphs have ceased today to update although they've been working until yesterday afternoon which is odd. The text updates but not the graphic.
I've noticed the graphs have ceased today to update although they've been working until yesterday afternoon which is odd. The text updates but not the graphic.
- mcrossley
- Posts: 12953
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Steel Gauges on a mobile
Load the dev tools in your browser (I use Chrome) - press f12 then reload the page.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Re: Steel Gauges on a mobile
Could be a bug in chrome as it doesn't show that in firefox.
Basically the page uses an iframe and it's shared across ipad version and a mobile phone version. If you shrink the your browser you'll see it resize automatically.
Now I've got to find why the graphs aren't updating.
Basically the page uses an iframe and it's shared across ipad version and a mobile phone version. If you shrink the your browser you'll see it resize automatically.
Now I've got to find why the graphs aren't updating.
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Re: Steel Gauges on a mobile
Just checked the page in xara it's just an iframe which refers to guages htm file. It's not loaded twice. Code below.
<iframe src="http://www.sheffieldweather.co.uk/cumulus/gauges-ss.htm"
width="100%" height="100%">
content if browser does not support
</iframe>
<iframe src="http://www.sheffieldweather.co.uk/cumulus/gauges-ss.htm"
width="100%" height="100%">
content if browser does not support
</iframe>
Re: Steel Gauges on a mobile
Am I missing something? Marks gauges resize for me just fine on what ever screen size 'out of the box'. And why use an 'iframe'?
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Re: Steel Gauges on a mobile
Yup missed a point
The only way I can keep the website layout the same across the board. Looks a bit odd when one page has a completely different look.
The only way I can keep the website layout the same across the board. Looks a bit odd when one page has a completely different look.
- mcrossley
- Posts: 12953
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Steel Gauges on a mobile
Firefox shows the same... Can't figure out why though, could be a script pre-loading pages as it downloads the mobile page as well when you are running desktop.The PIT wrote:Could be a bug in chrome as it doesn't show that in firefox.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 260
- Joined: Thu 10 Dec 2009 6:15 pm
- Weather Station: Davis VP2 Wireless
- Operating System: Windows 7 32 bit
- Location: England
- Contact:
Re: Steel Gauges on a mobile
Well the only thing right now that I'm concerned about is the graphs not updating. Whats happening there???