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
Virtual Davis VP2 console integration
Moderator: HansR
-
- Posts: 722
- Joined: Thu 20 Aug 2020 8:35 am
- Weather Station: Davis VP2 Plus
- Operating System: RPiv4 64bit Linux 12 Bookworm
- Location: Jersey Channel Islands
- Contact:
Virtual Davis VP2 console integration
Following some research on other CUtils websites I wanted to add a virtual DavisVP2 console as an enhancement for my own local CUtils site. Initially I thought that it should be possible to do but I did not factor in the various trials and comparisons of scripts to find the final product, however I do have plenty of time. As ever Hans has been supportive of my efforts and gave some very useful coding and style tips.
The starting point for getting a virtual Davis console onto a CUtils site is the scripts folder on silveracorn.nz at https://silveracorn.nz/weather/wxscripts.php
There is a detailed how to set up the console within the download folder. I initially set up the virtual console as part of the CMX default website and then wasted time getting the CMX branding around the console, this proved to me that the virtual console worked and showed live data. I then linked this virtual console to CUtils through links in the CUsermenu, whilst this worked it was a bit clunky.
Following some advice from Hans I used an “iframe” to integrate the console into CUtils as follows:-
1. Create a davcon.txt file containing ” <iframe src="davconvp2CU.php" width="100%" frameborder="0" style="border:0;height:75vh;"></iframe> “.
2. The davcon.txt file was then added to the CUsermenu.txt using “ <span class='nav-link' onclick="LoadUtilsReport('davcon.txt');">Davis Console</span> ”
The result was a fully integrated virtual console on my CUtils site which looked much better, this was further enhanced by:-
1. Amending davconvp2CU.php to remove the attribution notes at the end of the page.
2. Amending davconvp2CU-inc.php to remove the content block which included the site name and coordinates.
3. Both the above amends got the virtual console cleanly integrated.
I have attached a screen shot of the current integrated virtual console and the two davcon php files for information.
The starting point for getting a virtual Davis console onto a CUtils site is the scripts folder on silveracorn.nz at https://silveracorn.nz/weather/wxscripts.php
There is a detailed how to set up the console within the download folder. I initially set up the virtual console as part of the CMX default website and then wasted time getting the CMX branding around the console, this proved to me that the virtual console worked and showed live data. I then linked this virtual console to CUtils through links in the CUsermenu, whilst this worked it was a bit clunky.
Following some advice from Hans I used an “iframe” to integrate the console into CUtils as follows:-
1. Create a davcon.txt file containing ” <iframe src="davconvp2CU.php" width="100%" frameborder="0" style="border:0;height:75vh;"></iframe> “.
2. The davcon.txt file was then added to the CUsermenu.txt using “ <span class='nav-link' onclick="LoadUtilsReport('davcon.txt');">Davis Console</span> ”
The result was a fully integrated virtual console on my CUtils site which looked much better, this was further enhanced by:-
1. Amending davconvp2CU.php to remove the attribution notes at the end of the page.
2. Amending davconvp2CU-inc.php to remove the content block which included the site name and coordinates.
3. Both the above amends got the virtual console cleanly integrated.
I have attached a screen shot of the current integrated virtual console and the two davcon php files for information.
You do not have the required permissions to view the files attached to this post.
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Virtual Davis VP2 console integration
Hi Andy ...
Small niggle ..
Looking at the screenshot you don't seem to have styled the background and / or the <IFrame> ?
Well done on the integration
Small niggle ..
Looking at the screenshot you don't seem to have styled the background and / or the <IFrame> ?
Well done on the integration
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 722
- Joined: Thu 20 Aug 2020 8:35 am
- Weather Station: Davis VP2 Plus
- Operating System: RPiv4 64bit Linux 12 Bookworm
- Location: Jersey Channel Islands
- Contact:
Re: Virtual Davis VP2 console integration
Hi @ Beteljuice
I am not quite sure about your niggle on the iframe but I have cleaned up the VP2 boarder in both the plain and lit versions as per the screen shots
I am not quite sure about your niggle on the iframe but I have cleaned up the VP2 boarder in both the plain and lit versions as per the screen shots
You do not have the required permissions to view the files attached to this post.
- HansR
- Posts: 6025
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Virtual Davis VP2 console integration
Thanks Andy, I really like it.
May do it some time myself
And btw, the colour choice of you looks really good with the Davis Console
May do it some time myself
And btw, the colour choice of you looks really good with the Davis Console
Hans
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
- PaulMy
- Posts: 3875
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Virtual Davis VP2 console integration
Well done
Enjoy,
Paul
Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Virtual Davis VP2 console integration
Yup, that's what I was seeing, but you've you've lost your nice rounded edges. did you just crop the graphic ?... but I have cleaned up the VP2 boarder
On the original screenshot it seems to be showing the grid pattern of what should be a transparent (image) background ?
Something wring with the image I think ?
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 722
- Joined: Thu 20 Aug 2020 8:35 am
- Weather Station: Davis VP2 Plus
- Operating System: RPiv4 64bit Linux 12 Bookworm
- Location: Jersey Channel Islands
- Contact:
Re: Virtual Davis VP2 console integration
@beteljuice
Yes you were correct I did crop the pic to cut out the white background. I have just reworked the png files to make them fit on my background to give a more pleasant interface.
Copies of the files and the current screen shot are attached.
Yes you were correct I did crop the pic to cut out the white background. I have just reworked the png files to make them fit on my background to give a more pleasant interface.
Copies of the files and the current screen shot are attached.
You do not have the required permissions to view the files attached to this post.
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Virtual Davis VP2 console integration
nuff said ...
......................Imagine, what you will KNOW tomorrow !
- HansR
- Posts: 6025
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Virtual Davis VP2 console integration
second that
Hans
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
- mcrossley
- Posts: 12888
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Virtual Davis VP2 console integration
Looks good, but to make it more general purpose and work with any web page background, make the images backgrounds transparent, and the shadows a semi-transparent black.
-
- Posts: 722
- Joined: Thu 20 Aug 2020 8:35 am
- Weather Station: Davis VP2 Plus
- Operating System: RPiv4 64bit Linux 12 Bookworm
- Location: Jersey Channel Islands
- Contact:
Re: Virtual Davis VP2 console integration
Doh and I thought I was doing so well.
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Virtual Davis VP2 console integration
That would have been the next 'gentle suggestion' (or a PM) - but Mark does like popping bubbles
That's the problem when you code for others - you become bitter and twisted
That's the problem when you code for others - you become bitter and twisted
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 722
- Joined: Thu 20 Aug 2020 8:35 am
- Weather Station: Davis VP2 Plus
- Operating System: RPiv4 64bit Linux 12 Bookworm
- Location: Jersey Channel Islands
- Contact:
Re: Virtual Davis VP2 console integration
So having accepted the challenge to produce more generic versions of the Davis VP2 virtual consoles, I came up with the attached versions which hopefully will pass muster.
Of course the Davis Vue versions will need to be done at some point.
Of course the Davis Vue versions will need to be done at some point.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Virtual Davis VP2 console integration
Having difficulty understanding why there is this discussion on the images.
These are the current images as used in the MXUIwebsites.
These are the current images as used in the MXUIwebsites.
You do not have the required permissions to view the files attached to this post.