I've done something similar to what you describe in order to use hubnet
from a web interface (embedded inside another frame).

You need a linux server (so you do not have to share the main display), a
vnc server (Turbo VNC), a proxy server that allows to embed the vnc
connection on http (TurboVNC does the job), an HTML5 vnc client (noVNC),
and some tools to manipulate windows automatically (xdotool).

You launch a virtual X server (without window server, only NetLogo) and
export it via vnc using the vncserver command of TurboVNC

/opt/TurboVNC/bin/vncserver -novnc /usr/share/novnc -geometry 438x310+0+0
-xstartup /usr/local/bin/NetLogo

(I used to launch HebNetClient instead of NetLogo). The geometry is needed
to adapt the window to your application.

Then you can connect to the server via the url provided by TurboVNC, for
instance

http://localhost:5801/vnc.html?host=localhost&port=5901

The problem is that the HubNetClient (and I think also NetLogo) open their
window in a fixed position and not comply with the xwindow
standard-geometry option, but one can use xdotool

xdotool search --name --onlyvisible NetLogo windowmove 0 0
If one uses linux inside a virtualbox one has to export port 5801 to the
external world (and if one has to allow clients from other machines one has
to disable the firewall for these ports and use a ssh tunnel to export the
port to the outside world (if one has access to a public server), or mont
all the stuff to a publicly accessible server.

In this way it is possible to use the desktop version of netlogo and also
the hubnet client from tablets or other android/iphone devices.


Il giorno ven 27 dic 2024 alle ore 05:04 Duvan Otalora <
[email protected]> ha scritto:

> Hello everyone,
>
> I hope this message finds you well.
>
> I am currently working on a web application where I need to integrate
> NetLogo with support for the GIS extension. Unfortunately, the web version
> of NetLogo does not support this extension. I am exploring the possibility
> of running NetLogo Desktop on a server and exposing Netlogo web interface
> to allow for seamless interaction and information flow.
>
> Given that the TeleTortoise project seems to be abandoned, I was wondering
> if anyone could provide guidance or suggestions on how to implement this
> solution.
>
> Thank you in advance for your support and collaboration.
>
> Best regards,
> Héctor Otálora
>
> --
> You received this message because you are subscribed to the Google Groups
> "netlogo-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/netlogo-devel/33f1fe83-514a-45c3-83e7-cf07516ae247n%40googlegroups.com
> <https://groups.google.com/d/msgid/netlogo-devel/33f1fe83-514a-45c3-83e7-cf07516ae247n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

*Franco Bagnoli <https://www.unifi.it/p-doc2-0-0-A-3f2a3d2c362f2c.html>*

Professore Associato

(tel.) +39 0554572336; (cell.) +39 3386586493;



UNIVERSITÀ DEGLI STUDI DI FIRENZE <http://www.unifi.it>

Dipartimento di Fisica e Astronomia <http://www.fisica.unifi.it>

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/netlogo-devel/CAF2wp3uvM0mBsmx3fL85m2%2Ba7Ukp0BYyV1G0kOKKxbS-UcN-zQ%40mail.gmail.com.

Reply via email to