Eric,

 Linuxcncrsh interface looks interesting, and it may have some different 
trade-offs.  Let me try to convince you a web server is a better way to go ;-)  
If you don't agree, that's of course fine too... I'm also going to take a 
closer look at Linuxcncrsh to see if maybe I went down the wrong path.
 
 Here is my thinking for why I used HTML: My intent was to use the most 
common-denominator interface I could possibly think of, which is what led me to 
HTML.  Just about any platform and programming language has support for 
connecting to a web page, and you can use a web browser as a test client.  I 
was concerned about speed, but I am able to get updates every tenth of a second 
on the DRO, so that seems reasonable to me, and no network traffic on items 
that aren't changing (using a long-polling approach).  Right now, the client 
I'm using is just a web browser on any networked computer.

 The nice thing about Python is there is a Python API already in linuxcnc, and 
also a back-plot module from axis, that gremlin uses under the hood.  I have 
been able to have the web server load a g-code file, process it through the 
backplot code, and write all the results out in a X3D format (XML based 3d 
format) that FireFox and some other browsers can render inline.  Not sure if 
this will be the best (most efficient) method in the long run, but it shows 
that it can be done.

I'm still new to the web-server-programming stuff.  I'm a bit unsure how to 
properly add security to this paradigm.  Linuxcncrsh has a password option.  
I'm not yet sure how to add this to the Tornado web server, but I'm hopeful 
there is some simple way to do this.  

Ultimately, I think it would be wonderful if there was a web based status page 
for linuxcnc, and also a web based configuration utility that let you set some 
or all common INI file settings, and then force a linuxcnc restart.  Imagine a 
linuxcnc based controller that you set up as easily as a modern network router 
(many of which are running linux as well).  I think that would go a long way to 
improving the user experience.  I'm working on it...

Cheers,

-Peter


--
Peter J. Jensen


________________________________
 From: Eric H. Johnson <[email protected]>
To: 'Peter Jensen' <[email protected]>; 'EMC developers' 
<[email protected]> 
Sent: Friday, November 16, 2012 3:05 PM
Subject: RE: [Emc-developers] Introduce myself, and get some feedback on 
LinuxCNC development plans
 
Peter,

I just finished adding the same idea to whiteboard
(http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Lncnc_3_Idea_Whiteboard). I have
started on one as well based on python, glade and the linuxcncrsh interface
(http://wiki.linuxcnc.org/cgi-bin/wiki.pl?LinuxCNCrsh).

This is the first time I have used glade and I am not much past the novice
stage in python, so my first cut was a bit too ambitious. Originally it was
to be very Axis like, but I am now retrenching to a more touch based
interface, eliminating the live plot / back plot / opengl part and making it
more like tkEmc, then hope to add that back in at a later date.

Regards,
Eric
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to