Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some questions #2

Open
jartantupjar opened this issue Jun 21, 2016 · 13 comments
Open

Some questions #2

jartantupjar opened this issue Jun 21, 2016 · 13 comments

Comments

@jartantupjar
Copy link

Hello, I have some questions that I have been having trouble with:

If I were to make the user add a picture to the current default image of a job/field would it still update in the trello sync?
image

Im also currently thinking of a way to add a farmer version of the current app as i need to have the app for 2 entities; one being the district head and another for the farmer and so i would need to have the farmer see only one part(operation) while the head would see all operations. What are the changes i would need to do to make the sync work?
Another critical thing is that I would require the main remote db to be in a web server which can be accessed and is administrated by PC Web users so will i still be able to use trello?

Thank you and sorry for all the trouble!!

@aultac
Copy link

aultac commented Jun 23, 2016

@jartantupjar,

You'd have to update the trello sync app to upload the image as an attachment to a trello card as well.

We did not target a system which needs permissions beyond those offered inherently by Trello. Your simplest bet is to figure out a way to split up your operations among different boards in Trello, and share all the boards with the administrator but only share particular boards with the farmer. You'd need to tweak the app to allow the district head to see multiple boards worth of data merged together.

The "main remote db" is unnecessary: Trello is the main remote db. Complete with a handy admin system for editing! :). If you intend to use a different database, you'd need to write the code to sync with that database yourself. Having done this several times now, I'd recommend PouchDB on the client syncing back to a CouchDB server if you want to re-architect the app. Personally, I'd stick with Trello unless you have an extremely compelling reason not to: it's free, it's reliable and always-on, it has an authenticated API, it's easy to use.....

Aaron

On Jun 21, 2016, at 1:22 PM, jartantupjar notifications@github.com wrote:

Hello, I have some questions that I have been having trouble with:

If I were to make the user add a picture to the current default image of a job/field would it still update in the trello sync?
https://cloud.githubusercontent.com/assets/19889070/16238807/841061da-3814-11e6-8200-1ce1415692d9.png
Im also currently thinking of a way to add a farmer version of the current app as i need to have the app for 2 entities; one being the district head and another for the farmer and so i would need to have the farmer see only one part(operation) while the head would see all operations. What are the changes i would need to do to make the sync work?
Another critical thing is that I would require the main remote db to be in a web server which can be accessed and is administrated by PC Web users so will i still be able to use trello?

Thank you and sorry for all the trouble!!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #2, or mute the thread https://github.com/notifications/unsubscribe/ADSiULX23tMYTLuha30r9eu2_646_chHks5qOB3VgaJpZM4I6-iX.

@jartantupjar
Copy link
Author

Thank you for answering me, I really really appreciate it. About my progress, I have first removed the trello db as I dont have experience in using it and I was able to make a local wifi(mobile-pc) sync work(for the moment). I added some stuff I was required and I changed and deleted the TableOperation to use Tableworkers instead. I guess my next and probably most challenging part I will be doing is having this main drawn polygon which would signify(total field|uneditable) and then later on have a person create job polygons(started|done) that cannot surpass the boundaries of that main polygon. In relation to that I noticed that in the ATKPointClusterer Class the ATKLib Module has a distanceBetween method and so would i need to make this method work or is there an easier way for me to do this?

@aultac
Copy link

aultac commented Jul 7, 2016

distanceBetween hasn't been implemented in ATKPointClusterer. It's not an overly difficult function to copy-paste from a quick Google search, but it doesn't sound like that's what you need. It sounds like you need an "isPointInsidePolygon" function instead, and don't allow a point to be moved if the destination location is outside the field polygon, or project it onto the appropriate line segment of the polygon to prevent points outside the polygon.

Aaron

On Jul 4, 2016, at 12:46 PM, jartantupjar notifications@github.com wrote:

Thank you for answering me, I really really appreciate it. About my progress, I have first removed the trello db as I dont have experience in using it and I was able to make a local wifi(mobile-pc) sync work(for the moment). I added some stuff I was required and I changed and deleted the TableOperation to use Tableworkers instead. I guess my next and probably most challenging part I will be doing is having this main drawn polygon which would signify(total field|uneditable) and then later on have a person create job polygons(started|done) that cannot surpass the boundaries of that main polygon. In relation to that I noticed that in the ATKPointClusterer Class the ATKLib Module has a distanceBetween method and so would i need to make this method work or is there an easier way for me to do this?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #2 (comment), or mute the thread https://github.com/notifications/unsubscribe/ADSiUExwGryOZkPjwLRkLYyrPhr3Dk4Kks5qSTjsgaJpZM4I6-iX.

