This repository has been archived by the owner. It is now read-only.
A schedular and calendar for NCBS Bangalore.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
PhotographyCompetition @ dd7e659
_ical
_mails
actions
calendar
cron_jobs
data
database
db
docs
helper
hippo-ai @ ff29ffc
html2text
node_modules
snippets
template/google-api
tests
tinymce
torch-rnn
vendor
.gitignore
.gitmodules
.htaccess
.pre-commit-config.yaml
CONTRIBUTING.md
Gruntfile.js
ICS.php
LICENSE
NOTES.md
README.md
active_speakers.php
admin.php
admin_acad.php
admin_acad_add_aws_entry.php
admin_acad_add_aws_entry_submit.php
admin_acad_aws_speakers.php
admin_acad_aws_speakers_action.php
admin_acad_edit.php
admin_acad_edit_aws.php
admin_acad_email_and_docs.php
admin_acad_manages_action.php
admin_acad_manages_courses.php
admin_acad_manages_courses_action.php
admin_acad_manages_current_courses.php
admin_acad_manages_current_courses_action.php
admin_acad_manages_enrollments.php
admin_acad_manages_enrollments_action.php
admin_acad_manages_grades.php
admin_acad_manages_grades_action.php
admin_acad_manages_jc.php
admin_acad_manages_jc_action.php
admin_acad_manages_jc_admins.php
admin_acad_manages_jc_admins_action.php
admin_acad_manages_requests.php
admin_acad_manages_requests_submit.php
admin_acad_manages_scheduling_request.php
admin_acad_manages_scheduling_request_submit.php
admin_acad_manages_slots.php
admin_acad_manages_slots_action.php
admin_acad_manages_speakers.php
admin_acad_manages_speakers_action.php
admin_acad_manages_talks.php
admin_acad_manages_talks_action.php
admin_acad_manages_talks_action_update.php
admin_acad_manages_upcoming_aws.php
admin_acad_manages_upcoming_aws_reformat.php
admin_acad_manages_upcoming_aws_submit.php
admin_acad_schedule_upcoming_courses.php
admin_acad_schedule_upcoming_courses_BASE_7706.php
admin_acad_schedule_upcoming_courses_BASE_7824.php
admin_acad_schedule_upcoming_courses_LOCAL_7706.php
admin_acad_schedule_upcoming_courses_LOCAL_7824.php
admin_acad_schedule_upcoming_courses_REMOTE_7706.php
admin_acad_schedule_upcoming_courses_REMOTE_7824.php
admin_acad_schedule_upcoming_courses_action.php
admin_acad_send_email.php
admin_acad_send_email_action.php
admin_acad_summary_date_wise.php
admin_acad_summary_user_wise.php
admin_acad_update_upcoming_aws.php
admin_acad_update_upcoming_aws_submit.php
admin_acad_update_user.php
admin_acad_update_user_submit.php
admin_action.php
admin_add_update_user.php
admin_add_update_user_submit.php
admin_manages_email.php
admin_manages_email_templates.php
admin_manages_email_templates_submit.php
admin_manages_faculty.php
admin_manages_faculty_submit.php
admin_manages_holidays.php
admin_show_users.php
admin_sync_faculty.php
allevents.php
aws.php
aws_helper.py
bookmyvenue_admin.php
bookmyvenue_admin_block_venues.php
bookmyvenue_admin_edit.php
bookmyvenue_admin_edit_submit.php
bookmyvenue_admin_manages_venues.php
bookmyvenue_admin_manages_venues_action.php
bookmyvenue_admin_request_review.php
bookmyvenue_admin_request_review_submit.php
bookmyvenue_admin_synchronize_events_with_google_calendar.php
bookmyvenue_admin_update_eventgroup.php
bookmyvenue_browse.php
bower.json
check_access_permissions.php
client_secret_636127149215-mn7vk37265hlq48d39qt45asnsvdbti0.apps.googleusercontent.com.json.gpg
cluster_aws.py
composer.json
compute_cost.py
compute_cost.py.png
compute_course_schedule.py
concurrent_usage.py
courses.php
database.php
db_connect.py
db_sqlite3.php
display_content.php
download_file.php
download_pdf.php
edit_venues.php
events.json.php
events.php
execute.php
execute_submit.php
favicon.ico
fetch_aws_data.py
fetch_backgrounds.py
final.php
footer.php
generate_pdf_aws.php
generate_pdf_talk.php
generate_scinet.py
get_aws.py
global_data.py
header.php
hippo.css
hippo_cron.sh
hipporc.example
history.php
howto.php
html2other.py
html2text.php
index.php
info.php
is_valid_access.php
jc.php
ldap.php
linkify.php
logger.php
logger.py
login.php
logout.php
mail.php
manage.php
map.php
methods.php
muttrc
oauth
oauthcallback.php
package.json
print.php
quickbook.php
quickbook_bootup.php
requirements.txt
robots.txt
rss.php
sample_ical.php
schedule.sh
schedule_aws.py
schedule_aws_clean.py
schedule_aws_greedy_groupwise.py
schedule_aws_groupwise.py
schedule_aws_simple.py
sendmail.py
statistics.php
summary_aws.php
synchronize_calendar.php
tex2pdf.sh
tohtml.php
user.php
user_acknowledge_aws_schedule_action.php
user_add_inventory.php
user_add_inventory_action.php
user_aws.php
user_aws_edit_request.php
user_aws_edit_request_submit.php
user_aws_request.php
user_aws_request_add.php
user_aws_request_edit_submit.php
user_aws_scheduling_request.php
user_aws_scheduling_request_submit.php
user_aws_search.php
user_aws_update_upcoming_aws.php
user_aws_update_upcoming_aws_submit.php
user_browse_inventory.php
user_browse_tolet.php
user_buys.php
user_buys_action.php
user_info.php
user_info_action.php
user_jc_admin.php
user_jc_admin_edit_jc_request.php
user_jc_admin_edit_upcoming_presentation.php
user_jc_admin_submit.php
user_manage.php
user_manage_talk.php
user_manage_talks_action.php
user_manage_talks_action_update.php
user_manages_courses.php
user_manages_courses_action.php
user_manages_jc.php
user_manages_jc_action.php
user_manages_jc_presentation_requests.php
user_manages_jc_update_presentation.php
user_register_talk.php
user_register_talk_action.php
user_revoke_aws_preference.php
user_sells.php
user_sells_action.php
user_show_events.php
user_show_events_edit.php
user_show_events_edit_submit.php
user_show_requests.php
user_show_requests_edit.php
user_show_requests_edit_submit.php
user_submit_booking_request.php
user_submit_booking_request_action.php
user_tolet.php
user_tolet_action.php
user_update_supervisor_submit.php
user_update_supervisors.php
user_upload_picture.php
web.config
wikify.py
write_aws_using_ai.py

