You are not logged in.

#1 2017-03-24 13:30:16

ionel.ciobanuc
Member
Registered: 2016-10-24
Posts: 21
Website

Simple web page synchronized with LCD.

Simple web page synchronized with LCD.

You can include a black web page that contains only an image synchronized with LCD
I tried but fail exposure times.
My example:

<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <style>
	 html,body{
		margin:0;
		height:100%;
		overflow:hidden;
	}
	img{
		min-height:100%;
		min-width:100%;
		height:auto;
		width:auto;
		position:absolute;
		top:-100%; bottom:-100%;
		left:-100%; right:-100%;
		margin:auto;
	}
    </style>

<script type="text/javascript" src="/static/boot3/js/jquery.min.js"> </script>
<script>
var myVar;
var last_l=0;
var last_ll=0;
function incep(){
	myVar = setTimeout(function(){ incep(); }, 250);
	$(function() {
	$.ajax({ 
			type: 'GET', 
			url: '/status', 
			data: { get_param: 'value' }, 
			dataType: 'json',
			success: function (data) {
				if(data.LayerID==data.ResumeID && last_ll!=data.LayerID){
				 last_ll=data.LayerID;
					document.getElementById("ecran").src="/static/plates/"+data.PlateID+ "/"+data.ResumeID+".png";
				};
				if(last_l!=data.ResumeID){
					last_l=data.ResumeID;
					//opresc imaginea
					document.getElementById("ecran").src="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=";
				};
			}
		});
	});
}
</script>
</head>

<body bgcolor="black"  onload="incep()">
<img alt="Not connect" src="" id="ecran"/>
</body>
</html>

Offline

#2 2017-03-24 13:55:46

Shahin
Administrator
Registered: 2016-02-17
Posts: 1,834

Re: Simple web page synchronized with LCD.

How it useful?

Offline

#3 2017-03-24 14:19:45

ionel.ciobanuc
Member
Registered: 2016-10-24
Posts: 21
Website

Re: Simple web page synchronized with LCD.

I can use a smartphone or tablet, where to open a full screen browser, for 3d printer without HDMI connection (connection through the network).
Ideal as an application on Android, but not found. Maybe nanodlp for android.
Or you can tell me how can I get start time exposure.
I want to do a test.

Thank you very much.

Offline

#4 2017-03-24 15:07:23

Shahin
Administrator
Registered: 2016-02-17
Posts: 1,834

Re: Simple web page synchronized with LCD.

Update nanodlp beta and Try this one.
If it works, will could work on proper solution.

<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <style>
	html,body{
		margin:0;
		height:100%;
		overflow:hidden;
		background-color: black;
	}
	#box,img{
		height:100%;
		width:100%;
		position:absolute;
		top:0; bottom:0;
		left:0; right:0;
		margin:0;
		padding:0;
	}
    </style>
	<script type="text/javascript" src="/static/boot3/js/jquery.min.js"> </script>
	<script>
	var last_l=false;
	function incep(){
		$.ajax({
			type: 'GET',
			url: '/status',
			data: { get_param: 'value' },
			dataType: 'json',
			success: function (data) {
				if (last_l!==data.Projecting){
					if (data.Projecting){
						$("#box").html('<img alt="Not connect" src="/static/plates/'+data.PlateID+ '/'+data.LayerID+'.png" id="ecran">');
					} else {
						$("#box").html("");
					}
				}
				last_l=data.Projecting;
			}
		});
	}
	$(function(){
		setInterval(incep,100);
	});
	</script>
</head>
<body>
	<div id="box"></div>
</body>
</html>

Offline

#5 2017-03-24 20:06:09

ionel.ciobanuc
Member
Registered: 2016-10-24
Posts: 21
Website

Re: Simple web page synchronized with LCD.

It works. Thank you.
In the next days I do a test with resin.
I must seek how to hide the address bar.
If this goes well, we can optimize the time and traffic.

Offline

#6 2017-03-24 20:21:58

Shahin
Administrator
Registered: 2016-02-17
Posts: 1,834

Re: Simple web page synchronized with LCD.

Try add this line.
document.body.requestFullscreen();

Or better add this
<meta name="mobile-web-app-capable" content="yes">

and make shortcut of url on home page of your mobile device.

Offline

#7 2017-03-24 20:30:56

ionel.ciobanuc
Member
Registered: 2016-10-24
Posts: 21
Website

Re: Simple web page synchronized with LCD.

I tried. Do not hide.
Not bothering  for tests.

Offline

#8 2017-03-25 18:00:19

ionel.ciobanuc
Member
Registered: 2016-10-24
Posts: 21
Website

Re: Simple web page synchronized with LCD.

I succeeded.
We modified "height: 100%; the" height: 104%; "
Thank you.

Offline

#9 2017-12-15 03:42:30

SilverMax
Member
Registered: 2017-12-15
Posts: 1

Re: Simple web page synchronized with LCD.

hi members
I have a question, how can we print resin at pcb using this lcd sla printer, my meaning is how we can change gerber or pcb file into 3D modle for nano dlp software.

Offline

Board footer

Powered by FluxBB