用于实时绘制服务器端数据的选项? [英] Options for real-time plotting of server-side data?

查看:60
本文介绍了用于实时绘制服务器端数据的选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣建立一个网页,其中实时数据可以在网页上实时显示。


For示例:我想显示一些(漂亮的)图表,其中包含一些

数据值与时间的关系,并且图表每秒更新一次,而不是

用户必须执行任何操作点击刷新按钮。从服务器上运行的应用程序可以随时获得
图的数据 - 我可以以任何需要的方式公开它(目前很容易通过

XML-RPC)。


我有很多编程经验,但网络开发很少

经验,我正在努力破译许多网络开发

选项在那里。大量的网页开发选项

现在对我来说有点令人困惑。


我有什么选择?有没有人知道任何现有的包

能否通过标准网络浏览器查看动态绘图?


就语言而言,动态网页开发也是如此

我一直在调查那里有什么,下面是我非常简短而可怕的总结。这是

绝对不是一个巨魔 - 只是试图找出我的选择:


PHP

- 每个人都在使用它...对于动态网页看起来非常好,但是

可能只对动态创建静态网页有好处(就像用户所关注的那样,b $ b)。不确定后者是否属实。

- 似乎是一个很好的图形包(JpGraph),但它似乎只能提供静态图形。

- http://www.aditus.nu/jpgraph /index.php

- 服务器端执行


Perl

- 就功能而言,与PHP相似...没有找到一个

PHP / Perl比较,只是为了能够做我需要的东西。


JavaScript

- 客户端执行

- 不确定这里是否有任何图形功能

- 我可以以某种方式嵌入一个对象并使用Javascript来改变它吗? />
属性?


ActionScript / Flash

- 一般来说,Flash / Macromedia似乎是一个合理的解决方案。 b $ b图形的实时更新

- 此时不清楚ActionScript如何与Flash等连接

- 由于每个开发人员需要1美元,因此Macromedia可能会很昂贵

Studio 8(不是不可克服但是因素)

- 可能是一些免费路线,如MTASC但不完全确定此时

的能力或含义

- http://www.mtasc.org/

CGI

- 死了/老了?

- 可能没有图形


ASP

- 死/旧?

- 重/特定服务器要求?

- 由于某种原因不热衷于这条路线


无论我最终得到什么解决方案,理想情况下应该是占地面积小

以及使用情况服务器资源。我将拥有自己的服务器...

可能是一些Apache风味或其他。


关于如何实现这种实时图形更新的任何建议

基于实时服务器端数据表示赞赏!


建议更合适的新闻组或其他论坛发布此

也赞赏。


谢谢!

Russ

I''m interested in setting up a web page where live data can be
displayed in real-time on the web page.

For example: I would like to display a (nice looking) graph of some
data value versus time and have the graph update every second without
the user having to do anything like hit a refresh button. The data to
plot is readily available from an application running on the server - I
can expose it in whatever way is needed (currently easily available via
XML-RPC).

I''ve got lots of programming experience but very little web development
experience and am struggling to decipher the many web development
options that are out there. The sheer number of web development options
is a bit bewildering to me right now.

What are my options? Does anyone know of any existing packages that
enable dynamic plotting viewable by a standard web browser?

As far as far as languages are concerned for dynamic web development
I''ve been investigating what is out there and below is my extremely
short and terrible summary of what seems to be available. This is
definitely NOT a troll - just trying to figure out my options:

PHP
- everybody''s using it... seems very good for dynamic web pages, but
possibly only good for dynamically creating static web pages (as
far as the user is concerned). Unsure if the latter is true.
- Seems to be a good graphing package available (JpGraph), but it
only seems to be able to provide static graphs.
- http://www.aditus.nu/jpgraph/index.php
- server side execution

Perl
- similar enough to PHP as far as capabilities... not looking for a
PHP/Perl comparison, just loking for what can do what I need.

JavaScript
- client side execution
- Unsure if there are any graphical capabilities at all here
- Can I somehow embed an obect and use Javascript to change it''s
properties?

