Block Current error box uv
-
- 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
How do I do to disable it?
Thanks
Valerio
- MonyMony
- 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
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.
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.
-
- 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
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
I try to see if there are any saved data, but I don't think so.
Thanks for the info
Valerio
-
- 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
the database contains no data (null)
the panel continues to see, some solution?
the panel continues to see, some solution?
-
- 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
nessuno ha idea del problema?
- MonyMony
- 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
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:
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!
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>
-
- 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
perfect, it works great