Re: FlatZ Frontpage
Posted: Wednesday 30 September 2015 11:42
You have to change the URL's it in the settings.js in the subfolder js
Code: Select all
<script>
if ($.Traffic)
{document.write('<li class="active" ><a class="stay" href="traffic.html"><i class="icon-th icon-white"></i> Traffic</a></li>');}
</script>
Code: Select all
<!-- DONUT CHART -->
<div class="col-sm-3 col-lg-3" style="width:75%;float: right">
<div class="dash-unit " style="height:610px;overflow-y:scroll">
<dtitle>Traffic</dtitle>
<hr>
<!--<div class="info-user" style="float:right;padding-right:20px;">
<span aria-hidden="true" class="li_news fs2"></span>
</div>-->
<p id="map" style="width:100%; height:100%"></p>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" charset="utf-8">
var address = 'Nantes, FR';
var map = new google.maps.Map(document.getElementById('map'), {
mapTypeId: google.maps.MapTypeId.TERRAIN,
zoom: 12
});
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(map);
var geocoder = new google.maps.Geocoder();
geocoder.geocode({
'address': address
},
function(results, status) {
if(status == google.maps.GeocoderStatus.OK) {
new google.maps.Marker({
position: results[0].geometry.location,
map: map
});
map.setCenter(results[0].geometry.location);
}
else {
// Google couldn't geocode this request. Handle appropriately.
}
});
</script>
Looks goodjec_44 wrote:See the result
Code: Select all
$.traffic = "Paris, France";
$.zoom = "15";
Thanks for the help.jec_44 wrote:but i 'don't how to do and how to use it on traffic.html
nobody??SweetPants wrote:Hi,
Where do I set the screen size?
I have an old Nexus 7 tablet but can't get it to fit this screen size
You could try to make your own mainNexus7.cssSweetPants wrote:Where do I set the screen size?
I have an old Nexus 7 tablet but can't get it to fit this screen size
Code: Select all
.container {
width: 1170px;
}
Change one of the camera URL's with this link:mikeoo wrote:Very nice template and started today with it and have 2 questions and input.
1. How to combine Temp en Humidity in the frontpage. I have some Cresta Sensors the measure both.
2. I cannot find any weather info in settings.js
Maybe nice to add buienrader info (http://gratisweerdata.buienradar.nl/#Buienradar )
Indeed good one, but it's nice to get all weather things on it's own page. But for now indeed a good tip tnx.Brutus wrote:Change one of the camera URL's with this link:mikeoo wrote:Very nice template and started today with it and have 2 questions and input.
1. How to combine Temp en Humidity in the frontpage. I have some Cresta Sensors the measure both.
2. I cannot find any weather info in settings.js
Maybe nice to add buienrader info (http://gratisweerdata.buienradar.nl/#Buienradar )
http://api.buienradar.nl/image/1.0/Rada ... 6&h=256&t=
Greetings
Just replace the webcam url in Settins.js with your stream url.Ierlandfan wrote:I love the design!
Do you know if it's possible to add mjpeg streams to the camera page?