ActionScript/Flash
- In general it seems that Flash/Macromedia is a logical solution to
real-time updating of graphics
- Unclear at this point how ActionScript connects with Flash et al
- Going Macromedia could be expensive due to $1k per developer for
Studio 8 (not insurmountable but a factor)
- May be some free routes such as MTASC but not entirely sure of the
capability or implications here at this point
- http://www.mtasc.org/

CGI
- dead/old?
- Likely no graphics

ASP
- dead/old?
- heavy/specific server requirements?
- not keen on this route for some reason

Whatever solution I end up with should ideally be small in footprint
and also in usage of server resources. I will have my own server...
likely some Apache flavor or other.

Any suggestions on how to achieve this real-time graphics updating
based on live server-side data is appreciated!

Suggestions on a more appropriate newsgroup or other forum to post this
to are also appreciated.

Thanks!
Russ

推荐答案

1k

Studio 8(不是不可克服但是因素)

- 可能是一些免费路线,如MTASC但不完全确定

此处的能力或含义

- http:// www.mtasc.org/


CGI

- 死/老?

- 可能没有图形


ASP

- 死/旧?

- 重/特定服务器要求?

- 不热衷因为某种原因在这条路线上


无论我最终得到什么解决方案,理想情况下都应该占用足够小的空间和服务器资源。我将拥有自己的服务器...

可能是一些Apache风味或其他。


关于如何实现这种实时图形更新的任何建议

基于实时服务器端数据表示赞赏!


建议更合适的新闻组或其他论坛发布此

也赞赏。


谢谢!

Russ

1k per developer for
Studio 8 (not insurmountable but a factor)
- May be some free routes such as MTASC but not entirely sure of the
capability or implications here at this point
- http://www.mtasc.org/

CGI
- dead/old?
- Likely no graphics

ASP
- dead/old?
- heavy/specific server requirements?
- not keen on this route for some reason

Whatever solution I end up with should ideally be small in footprint
and also in usage of server resources. I will have my own server...
likely some Apache flavor or other.

Any suggestions on how to achieve this real-time graphics updating
based on live server-side data is appreciated!

Suggestions on a more appropriate newsgroup or other forum to post this
to are also appreciated.

Thanks!
Russ


Russ< ru * ***********@gmail.com>写道:
Russ <ru************@gmail.com> wrote:
例如:我想显示一些(漂亮的)数据值与时间的关系图,并让图表每秒更新一次,而不是用户必须点击刷新按钮。可以从服务器上运行的应用程序中随时获得要绘制的数据 - 我可以以任何需要的方式公开它(目前可以通过XML-RPC轻松获得)。

- 每个人都在使用它......似乎非常适合动态网页,但
可能只适用于动态创建静态网页(就用户而言)。不确定后者是否属实。
- 似乎是一个很好的图形包(JpGraph),但它似乎只能提供静态图形。
- http://www.aditus.nu/jpgraph/index.php
- 服务器端执行
For example: I would like to display a (nice looking) graph of some
data value versus time and have the graph update every second without
the user having to do anything like hit a refresh button. The data to
plot is readily available from an application running on the server - I
can expose it in whatever way is needed (currently easily available via
XML-RPC).

- everybody''s using it... seems very good for dynamic web pages, but
possibly only good for dynamically creating static web pages (as
far as the user is concerned). Unsure if the latter is true.
- Seems to be a good graphing package available (JpGraph), but it
only seems to be able to provide static graphs.
- http://www.aditus.nu/jpgraph/index.php
- server side execution




我上周第一次使用了jpgraph。在

会议期间下载它并且能够在稍后的同一会议中启动并运行应用程序 - 它非常简单易用且文档已经

丰富的例子。


我不确定你对静态图的意思 - 它不会生成

动画图形,但您可以随意重新生成它们并使用

刷新或其他方法在客户端浏览器中更新它。 />

米格尔

-

命中之路!来自五大洲38个国家的照片: http://travel.u.nu
最新照片:缅甸;香港;澳门;阿姆斯特丹;大峡谷;安曼



I just used jpgraph for the first time last week. Downloaded it during a
meeting and was able to have an application up and running later in the same
meeting - it was very straightforward to use and the documentation has
copious examples.

