Storm Precip Total

Post Reply
mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Storm Precip Total

Post by mchd17 » Thu Feb 24, 2022 1:59 am

Current precip clears at midnight, would be nice to see a block for storm total. I have no clue on how to do it though. I hate having to add what rain was the night before midnight to total in the morning. Maybe there is way now that i am not aware of.
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Storm Precip Total

Post by davidefa » Thu Feb 24, 2022 8:19 am

What do you mea with 'a block':
- a new block with only 'last storm' activity
- adding this information to an existing one ( ex: the rain block )

rain4.png
rain4.png (34.58 KiB) Viewed 1763 times
Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Storm Precip Total

Post by mchd17 » Thu Feb 24, 2022 12:11 pm

Adding to existing block.

This is how Davis considers a storm....
0.02" of rainfall (0.5 mm) begins a storm event, 24 hours without further accumulation ends a storm event.
Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Storm Precip Total

Post by mchd17 » Thu Feb 24, 2022 1:01 pm

Glad you posted that block, any way to change font size on mobile view and not disturb desktop view.
Screenshot_20220224-065732_Chrome.jpg
Screenshot_20220224-065732_Chrome.jpg (319.61 KiB) Viewed 1754 times
Android, chrome browser. I always have to zoom in, eyes are truly going bad, I'm just hard headed for glasses.
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Storm Precip Total

Post by davidefa » Thu Feb 24, 2022 3:22 pm

Ok for the storm total.
For the mobile page font resize you may try this mod ( I have already been asked to look at it, but untested ):
- copy in the root folder and unzip
- currently it resizes the ultrasmall font ( used by rain block and maybe others too )

If the blocks small font is still too small you can edit homepage/css/styleMobile.php ( it affects only mobile pages )
in the firs lines you have:

Code: Select all

		h1{
			font-size: 18px; 
		}
		h2{
			font-size: 20px;
		}
		@media all and (min-width: 960px) {
			body{
				font-size: 16px; 
			}
		}

		@media all and (max-width: 959px) and (min-width: 600px) {
			body{
				font-size: 16px; 
			}
			 .button{
				 font-size: 14px; 
			}
		}

		@media all and (max-width: 599px) and (min-width: 50px) {
			body{
				font-size: 16px; 
			}
			.button{
				font-size: 14px; 
			}
		}
modifying the first part to change the size of block heading ( for example set to 30px to have a super large heading )

Code: Select all

		h2{
			font-size: 20px;
		}
modifying the subsequent parts to change the size of the block's small text ( for example set to 26px to have a super large 'small font' )

Code: Select all

		@media all and (min-width: 960px) {
			body{
				font-size: 16px; 
			}
		}
You have 3 of these sections each is relative to a different screen size of the mobile device, modify all of them and test the result.
( small and large devices may require different setting, in fact the pixel density is important but this data is unavailable, or at least I don't know how to calculate it. This is only to say that different devices may show different results, this is due to display size/pixel density )
Attachments
mobileResize.zip
(10.86 KiB) Downloaded 38 times
Image

User avatar
WyoDog
Advisor
Advisor
Posts: 67
Joined: Wed Aug 23, 2017 6:39 pm
Location: Powell, WY USA
Station model: Davis Pro2
Software: Weather Display
Contact:

Lite version resize mod

Post by WyoDog » Thu Feb 24, 2022 9:14 pm

Davide
This looks much better and is alot more readable, thank you.

Where is the code for 'Station History'?

The drop down box is barely visible on my device. See attachement.

thanks again

Terry
IMG_8760.PNG
IMG_8760.PNG (505.75 KiB) Viewed 1728 times
Terry

Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Storm Precip Total

Post by mchd17 » Fri Feb 25, 2022 12:53 am

davidefa, mobileResize mod is fanatastic!!

I can read the info now!!
Last edited by mchd17 on Fri Feb 25, 2022 5:21 pm, edited 1 time in total.
Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Storm Precip Total

Post by mchd17 » Fri Feb 25, 2022 10:26 am

As you said, the mod fixed all blocks that had small font.

I can read the NWS forecast without zooming in now. Fantastic!
Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Storm Precip Total

Post by mchd17 » Mon Apr 18, 2022 10:00 pm

My davis console shows last 24 hour rain amount and what day it started. I wonder if i could send that info to MT
Image

Post Reply