IndigoWizard / NDVI-Viewer

Monitor Vegetation Health by Viewing & Comparing NDVI Values & Satellite Images On The Fly!
https://ndvi-viewer.streamlit.app/
17 stars 7 forks source link

Error #27

Closed marcelusobama closed 1 year ago

marcelusobama commented 1 year ago

Error running app. If this keeps happening, please

IndigoWizard commented 1 year ago

@marcelusobama Thanks for the heads up! I just rebooted the app and it should work fine. Im using Streamlit Cloud which is free tier powered by Snowflake, so it has a limit for the resources the app uses. I cant afford a paid tier for now so I just have to reboot the app when it crashes due to overload (usually multiple requests in an instant takes it down due to the amount of calculations). The app definitely needs optimization to work on this streamlit cloud free tier. Will open a separate issue for that.

marcelusobama commented 1 year ago

probably and the number of requests on the site. Question: How do I install it locally on the machine?

Em dom., 29 de out. de 2023 às 12:46, IndigoWizard @.***> escreveu:

@marcelusobama https://github.com/marcelusobama Thanks for the heads up! I just rebooted the app and it should work fine. Im using Streamlit Cloud which is free tier powered by Snowflake, so it has a limit for the resources the app uses. I cant afford a paid tier for now so I just have to reboot the app when it crashes due to overload (usually multiple requests in an instant takes it down due to the amount of calculations). The app definitely needs optimization to work on this streamlit cloud free tier. Will open a separate issue for that.

— Reply to this email directly, view it on GitHub https://github.com/IndigoWizard/NDVI-Viewer/issues/27#issuecomment-1784148809, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWPVG7GJNVICYFK67AXZA3YBZ24TAVCNFSM6AAAAAA6U47LZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGE2DQOBQHE . You are receiving this because you were mentioned.Message ID: @.***>

-- Marcelus Oliveira de Jesus

*Engenheiro Ambiental.*Environmental Engineer Analista Técnico SIG CREA-DF 17576/D Skype: Marcelus_eng_ambiental

IndigoWizard commented 1 year ago

@marcelusobama After forking the project you can clone it to your local machine and install the required packages (see requirements.txt). Once you setup your environment with the packages, it should work fine. It wont crash as the request are made to the gee server directly.

You'll need a Google Earth Engine account of course since you'll be running it on your own account. (its free and usually I run heavy calculations and processing, it takes few seconds but dont crash.)

Important, in the app.py, uncomment the ee.Initialize() when running it locally, you can do it just once to initialize the gee api. But make sure to comment it back when pushing commits as Streamlit don't use that method.

IndigoWizard commented 1 year ago

@marcelusobama Im working on a quick fix now, there is the issue that the default date in the date input is set to the current day, sometimes there are no available satellite images in the data set yet so it cant find a B8 so it may crash, Ill make it set to a day before and see if this helps a bit. (still, app overload is an actual issue so this is not a total fix).