I''m not sure what you mean about "static graphs" - it will not produce
animated graphs, but you can regenerate them as often as you please and use
refreshes or other methods to keep it updating in client browsers.

miguel
--
Hit The Road! Photos from 38 countries on 5 continents: http://travel.u.nu
Latest photos: Burma; Hong Kong; Macau; Amsterdam; Grand Canyon; Amman


Russ写道:
Russ wrote:
我有兴趣建立一个实时数据可以
在网页上实时显示。

例如:我想显示一些(漂亮的)数据值与时间的图表,并让图表每秒更新一次没有
用户必须做任何事情,如点击刷新按钮。可以从服务器上运行的应用程序中随时获得要绘制的数据 - 我可以以任何需要的方式公开它(目前可以通过XML-RPC轻松获得)。

[snip]

我的选择是什么?有没有人知道任何可以通过标准网络浏览器查看动态绘图的现有软件包?

[snip]

PHP
Perl CGI
ASP


这些只是用于服务器端编程的不同语言/环境

(CGI是一种调用任何程序编写的程序的协议编程语言

来自网络服务器)。每个人都可能有办法从一些

数据源中提取数据并创建一个漂亮的图表。但是如果没有对

的进一步支持,客户端所能做的就是构建一个自动刷新的页面,其中嵌入了动态创建的动态图像。这可以消耗相当多的带宽

(每次刷新都需要传输整个图像)。


即使有特殊的客户端支持,你也可以我需要一些服务器端

编程来将数据传递给客户端(如果你说,你已经可以通过XML-RPC公开它了,那么这部分已经是完成)。

JavaScript


使用XML-RPC应该不是主要问题(关键字AJAX ...)

最新的Mozilla / FireFox版本(仅AFAIK未发布的CVS版本)和

Safari(我相信......)支持新的CANVAS元素,可用于绘制

任意使用JS的图形。但这是相当新的和实验性的......

ActionScript / Flash
- 一般来说,Flash / Macromedia似乎是一个逻辑解决方案来实现图形的实时更新br /> - 目前还不清楚ActionScript如何与Flash等连接
I''m interested in setting up a web page where live data can be
displayed in real-time on the web page.

For example: I would like to display a (nice looking) graph of some
data value versus time and have the graph update every second without
the user having to do anything like hit a refresh button. The data to
plot is readily available from an application running on the server - I
can expose it in whatever way is needed (currently easily available via
XML-RPC).

[snip]

What are my options? Does anyone know of any existing packages that
enable dynamic plotting viewable by a standard web browser?

[snip]

PHP
Perl
CGI
ASP
These are just different languages/environments for server-side programming
(CGI is a protocol to call programs written in any programming languages
from the webserver). Everyone probably has a way to pull data from some
datasource and create a pretty graph of it. But without further support on
the client-side all you can do is to build a self-refreshing page with a
dynamically created image embedded. This can consume pretty much bandwidth
(the whole image has to be transferred on each refresh).

Even with special client-side support, you''ll need some server-side
programming to deliver the data to the clients (if you say, you can already
expose it via XML-RPC, then this part is already done).
JavaScript
Using XML-RPC shouldn''t be a major problem (keyword AJAX...)
Latest Mozilla/FireFox versions (AFAIK only unreleased CVS versions) and
Safari (I believe...) support a new CANVAS element that can be used to draw
arbitrary graphics using JS. But this is fairly new and experimental...
ActionScript/Flash
- In general it seems that Flash/Macromedia is a logical solution to
real-time updating of graphics
- Unclear at this point how ActionScript connects with Flash et al




XML-RPC支持,您可以使用它从服务器提取数据。


您也可以使用Java applet绘制图形和从

服务器中提取数据。


我的(非常个人化)建议:我已经做了足够的Flash / ActionScript

编程更喜欢Java解决方案,虽然我没有用于

年的Java ...;)


-

Benjamin Niemann

电子邮件:pink at odahoda dot de

WWW: http://www.odahoda.de/


这篇关于用于实时绘制服务器端数据的选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