我想要一个嵌入式网络服务器还是什么?
所以,有人希望我为他破解一些代码。他有一个 42 英寸 TFT 显示屏,他将在上面显示一些应用程序/业务相关的数据。
但是,75% 的屏幕空间未使用,因此他想用“电视/广告/闪光灯/你知道的那种”来填充它的东西......基于网络......”。
有什么建议吗?我想要一个嵌入式网络服务器吗?如果是的话,哪个?(他想要免费和开源,或者尽可能便宜)我是否将其显示在 )但我不想要/不需要菜单、地址栏、工具栏等 - 它应该是全屏的(这是否意味着“信息亭模式”?)。
浏览器?(呃!可能,伙计 不清楚,但我希望你能猜出他的意思(他不是很技术),谢谢。
So, someone want me to hack some code for him. He has a 42" TFT display on which he will display some application/business related data.
However, 75% of the screen real estate is unused, so he wants to fill it with "TV/adverts/flash/you know, that kind of thing... web based....".
Any advice? Do I want an embedded web-server? If so, which? (he wants free & open source, or as cheap as possible) Do I display it in a browser? (duh! probably, dude) But I don't want/need a menu, address bar, toolbar, etc - it should be full screen (does that mean "kiosk mode"?).
Sorry, folks, the requirements are not clear, but I hope that you can guess what he probably means (he is not very techie). How should I proceed with this? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我正在研究这样一个显示系统,尽管我们的系统已经相当成熟,支持多屏幕、多用户等等。
一些提示:
我们使用带有“全屏”扩展的 Firefox (https: //addons.mozilla.org/fr/firefox/addon/1568),允许不显示任何菜单栏、状态栏等,并在该模式下自动启动 Firefox。然后,您只需要一个启动脚本来启动 Firefox,并在计算机启动时指定正确的 URL。
我们的系统是基于网络的,但作为一个多屏系统,它有一台服务器和几台通过 HTTP 连接到服务器的客户端 PC,每台客户端 PC 通过 VGA 电缆连接到一个 TFT 屏幕。如果您只有一个屏幕,则可以将浏览器和 Web 服务器安装在同一台计算机上。唯一的限制:我们使用从服务器到客户端的 LAN 唤醒来每天早上自动启动显示。这对于单机系统来说是不可能的!
给你一些想法,显示机制基本上是这样工作的:首先,浏览器加载一个包含大量 JavaScript 的 html 页面(JavaScript 构成了我们所说的“客户端应用程序”。)这个客户端应用程序是使用Prototype.js 库(只是一个指示,还有很多其他可能性)。然后客户端应用程序向服务器请求要显示的内容。该内容作为表示对象播放列表(图像、视频、文本新闻等)的 JSON 流传递。客户端应用程序按顺序显示播放列表中的每个对象。对象会在特定的时间内保持显示(代码中存在大量 setTimeout)。过渡使用 Scriptaculous 库中的效果(淡入、淡出...)。当所有对象都已显示后,客户端再次向服务器请求播放列表(如果已进行更改),并且该过程再次开始。实际上,页面永远不会完全重新加载。
然后我们还有一个多内容模式,屏幕被分成不同的区域,并单独更新。
对于一台机器和一个相对静态的系统(即没有 GUI 来添加内容),也许您可以在通过 file:// 访问的本地站点中实现该机制...系统的整个“智能”将在 javascript 中。这将为您节省服务器部分。我看到一个可能的限制:我认为 Flash 无法播放客户端计算机上的视频文件(安全限制),因此如果您打算使用 Flash 视频,请检查此项。
嗯,希望这几个想法能帮到你。祝你好运 !
I am working on such a display system, although ours already quite evolved, with support for multi-screen, multi-user and a lot more.
A few hints :
We use firefox with the "full fullscreen" extensiton (https://addons.mozilla.org/fr/firefox/addon/1568) that allows to not display any menu bar, status bar etc. and to automatically start Firefox in that mode. Then you just need a startup script to launch firefox specifying the right URL when the machine is started.
Our system is web based, but as a multiscreen system it has one server and several client PCs connected to the server via HTTP, and each one to a TFT screen via VGA cables. If you have only one screen you could install the browser and the web server on the same machine. Only restriction : we use wake-on-lan from the server to the clients to automatically start the display every morning. This will not be possible with a single machine system !
To give you some ideas, the display mechanism basically works like that : first, the browser loads a html page with lots of javascript (that javascript constitutes what we will call the "client application".) This client application is written using the Prototype.js library (just an indication, there are many other possibilities). Then the client application asks the server for the content to be displayed. That content is passed as a JSON stream representing a playlist of objects (images, videos, text news, etc.). The client app displays each object in the playlist sequentially. The objects stay displayed for a specific duration (lots of setTimeout in the code). The transitions use effects from the Scriptaculous library (fade-in, fade-out...). When all objects have been shown, the client asks the server again for the playlist (in case changes have been made), and the process starts again. There is actually never a full reload of the page.
Then we also have a multi-content mode, where the screen is separated in various zones that are updated separately.
For one machine and a realtively static system (i.e. no GUI to add content), maybe you could implement that mechanism in a local site accessed via file://... The whole "intelligence" of the system would be in the javascript. That would save you the server part. I see one possible restriction : I think flash can't play video files from the client's machine (security restriction) so check this if you plan to use flash videos.
Well, I hope these few ideas can help you. Good luck !
买一个
他们提供了 VESA 安装支架,我想如果您使用的屏幕支持的话。
全屏 Firefox 将是一种选择。
更灵活的选择是使用 webkit 小部件以您选择的语言编写的全屏 QT 应用程序进行显示,这可能会使 Flash 内容变得更加困难。
至于内容,我会在合适的电脑上安装一个 LAMP 设置。使用您想要的任何提要构建网页,然后仅显示网页,即 http://localhost
或者,您可以托管“web标准 Web 托管服务器上的显示部分”,并在单独的 QT 小部件中显示 RS-422 上传入的数据。
Get one these
They offer a VESA mount for it I think if the screen your using supports that.
Full screen firefox would be one option.
A more flexible option would be a full screen QT app written in the language of your choice using the webkit widget for display, this would likely make flash content more difficult.
As for the content, i would put a LAMP setup on the fit pc. Build the web page using whatever feeds you want and just display the web page aka http://localhost
Alternatively you could host the "web parts" of the display on a standard web hosting server and display the data coming in on RS-422 in a separate QT widget.