iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 553 forks source link

Plugin Keys New Feature: Syncing between different clients #181

Closed Xelio closed 11 years ago

Xelio commented 11 years ago

Clients mean computers. I haven't test it on mobile. ;)

plugin-keys-sync

Made a web application to store portal keys data in Dropbox and handle the update between clients. User need to login Dropbox and allow access, then a token is given to auth between Plugin Keys and web application.

As the web application is in development. Dropbox only allow 100 users to use it. You can get the updated plugin in this commit

I'll make a PR after some more test.

atis commented 11 years ago

I guess this needs two numbers for Keys on Map - your keys and team keys. You could then store multiple URLs for syncing, so you are uploading just your keys, but downloading from list of your team.

Perhaps a simple PHP backend could handle all the team key counting and storing.

Xelio commented 11 years ago

Actually I make use of Dropbox as storage to minimize DB usage, in order to stay in free tire of Heroku service to make this function long lasting.

jonatkins commented 11 years ago

As an alternative to dropbox, a google docs spreadsheet could be an option to consider. I was shown an alternative key tracking plugin that worked this way, although I think it was

  1. read only
  2. shared key counts between members of a team (one row per portal, one column per team member)
  3. hard-coded to a specific google docs spreadsheet
Xelio commented 11 years ago

Google Realtime API seems better. But I'm afraid Google would take down the service if they know it's related to IITC.

hastarin commented 11 years ago

Just a note that Backbone (http://backbonejs.org/) with a custom sync provider to use the Google Drive Realtime API might be worth looking at for this as part of an overall solution to persist IITC settings across devices and not just the keys.

I know that's a lot of work but thought I'd put it out there in case someone is keen/familiar.

Xelio commented 11 years ago

Dropbox syncing is ditched. Sync function is done here https://github.com/jonatkins/ingress-intel-total-conversion/pull/253 with Google Realtime API.