PHP script to capture data from a php array and turn it into a graph

完了済み 投稿 5年前 着払い
完了済み 着払い

I have an array that is captured from a html table, the array is shown below:

Array

(

[0] => Thread ID10s60s15mH/s

[1] => 0 436.8 434.9 434.9

[2] => 1 439.3 435.0 434.8

[3] => 2 447.2 445.3 444.6

[4] => 3 445.4 445.4 444.5

[5] => 4 1048.8 1045.1 1044.8

[6] => 5 1039.8 1045.5 1044.8

[7] => 6 451.7 444.1 444.0

[8] => 7 441.0 444.1 444.0

[9] => 8 444.1 444.4 443.7

[10] => 9 439.8 444.1 443.8

[11] => 10 444.5 445.1 444.3

[12] => 11 445.6 445.1 444.3

[13] => 12 178.2 180.4 180.7

[14] => 13 203.9 204.2 204.4

[15] => 14 137.5 137.8 137.9

[16] => 15 132.9 133.0 133.1

[17] => Totals: 7176.4 7173.8 7168.5

[18] => Highest: 7203.7

)

I need to capture the data from this array which will be refreshed every 60 seconds and write it to a file on the server and then turn that data into graph from the file. I wont be using a database

Explanation of the array is

[1] => 0 436.8 434.9 434.9

0 is the device number

436.8 is current speed

434.9 is captured 60 seconds ago

434.9 is captured 15 minutes ago

[17] => Totals: 7176.4 7173.8 7168.5

Totals are calculated from current, 60 second & 15 minutes

[18] => Highest: 7203.7

Highest is obviously the highest

There can an be unlimited number of devices depending on the table

I would like the graph to show data from each device individually and also show data on a separate graph for totals and update every 60 seconds along with the file

I would also like to name the devices manually using a config file example

$device0 = 'mydevice';

I also need a button to clear the data of the file to start again, and error checking in case the array cannot be obtained.

JavaScript PHP ソフトウェアアーキテクチャ

プロジェクトID: #17107946

プロジェクトについて

10個の提案 リモートプロジェクト アクティブ 5年前

アワード:

ipistis

Hello, I can do this for you, do you have sample graph or we can use any one which I am using in other projects?

$50 AUD 1日以内
(248レビュー)
7.4

10人のフリーランサーが、平均$127 で、この仕事に入札しています。

anatolygenay123

Hello. I am full-stack developer. I can help you perfectly. I'd like to discuss about your project more detail. Thanks

$500 AUD 3日以内
(75件のレビュー)
7.1
fazalkareem95

I will write script for your data to show on chart according to your requirement. Lets discuss it and start it. Your sincerely, Fazal Kareem

$45 AUD 1日以内
(16件のレビュー)
4.3
khairulhasanmd

I can help you with creating the graph. I am thinking it would be better using highcharts. highcharts are also interactive.

$55 AUD 3日以内
(2件のレビュー)
3.3
sylvesteramaechi

I am A Backend Programmer with skill in PHP and Mysql.I have working experience with php for 2 years and will like to work with you.

$50 AUD 1日以内
(0件のレビュー)
0.0
Franklin102

give me an opportunity to work with you this one time and you will always call me whenever you have other projects trust me..

$88 AUD 3日以内
(0件のレビュー)
0.0