Тема: PHP/Gurtam ActiveX
Hello,
Is it possible to connect with test account via ActiveX?
How to do that in PHP?
Best regards
Avernet
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
Hello,
Is it possible to connect with test account via ActiveX?
How to do that in PHP?
Best regards
Avernet
Hi, it's possible to retrieve data from Wialon using PHP code.
While testing you can have access only to units from demo login (wialon_test), not from 30-days trial account.
Do You have any example of connecting via PHP?
Probably there will be an example in PHP soon, it needs to be corrected a bit.
Could I see the tutorial in its present form?
Time is very important for me because my company has to buy a GPS system in the near future and it must have the ability to integrate with existing ERP system. Wialon has great GUI but there is no information about integration...
ActiveX documentation is available here
http://docs.gurtam.com/en/hosting/activex/start
Additionally, new Web API with rich functionality is developing now.
This documentation is really poor...
Where I can download dll file which is needed to create COM object in PHP?
And what about PHP servers running on Linux?
I have connected to Wialon to my test account on PHP running on Windows.
But we have PHP server running on Linux and we can't change it to Windows.
How to deal with it?
Here is an archive containing php class and example.
http://monitoring.tracking.by/wialon_activex_php.zip
The following items describe how to use the library:
1. While creating an instance of the class you shouldpass an array with URL parameters (inWialon Hostingversion you don't needthat), user's login and password.
Example:
array = array( 'url' => 'https://activex.gurtam.com',
'login' => 'wialon_test',
'password' => 'test'
);
$test = new WialonConnection($array);
2. Call "connect" function to get a list of units and their parameters.
Example:
$ test = new WialonConnection ($ array);
if (! $ test-> connect ()) / / If unable to get anything, print anerror
{
echo $test->get_last_error();
}
3. get_unit_message function should accept UID (dynamic unit's id)which is linked to the session.
Actual session key is required to bein the SID class parameter.
Example of receiving messages:
$ msgarr = array (
'id' => $ _GET [uid], / / This is Dynamic id
'time_from' => $ _GET [time_from],
'time_to' => $ _GET [time_to] / / Unix date time from. "time_to"can be added optionally
);
if (! $ test-> get_unit_message ($ msgarr))
{
echo $test->get_last_error(); / / If errors are found, display them
die ();
}
More details can be found in example.php file.
So far there was no need to generate reports. If you want to add them,i can help.
avernet, we plan to release Wialon SDK (web api/jscript api, etc) in february 2012. It will have all the possibilities to programmatically control 100% of all features that avaible on GUI now. Just wait three monthes.
Function getting reports from Wialon is completed.
You can view example of using by downloading the archive withupdated library.
http://monitoring.tracking.by/wialon_ac … latest.zip
P.S. php5-curl module is required for the correct work of the library
In debian you can install it in the following way:
sudo apt-get install php5-curl
THANKS!!
This is what I was looking for!!
THANKS A LOT!!
It's great, what about other actions? I need group list and unit group list, please, just tell here what action name/parameters should be used?
Here is an archive containing php class and example.
Страница не найдена
Страница, к которой Вы пытаетесь получить доступ не найдена.
Here is an archive containing php class and example.
http://monitoring.tracking.by/wialon_ac … latest.zip
The following items describe how to use the library:
1. While creating an instance of the class you shouldpass an array with URL parameters (inWialon Hostingversion you don't needthat), user's login and password.
Example:array = array( 'url' => 'https://activex.gurtam.com', 'login' => 'wialon_test', 'password' => 'test' ); $test = new WialonConnection($array);
2. Call "connect" function to get a list of units and their parameters.
Example:$ test = new WialonConnection ($ array); if (! $ test-> connect ()) / / If unable to get anything, print anerror { echo $test->get_last_error(); }
3. get_unit_message function should accept UID (dynamic unit's id)which is linked to the session.
Actual session key is required to bein the SID class parameter.Example of receiving messages:
$ msgarr = array ( 'id' => $ _GET [uid], / / This is Dynamic id 'time_from' => $ _GET [time_from], 'time_to' => $ _GET [time_to] / / Unix date time from. "time_to"can be added optionally ); if (! $ test-> get_unit_message ($ msgarr)) { echo $test->get_last_error(); / / If errors are found, display them die (); }
More details can be found in example.php file.
So far there was no need to generate reports. If you want to add them,i can help.
Tracking пишет:
Here is an archive containing php class and example.http://monitoring.tracking.by/wialon_ac … latest.zip
The following items describe how to use the library:
1. While creating an instance of the class you shouldpass an array with URL parameters (inWialon Hostingversion you don't needthat), user's login and password.
Example:
Страница не найдена
Страница, к которой Вы пытаетесь получить доступ не найдена.
Подскажите плиз рабочую ссылку.
Hi
This link seems to be broken,. Could you point me to the new location of the PHP class files?
Thanks in advance.
Here is an archive containing php class and example.