Please install this extension in chrome before running the system via django framework https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe
Guide to install cropcalendar
-
Install anaconda 3 and setup python environment from here https://www.anaconda.com/distribution/
-
Install google earth engine API in python https://developers.google.com/earth-engine/python_install
-
Install Google cloud SDK https://cloud.google.com/sdk/install
-
Create a google earth engine account from https://signup.earthengine.google.com/#!/
-
Once you are approved for earth engine and cloud Authorize all of them by same google account
-
Fork the project from https://github.com/ashokdahal/cropcalendar_app.git
-
Setup on the directory in windows
-
Go to that folder and run python manage.py runserver from anaconda environment terminal
-
Change the folder/file locations in /uploader/views.py as well as the user folder in gee by modifying this codes
filelocation=r'D:\django\cropcalendar'+ str(uploaded_file_url).replace("/",'\') upload_gs='gsutil -m cp '+filelocation+' gs://shpgee/' upload_gee=r'earthengine upload table --asset_id=users/ashok_dahal/cropsites/'+str(filename).replace('.zip','')+' gs://shpgee/'+filename
-
Change local postgres settings in loadpostgres/views.py by modifying this codes: D:/django/cropcalendar/download/ user="postgres", password="PASS", host="127.0.0.1", port="5432", database="postgres" postgres://postgres:[email protected]:5432/postgres
Save the project and run server again. Open the browser and login to google earth engine and visit crop calendar at 127.0.0.1:8000 . Please use google chrome and have this extension installed https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe
New links
Season 1 https://code.earthengine.google.com/73f7e4b8230bceebb9b5950fc2165139?hideCode=true
season 2 https://code.earthengine.google.com/d9c51c7e55e912c9cdc2389fb85b8f4b?hideCode=true
season 3 https://code.earthengine.google.com/7f4450126568382e964b7df7b9d1c98a?hideCode=true