Author Topic: TimeTracker for Android  (Read 9238 times)

vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
TimeTracker for Android
« on: February 08, 2016, 09:00:29 AM »
Hi!
I use FengOffice since 2013. And I like timeslots functionality. I use them for billing my projects and for saving common info about steps in tasks.
But use this functionality very uncomfortable if you are out of office. Esspecialy if you are using only community version.
That's why I decide to make android applicaton for work with FengOffice timeslots.

I am not a professional programmer. Please don't kick me if some my solutions are wrong. But the first problem that I have met was underdone API of FengOffice. So I had to write my version of API - vatapi plugin. If you want to test my application you'll need first to instal this plugin (see it in attachment).

Now I start alfa-testing of my application. And I open this topic for questions and errors about it.
https://play.google.com/store/apps/details?id=ru.vat78.fotimetracker

upd:
I posted all sources on GitHub.  https://github.com/vat78/FengOffice_TimeTracker
You may take vatapi plugin there
« Last Edit: August 16, 2016, 05:26:38 AM by vat78 »

steveg

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Re: TimeTracker for Android
« Reply #1 on: February 09, 2016, 01:10:34 PM »
Looks promising.  I can't login from the Android app, but I have not had time to really troubleshoot this issue yet, so likely it's just something I need to do.


vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
Re: TimeTracker for Android
« Reply #2 on: February 10, 2016, 02:49:16 AM »
Check that you have installed plugin "vatapi" on your server.
For checking you should enter in brouser adress:  <your web-server url>/index.php?c=api&m=active_plugin&plugin=vatapi
And you must get "{"plugin_state":1}" as a result

If result is different you need download plugin from attachment of this topic, unpack it to the plugin folder on your server and activate it by web interface (settings -> plugins).
Installing of plugins is described on http://wiki.fengoffice.com/doku.php/plugins

steveg

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Re: TimeTracker for Android
« Reply #3 on: February 10, 2016, 01:36:57 PM »
Ahh - I see what happened.    I installed, but did not activate the plugin!    So, it's attempting to connecting, but the android app just spins and then timesout - goes back to login screen...

Will explore logs later.

vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
Re: TimeTracker for Android
« Reply #4 on: February 11, 2016, 04:34:23 AM »
Is there any message on screen after return to login form?

At first login It makes full load data from web. It includes such reqests:
1. check plugin
<your web-server url>/index.php?c=api&m=active_plugin&plugin=vatapi
must return
{"plugin_state":1}

2. check credentials
<your web-server url>/index.php?c=api&m=login&username=<login>&password=<password>
must return:
{"token":"your token","username":"your login","user_id":,"company":"your company"}

3. load categories (using token from previouse step)
<your web-server url>/index.php?c=vatapi&m=list_members&srv=workspace&auth=<token>
must return a list of your workspaces

4. load tasks
<your web-server url>/index.php?c=vatapi&m=listing&srv=ProjectTasks&args={"status":"0"}&auth=<token>
must return a list of your active tasks

5. load timeslots
<your web-server url>/index.php?c=vatapi&m=listing&srv=Timeslots&auth=<token>
must return a list of your timeslots (may take some time on big database)

May you try this requests in browser? Does they work?
« Last Edit: February 11, 2016, 04:36:19 AM by vat78 »

vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
Re: TimeTracker for Android
« Reply #5 on: February 11, 2016, 07:54:20 AM »
additional comment - application uses https conection by default. If your server doesn't use SSL, you should enter url including "http://" in login form.

steveg

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Re: TimeTracker for Android
« Reply #6 on: February 15, 2016, 11:00:43 AM »
Vat - this works now!  This is a pretty great little app - there are a few tweaks that I would do to make it easier to use for our usage, but I'll think about that and get back to you.

jax@a4group.pl

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: TimeTracker for Android
« Reply #7 on: March 08, 2016, 11:13:34 AM »
Hi.

I'am trying to use your app but I have problem to login via mobile. There is no error only small gray circle without any text.

I have checked plugin and user privileges and it seems OK.

What version of FengOffice your app support. My is't a little old. 2.3.2.


I think your idea is grat.
« Last Edit: March 08, 2016, 11:17:38 AM by jax@a4group.pl »

vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
Re: TimeTracker for Android
« Reply #8 on: March 09, 2016, 05:49:26 AM »
I have tested it on FengOffice v.3.4
Possible this doesn't work with old versions.
You may try to check my API plugin by browser. I described main commands higher in post from 02/11

jax@a4group.pl

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: TimeTracker for Android
« Reply #9 on: March 09, 2016, 05:00:37 PM »
I have checked rest command and it doesn't work.

So I need to update.

Thanks for replay.

biblefusion

  • Freshman
  • *
  • Posts: 15
    • View Profile
Re: TimeTracker for Android
« Reply #10 on: June 22, 2016, 12:34:50 AM »
Hi everyone

I am trying to download the vatapi.zip file attached, but the file is no longer available. Can someone please assist me to get this file?

Thanks

vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
Re: TimeTracker for Android
« Reply #11 on: August 12, 2016, 03:20:56 AM »
Hi everyone

I am trying to download the vatapi.zip file attached, but the file is no longer available. Can someone please assist me to get this file?

Thanks

Hi, biblefusion!
I found that my plugin is not working since FengOffice version 3.4.3. I'll fix and post it here soon...

vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
Re: TimeTracker for Android
« Reply #12 on: August 16, 2016, 06:29:15 AM »
I fixed error of vatapi on FengOffice 3.4.3.
You may found it here: https://github.com/vat78/FengOffice_TimeTracker/tree/master/vatapi

andredp

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: TimeTracker for Android
« Reply #13 on: November 20, 2016, 03:54:18 AM »
Hi Vat

I downloaded your API. Thanks for the great app. Its a fantastic addition to Feng Office.

I have one problem on Feng 3.4.3. When I mark tasks for Completion in the app they just reappear in the list. The comment etc appears in the web interface, but the task is never marked as completed.

vat78

  • Freshman
  • *
  • Posts: 32
    • View Profile
Re: TimeTracker for Android
« Reply #14 on: November 21, 2016, 02:28:25 AM »

I have one problem on Feng 3.4.3. When I mark tasks for Completion in the app they just reappear in the list. The comment etc appears in the web interface, but the task is never marked as completed.

Thanks!
I'll see what the problem is in a week
« Last Edit: November 21, 2016, 04:03:02 AM by vat78 »