Station Deviation settings
- Reinhard
- Advisor

- Posts: 84
- Joined: Fri Aug 25, 2017 9:42 am
- Location: Prägraten am Großvenediger
- Station model: Davis VP2 Pro wireless
- Software: WeatherCat
- Contact:
Station Deviation settings
Is it possible to set the graph view as default view instead the Temp view? Thanks for reading.
- Attachments
-
- Bildschirmfoto 2018-01-03 um 11.51.33.png (80.1 KiB) Viewed 6092 times
- Reinhard
- Advisor

- Posts: 84
- Joined: Fri Aug 25, 2017 9:42 am
- Location: Prägraten am Großvenediger
- Station model: Davis VP2 Pro wireless
- Software: WeatherCat
- Contact:
Re: Station Deviation settings
Lespius,
seems like no help on this one. So here is my own try, maybe you can help me a step further. What I have done so far within stationDeviationBlock.php is:
Set the mticon-graph to Active and copy and paste it to the first position:
Set the stationDeviationDivT to display none:
Removed display none from stationDeviationDivGraph:
And finally done some changes here:
Unfortunately I end up with no graph displayed, but at least with a blank block waiting on a click on the graph button. Anybody out here that can point me the way to display the graph as default?
seems like no help on this one. So here is my own try, maybe you can help me a step further. What I have done so far within stationDeviationBlock.php is:
Set the mticon-graph to Active and copy and paste it to the first position:
Code: Select all
<span class="mticon-graph stationDeviationParameterIcon stationDeviationActive tooltip" data-id="graph" title="<?php echo lang('graph','c')?>"></span>Code: Select all
<div id="stationDeviationDivT" class="stationDeviationDiv" style="display:none">Code: Select all
<div id="stationDeviationDivGraph" style="width:98%;height:300px;margin:0 auto;"></div>Code: Select all
$(".stationDeviationParameterIcon").click(function(){
$(".stationDeviationDiv").hide();
id = $(this).attr("data-id");
$(".stationDeviationParameterIcon").removeClass("stationDeviationActive");
$(this).addClass("stationDeviationActive");
if(id=="T"){
$("#stationDeviationDivGraph").hide();
$("#stationDeviationDivT").show();
$("#stationDeviationDivR").hide();
}
else if(id=="R"){
$("#stationDeviationDivR").show();
$("#stationDeviationDivGraph").hide();
$("#stationDeviationDivT").hide();
}
else if(id=="graph"){
$("#stationDeviationDivGraph").show();
Highcharts.chart('stationDeviationDivGraph', options);
$("#stationDeviationDivT").hide();
$("#stationDeviationDivR").hide();
}
})- Reinhard
- Advisor

- Posts: 84
- Joined: Fri Aug 25, 2017 9:42 am
- Location: Prägraten am Großvenediger
- Station model: Davis VP2 Pro wireless
- Software: WeatherCat
- Contact:
Re: Station Deviation settings
Thank you for giving us the option to make the graph as default. Much appreciated!
