Block Current error box uv

Post Reply
Tigro11
Observer
Observer
Posts: 31
Joined: Fri Nov 08, 2019 8:11 pm
Location: Italy
Station model: davis 6152
Software: weatherLink - cumulus mx
Contact:

Block Current error box uv

Post by Tigro11 » Sat Nov 23, 2019 2:34 pm

errore uv.png
errore uv.png (100.29 KiB) Viewed 2972 times
I disabled the UV sensor, but on the panel I continue to view.
How do I do to disable it?

Thanks

Valerio

User avatar
MonyMony
Forecaster
Forecaster
Posts: 180
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Re: Block Current error box uv

Post by MonyMony » Wed Nov 27, 2019 2:24 am

I believe the block is detecting UV data coming from your API upload file from whatever software you might be using. That would likely be the easiest fix if you can prevent any data for UV from getting uploaded to your site.

If you cannot stop the UV data, you might need to edit the currentBlock.php code (if someone else knows better please correct me) to remove this section.
Image

Tigro11
Observer
Observer
Posts: 31
Joined: Fri Nov 08, 2019 8:11 pm
Location: Italy
Station model: davis 6152
Software: weatherLink - cumulus mx
Contact:

Re: Block Current error box uv

Post by Tigro11 » Mon Dec 02, 2019 6:22 pm

I load the data from the realtime.txt file of the wifilogger davis.
I try to see if there are any saved data, but I don't think so.
Thanks for the info

Valerio

Tigro11
Observer
Observer
Posts: 31
Joined: Fri Nov 08, 2019 8:11 pm
Location: Italy
Station model: davis 6152
Software: weatherLink - cumulus mx
Contact:

Re: Block Current error box uv

Post by Tigro11 » Thu Dec 05, 2019 6:11 pm

the database contains no data (null)
the panel continues to see, some solution?

Tigro11
Observer
Observer
Posts: 31
Joined: Fri Nov 08, 2019 8:11 pm
Location: Italy
Station model: davis 6152
Software: weatherLink - cumulus mx
Contact:

Re: Block Current error box uv

Post by Tigro11 » Thu Dec 12, 2019 5:38 pm

nessuno ha idea del problema?

User avatar
MonyMony
Forecaster
Forecaster
Posts: 180
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Re: Block Current error box uv

Post by MonyMony » Tue Dec 17, 2019 2:38 am

Based off of what you are seeing, you might need to just manually remove this from your currentBlock.php code. I have not tested this but I think you need to look at the section that starts with:

if(!$solarSensor && isset($apiData['UV'])){

This should be around line 726. From my understanding, your page thinks UV data exists but Solar Data does not so this should be the section. Following that logic, look around line 961 within this section for this:

Code: Select all

<div style="height:10px"></div>
<div id="currentDetailsDivUV" class="currentDetailsDivClass">
	<div class="currentDetailsDivInner">
		<span class="mticon-uv currentDetailsHeadingIcon"></span><br>
		<span class="currentDetailsHeading">UV</span>
		<table style="width:98%;margin:0 auto">
			<tr>
				<td class="currentDetailsParameter">
					UV
				</td>
				<td class="currentDetailsValue">
					<span id="currentDetailsValueUV"></span>
				</td>
			</tr>
			<tr>
				<td class="currentDetailsParameter">
					<?php echo lang('maximumAbbr','c')." - ".lang('today','l')?>
				</td>
				<td class="currentDetailsValue">
					<span id="currentDetailsValueUVMax"></span>
				</td>
			</tr>
		</table>
	</div>
</div>
This should the code that displays the UV box you want to make go away. Again I have not tested this but I think you can just remove all of the lines I show above from line 961 thru 985. Of course make sure to have a good backup file in case things go badly. Hope this is helpful and good luck!
Image

Tigro11
Observer
Observer
Posts: 31
Joined: Fri Nov 08, 2019 8:11 pm
Location: Italy
Station model: davis 6152
Software: weatherLink - cumulus mx
Contact:

Re: Block Current error box uv

Post by Tigro11 » Fri Dec 20, 2019 5:43 pm

perfect, it works great :D :D

Post Reply