@jartantupjar
Copy link
Author

I have been trying to check out and see your TrialsTracker system but I really cant seem to make it work. I think the main reason is because i don't know what IDE or compiler you all are using. I've tried to look into node.js and kontatsu tool but nothing seems to make it run...

@sanoel
Copy link

sanoel commented Jul 14, 2016

Hi,
I'm Sam Noel, another graduate student in the OATS group at Purdue, and
I've been actively working on Trials Tracker. The Trials Tracker app isn't
currently completed, but you can take a look at its progress by following
these steps:

  1. Install node and npm (node package manager)
  2. Clone the TrialsTracker repo - 'git clone
    https://github.com/OpenATK/TrialsTracker.git'
  3. Install all of the dependencies. Change to the TrialsTracker directory
    and 'npm i'.
  4. Currently I am running an OADA server which hosts the data used in the
    app. You can find the oada-api-server repo at
    https://github.com/OADA/oada-api-server.git. Clone this into a seperate
    directory.
  5. Start the oada server by moving to the oada-api-server directory,
    installing dependencies ('npm i'), and running 'npm run start'
  6. Back in the TrialsTracker directory, change to the csvConverter
    directory and run 'node main.js' to read all of the .csv yield data files
    and populate the OADA server.
  7. Host the Trials Tracker app by running 'npm start start-run' in the
    trials tracker directory.
  8. run webpack by running 'webpack' in the trials tracker directory
  9. The OADA server is running on localhost:3000 and the trials tracker app
    is running on localhost:8000. First, in the browser, navigate to
    https://localhost:3000/.well-known/oada-configuration. In chrome, I must
    click on 'Advanced' at the bottom of the page and click the allow/proceed
    button (I can't remember what it says) which grants access to
    localhost:3000.
  10. Now, navigate to localhost:8000 to view the trials tracker app. It
    should prompt a login into the OADA server. For our testing, a username of
    'frank' and password of 'pass' should allow you to login and access all of
    the data on the OADA server.
  11. We use Postman (
    https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en)
    to inspect the contents and structure of the OADA server. We use
    https://client.oada-dev.com/ to generate the necessary headers for postman
    in order to authenticate.

This was a quick overview, but should hopefully get you close to running
the app. Let me know if you run into any issues.

Thanks,
Sam Noel

On Thu, Jul 14, 2016 at 1:20 PM, jartantupjar notifications@github.com
wrote:

I have been trying to check out and see your TrialsTracker system but I
really cant seem to make it work. I think the main reason is because i
don't know what IDE or compiler you all are using. I've tried to look into
node.js and kontatsu tool but nothing seems to make it run...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ADU3E23IVJR2AiLkR0Joy6a5lRgC2qCXks5qVm_agaJpZM4I6-iX
.

@jartantupjar
Copy link
Author

Im having a problem with installing oada-api-server-master as this error keeps showing up when i try to npm install or nmp i the directory
image

@sanoel
Copy link

sanoel commented Jul 15, 2016

According to http://stackoverflow.com/questions/15126050/running-python-on-windows-for-node-js-dependencies, it looks like you might need to set your PYTHON environment variable.

@jartantupjar
Copy link
Author

Ill try it out

@jartantupjar
Copy link
Author

jartantupjar commented Jul 19, 2016

I was finally able to make the AODA server part work after installing so many different things sigh* but now i ran into another error in the csvConverter part- i have tried using npm i and express but still doesnt work
image

@aultac
Copy link

aultac commented Jul 19, 2016

Looks like @sanoel forget to --save the csvjson module.

npm install csvjson

should do the trick.

Sam, can you update the package.json for future reference?

Thanks
Aaron

On Jul 19, 2016, at 12:51 PM, jartantupjar notifications@github.com wrote:

I was finally able to make the AODA server part work after installing so many different things sigh* but now i ran into another error in the csvConverter part
https://cloud.githubusercontent.com/assets/19889070/16958665/08132c28-4e14-11e6-81be-58d2cca6ce7d.png

You are receiving this because you commented.
Reply to this email directly, view it on GitHub #2 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ADSiUHcGh9eobq_VjkU00dWeZEydzFVhks5qXQCJgaJpZM4I6-iX.

@jartantupjar
Copy link
Author

and here I thought I would have no more problems HAHA... i was wrong
image

@jartantupjar
Copy link
Author

Its probably not reading the BAIR100_2015_harvest.csv file and so it must be returning null

@sanoel
Copy link

sanoel commented Jul 20, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants