Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

AndyKF650
Posts: 717
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

Post by AndyKF650 »

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.
You do not have the required permissions to view the files attached to this post.
User avatar
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

Post by beteljuice »

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 :clap:
Image
......................Imagine, what you will KNOW tomorrow !
AndyKF650
Posts: 717
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

Post by AndyKF650 »

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
You do not have the required permissions to view the files attached to this post.
User avatar
HansR
Posts: 5964
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

Post by HansR »

Thanks Andy, I really like it.
May do it some time myself :D

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
User avatar
PaulMy
Posts: 3849
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

Post by PaulMy »

Well done :clap: :clap:

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
Image
User avatar
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

Post by beteljuice »

... but I have cleaned up the VP2 boarder
Yup, that's what I was seeing, but you've you've lost your nice rounded edges. did you just crop the graphic ?

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 ?
Image
......................Imagine, what you will KNOW tomorrow !
AndyKF650
Posts: 717
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

Post by AndyKF650 »

@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.
You do not have the required permissions to view the files attached to this post.
User avatar
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

Post by beteljuice »

:clap: nuff said ...
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
HansR
Posts: 5964
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

Post by HansR »

second that :clap:
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
mcrossley
Posts: 12766
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

Post by mcrossley »

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.
AndyKF650
Posts: 717
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

Post by AndyKF650 »

Doh and I thought I was doing so well. :groan:
User avatar
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

Post by beteljuice »

That would have been the next 'gentle suggestion' (or a PM) - but Mark does like popping bubbles :lol:

That's the problem when you code for others - you become bitter and twisted :twisted:

:? :ugeek: :lol: :lol: :lol:
Image
......................Imagine, what you will KNOW tomorrow !
AndyKF650
Posts: 717
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

Post by AndyKF650 »

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.
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12766
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

Post by mcrossley »

:lol: :clap:
BCJKiwi
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

Post by BCJKiwi »

Having difficulty understanding why there is this discussion on the images.

These are the current images as used in the MXUIwebsites.
vp2_console_lit.png
vp2_console.png
You do not have the required permissions to view the files attached to this post.
Post Reply