1

PHP/Gurtam ActiveX

Topic: PHP/Gurtam ActiveX

Hello,
Is it possible to connect with test account via ActiveX?
How to do that in PHP?
Best regards
Avernet

2

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

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.

Developer
Gurtam
3

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

Do You have any example of connecting via PHP?

4

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

Anyone?

5

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

Probably there will be an example in PHP soon, it needs to be corrected a bit.

Developer
Gurtam
6

PHP/Gurtam ActiveX

(edited by avernet 10/11/2011 02:09:44)

Re: PHP/Gurtam ActiveX

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...

7

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

ActiveX documentation is available here
http://docs.gurtam.com/en/hosting/activex/start
Additionally, new Web API with rich functionality is developing now.

Developer
Gurtam
8

PHP/Gurtam ActiveX

(edited by avernet 10/11/2011 16:07:21)

Re: PHP/Gurtam ActiveX

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?

9

PHP/Gurtam ActiveX

(edited by avernet 11/11/2011 03:15:50)

Re: PHP/Gurtam ActiveX

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?

10

PHP/Gurtam ActiveX

(edited by Tracking 11/11/2011 13:57:38)

Re: PHP/Gurtam ActiveX

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.

С уважением, Станислав Комар
TrackingSoft team.
11

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

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.

At the dark side of telematics...
12

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

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
С уважением, Станислав Комар
TrackingSoft team.
13

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

THANKS!!
This is what I was looking for!!
THANKS A LOT!!

14

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

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?

15

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

Tracking wrote:

Here is an archive containing php class and example.

http://monitoring.tracking.by/wialon_activex_php.zip

Страница не найдена

Страница, к которой Вы пытаетесь получить доступ не найдена.

подпись сломали .. впрочем не удивительно
16

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

Tracking wrote:

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.

Лучше один раз увидеть.... и 100 раз прочитать smile Gurtam Team
http://gurtam.com/ru/docs/user-guide/
http://gurtam.com/ru/docs/manager-guide/
http://gurtam.com/ru/docs/admin-guide/
17

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

kost wrote:

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:

Страница не найдена

Страница, к которой Вы пытаетесь получить доступ не найдена.


Подскажите плиз рабочую ссылку.

18

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

Hi

This link seems to be broken,. Could you point me to the new location of the PHP class files?

Thanks in advance.



Tracking wrote:

Here is an archive containing php class and example.

http://monitoring.tracking.by/wialon_activex_php.zip

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."
19

PHP/Gurtam ActiveX

Re: PHP/Gurtam ActiveX

Hi,

files are posted in this topic

WebServices or connection to database

Developer
Gurtam