From 6efa8f20d536c1f0434cc480e8cffe8bb80cf6e3 Mon Sep 17 00:00:00 2001 From: rhlkhandelwal19 Date: Mon, 28 Mar 2022 15:24:15 +0530 Subject: [PATCH] Initial commit --- .gitignore | 2 + .idea/encodings.xml | 4 + .idea/misc.xml | 7 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/weatheralert.iml | 13 ++ .idea/workspace.xml | 401 +++++++++++++++++++++++++++++++++++++++ README.md | 10 + app/__init__.py | 50 +++++ app/fetch_data.py | 55 ++++++ app/models.py | 17 ++ app/routes.py | 31 +++ app/setup.py | 10 + app/templates/base.html | 41 ++++ app/templates/index.html | 57 ++++++ app/templates/table.html | 28 +++ data/app.db | Bin 0 -> 135168 bytes main.py | 8 + requirements.txt | 25 +++ settings.txt | 7 +- 20 files changed, 775 insertions(+), 5 deletions(-) create mode 100644 .gitignore create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/weatheralert.iml create mode 100644 .idea/workspace.xml create mode 100644 app/__init__.py create mode 100644 app/fetch_data.py create mode 100644 app/models.py create mode 100644 app/routes.py create mode 100644 app/setup.py create mode 100644 app/templates/base.html create mode 100644 app/templates/index.html create mode 100644 app/templates/table.html create mode 100644 data/app.db create mode 100644 main.py create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f1c80f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +venv/ +*__pycache__/ \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..4ccb8ac --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..6a1d28a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/weatheralert.iml b/.idea/weatheralert.iml new file mode 100644 index 0000000..e942587 --- /dev/null +++ b/.idea/weatheralert.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..47da673 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,401 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + forcast_hourly_url + lat + mb-3 + 3 + + + check_in_frequency + col-mb-3 + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + +
+
+ + +
+
+ +
+ + + +
+
Previous Records
+
+
+ {{ table|safe }} +
+{% endblock %} + + +{% block javascript %} + setInterval(updateTable, {{ frequency }}) + function updateTable(){ + console.log('Making ajax call'); + console.log(" {{ url_for('get_table') }}"); + $.ajax({ + type : 'POST', + data: JSON.stringify({ + 'get' : 'get_table' + }), + contentType: 'application/json; charset=utf-8', + url : "{{url_for('get_table')}}", + success: function(res) { + $('#previous_records').empty(); + $('#previous_records').append(res); + } + + }); + } +{% endblock %} \ No newline at end of file diff --git a/app/templates/table.html b/app/templates/table.html new file mode 100644 index 0000000..c07177b --- /dev/null +++ b/app/templates/table.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + {% for rec in li %} + + + + + + + + + + + {% endfor %} + +
Time StampLatitudeLongitudeFirst ForecastFirst ForecastFirst ForecastAlert GeneratedAlert ID
{{ rec['timestamp'] }}{{rec['lat']}}{{rec['long']}}{{rec['first_forecast']}}{{rec['second_forecast']}}{{rec['third_forecast']}}{{rec['alert_generated']}}{{rec['alert_id']}}
\ No newline at end of file diff --git a/data/app.db b/data/app.db new file mode 100644 index 0000000000000000000000000000000000000000..f2a1555591f22365446aab937f9ec8001e2d5266 GIT binary patch literal 135168 zcmeIbY0ReAwU$|Bmus&25@&KIyUOv2?KuAY4Da(k?^_w|q%wMn?Ktz`#CGDuLt;Dg z#8;y~*WmmB34w&v-KUuZe?TCCkT~7Ip+!qbASC#~IZOfxgw(B8g9LQbeXo1(T{+ag z@68`1>c{6(=RL=9F7Ng1XFYpZ`(A55`kDKmdHJbhPrvZub5Fc{Y~1y_UAuSh`tY%1 zyLRn=?wbP{~Le*U-=9Fj?J6?w4BXd z*y(|t9@y!DogUcfft?=M>4BXd*y(|t9{6wH1E-Gd-uIR}@7#U*XD>hTjc1?2Cikgt zKJn7aUwiI_C!c!uzx=!FKJv)PdmlS_?6G_AyZ>ZthyTET^Vl5+4?Oeau}?nu*vXHd zeB{`J4?TA5!Oz}*|9g)eJn-@}&pq|h%TGM_y<;B*{n#fTI2r%xvoAdVtz#d%|Dk&y ze4m!A6O3(r3(|Iy3ee&$8}Po8-8sTW`V+P9v1{;3zA zc=@R(kKOmsL-(J&_rdu0rGNAryW>B5_>oUOaPK2uIQHq2UpRKhGf&=m@Xj01>o;#a z5Pg4q<3DZuyN&;2<6m$5i;dsg_=g*RZ{vU8_*)x)edDie{KbtwzwxIw{)de}zVSyk zUfbB-IKAzTx2;-m>TS_x#U$p4~HE{~xdaU#@@U`iHK6^L4*>-EUv_-Rp+k z|6%v<>^{Hy!QF4#^^bS`Pn8?YClBtrci+C{i|HeE#HLdg+5 zf%jRkV~f+UUN04RZv$M+o9n(C`$>TxZh-8Zahzr6e5e8TXmRKk-K<*tpaX|BpK+Y} zl>|S~0OJ{ld9jwy`2GgSXPoCzw)nmV7|+-*`%%8f6Bb-0&*}U1pgL#W0Q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ESY0SsM%G0 zPb6QkBz*|wfcv_p8A+|@i08~PB$VQ-#to8M&k*|bzt0ZWElF#&o+HRSCM-VYk96@FuLUNeyTdn5^ zGLH!Z20!^$w4Ni#Jg=Z=s_r4J=Lj9le zld-bTTQd95Jk)y{lAp6=iYu=m_0?@YZprLJxFWH7pKSB9mdtVG356Ntb3SItyf(q% zS@k~I=A)J@mlsGs5oG+qT2tu+ z*{0TW1ewPn)Qi(Sr1cy@mT_ohBGOvV5oGouRMgXbtMwc~mbq+E$2s_%TF-$HIO-wg zaj4ddlhk^SAhQo47F3P#B(p6l<;}9~p>-m#yYCT7gc^pFEKwGQz z96_Rc!-sIHrmfX_jv(_mG~;pw`DJT8N08ZvaQ&Yi`?Q`T$g&p6l<;}CLe z>bNrdR_i%HrajUWM=-jFw4NhK`Vbb>V;xs!n{gJ<6XwSjFbMV(dcK+Jwft?=M>4BXd*y(|t z9@y!DogUcff!qW0ueF{dN>5zb|JRX&V>iER{Pc!nN04RjCbFR;4*6@X=Ljmz;x;alTF((=@}bx-R-Qmo>p6nV`+q#9 z?pv+r2r~N+@~x_UG27I7jv(vIZ^EIvK2=X^^$Z8iK&-t3xa|BspNFx87q}Fo;iB1a5JEUyV`(D#}jv({?A6jSS G3I9L)GR))v literal 0 HcmV?d00001 diff --git a/main.py b/main.py new file mode 100644 index 0000000..209031b --- /dev/null +++ b/main.py @@ -0,0 +1,8 @@ +from app import app + + + + +if __name__ == '__main__': + app.run() + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3045b74 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,25 @@ +APScheduler==3.9.1 +backports.zoneinfo==0.2.1 +certifi==2021.10.8 +charset-normalizer==2.0.12 +click==8.0.4 +colorama==0.4.4 +Flask==2.0.3 +Flask-SQLAlchemy==2.5.1 +greenlet==1.1.2 +idna==3.3 +importlib-metadata==4.11.2 +itsdangerous==2.1.1 +Jinja2==3.0.3 +MarkupSafe==2.1.0 +pytz==2021.3 +pytz-deprecation-shim==0.1.0.post0 +requests==2.27.1 +six==1.16.0 +SQLAlchemy==1.4.32 +typing-extensions==4.1.1 +tzdata==2021.5 +tzlocal==4.1 +urllib3==1.26.8 +Werkzeug==2.0.3 +zipp==3.7.0 diff --git a/settings.txt b/settings.txt index 1b8d204..4e25e30 100644 --- a/settings.txt +++ b/settings.txt @@ -1,7 +1,4 @@ -# Location Information -latitude = 39.7456 longitude = -97.0892 - -# Application Settings -threshold_value = 80 +latitude = 39.7456 +threshold_value = 81 check_in_frequency = 30