README.md

This project has been moved to https://github.com/dilawar/HippoIgnited . This is read-only repository.

NCBS Hippo

AWS scheduler cum even manager for NCBS.

Dependencies

  • Requires PHP >= 7.x
  • php7, php7-imap, php7-ldap, php7-imagick
  • mysql
  • python-pypandoc
  • sudo pip install mysql-connector-python-rf
  • pandoc >= 1.19.2.1
  • python-PIL (for background image processing).
  • python > 3.6 (Photography club scripts require it)

Optional

To train the NN with AWS abstract.

  • torch-rnn

Apache behind proxy

To communicate to google-calendar, apache needs to know proxy server. Write following in httpd.conf file

SetEnv HTTP_PROXY 172.16.223.223:3128
SetEnv HTTPS_PROXY 172.16.223.223:3128

How to setup google-calendar.

  1. Go to google-api console, and setup an API key. Download the key and store it in /etc/hippo/hippo-f1811b036a3f.json.

  2. Go to google calendar and add google-service account email in share calendar settings. Grant all permissions to new account.

  3. Following is the snippet to construct API.

$secFile = '/etc/hippo/hippo-f1811b036a3f.json';
putenv( 'GOOGLE_APPLICATION_CREDENTIALS=' . $secFile );
$this->client = new Google_Client( );
$this->client->useApplicationDefaultCredentials( );
// Mimic user (service account).
$this->client->setSubject( 'google-service_account@gservice.com' );
$this->client->setScopes( 'https://www.googleapis.com/auth/calendar');