Skip to content

Commit

Permalink
added html no caching and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iamagod committed Aug 1, 2019
1 parent 26fd394 commit 001af82
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 21 deletions.
Binary file modified .gradle/5.1.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/5.1.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/5.1.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/5.1.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/5.1.1/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/5.1.1/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
63 changes: 42 additions & 21 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Expand Up @@ -64,6 +64,7 @@ If you want to build it for yourself make sure to change the file paths in the A
- The integration of OpenCV is a combination of <https://community.theta360.guide/t/ricoh-blog-post-running-opencv-in-your-ricoh-theta/4084> and <https://www.learn2crack.com/2016/03/setup-opencv-sdk-android-studio.html> and a lot of trail and error!
- The HDR part is based on https://www.learnopencv.com/high-dynamic-range-hdr-imaging-using-opencv-cpp-python/
- The view in 360 is done using the great kaleidoscope library <https://github.com/thiagopnts/kaleidoscope> by Thiago Pontes
- The hydra logo is from the free clipart site: https://publicdomainvectors.org/en/free-clipart/Hydra-dragon-vector-silhouette/75432.html

Feel free to change, improve and of course use!

Expand Down
Binary file modified app/build/outputs/apk/debug/app-debug.apk
Binary file not shown.
10 changes: 10 additions & 0 deletions app/src/main/java/com/kasper/authydra/MainActivity.java
Expand Up @@ -20,6 +20,7 @@
* fix black hole sun
*
* Done:
* no caching added
* better font
* added divider per day in file menu
* sound on/off fix
Expand Down Expand Up @@ -790,6 +791,9 @@ else if (uri.equals("/files"))
Arrays.sort(contents);
Log.i("web","number of files found: "+contents.length);
msg = "<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0;\">"+
"<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />\n" +
"<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n" +
"<meta http-equiv=\"Expires\" content=\"0\" />"+
"<html>"+
"<style>.abutton {" +
"background-color: #555555;" +
Expand Down Expand Up @@ -1148,6 +1152,9 @@ else if (uri.equals("/refresh"))


msg = "<meta http-equiv='refresh' content='1; URL=http://192.168.1.1:8888/refresh'>" +
"<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />\n" +
"<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n" +
"<meta http-equiv=\"Expires\" content=\"0\" />"+
"<head>\n" +
"<style>.abutton {" +
"background-color: #555555;" +
Expand Down Expand Up @@ -1270,6 +1277,9 @@ else if (done_taking_pics)
return r;
}
msg = "<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0;\">" +
"<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />\n" +
"<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n" +
"<meta http-equiv=\"Expires\" content=\"0\" />"+
"<html>" +
"<style>.abutton {" +
"background-color: #555555;" +
Expand Down

0 comments on commit 001af82

Please sign in to comment.