metakgp / gyft

Get Your Freaking Timetable
https://gyft.metakgp.org
MIT License
56 stars 60 forks source link

Add offline support - integrate with `Timetable` #10

Closed athityakumar closed 7 years ago

athityakumar commented 8 years ago

If internet connection doesn't exist, store the event to be added to calendar in some json file. And later when there's internet connection, sync it to Google calendar.

Internet connection can be determined by posting a request to Google.com or something (neglecting the probability of Google's server being down) & checking it's response...

Also, is a terminal version of this possible for offline cases? I mean, can ALL the events be stored into json and be accessed with bash commands with tab auto_complete feature?

nishnik commented 8 years ago

Seems interesting. You had made something related to this. Right?

On Sunday, August 14, 2016, Athitya Kumar notifications@github.com wrote:

If internet connection doesn't exist, store the event to be added to calendar in some json file. And later when there's internet connection, sync it to Google calendar.

Internet connection can be determined by posting a request to Google.com or something (neglecting the probability of Google's server being down) & checking it's response...

Also, is a terminal version of this possible for offline cases? I mean, can ALL the events be stored into json and be accessed with bash commands with tab auto_complete feature?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/metakgp/gyft/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AI0ui-zTUjetUGp6IqUjkrlSk4J35TCyks5qfszsgaJpZM4Jj2Rs .

Nishant Nikhil Sophomore Department of Mathematics IIT Kharagpur | Mobile: +91 9933979842 <%2B91%2099339798428> | Email: nishantnikhil@iitkgp.ac.in http://www.krssg.in/

athityakumar commented 8 years ago

I had a dynamic bash_autocomplete stuff built in ruby. Would require a little twerking to fit in here though. Reference : https://github.com/athityakumar/data

Also, @arunpatro suggested that it'd be great if the subjects could be color-coded.

athityakumar commented 7 years ago

Source for new offline support repository : https://github.com/athityakumar/timetable

Yet to be tweaked to facilitate offline support for gyft.

raivivek commented 7 years ago

@athityakumar I'd like to know more about the color coding idea.

icyflame commented 7 years ago

The event data is already present in the data.txt file. If any other utility wants to use it, there's no reason it shouldn't! Generate ICS will generate a standard ICS as well. @athityakumar If there is something specific you plan to do, please re-open the issue. I am cleaning up the issues dashboard. :slightly_smiling_face: