Permalink
Browse files

[add] initial commit.

  • Loading branch information...
0 parents commit 7f33bfcfa06247c891938c08c6f7f6d673c22067 @yssk22 committed Apr 3, 2010
Showing with 2,391 additions and 0 deletions.
  1. +38 −0 README
  2. +2 −0 _attachments/css/images/Licence.txt
  3. BIN _attachments/css/images/control-double-180.png
  4. BIN _attachments/css/images/control-double.png
  5. +65 −0 _attachments/css/lineup.css
  6. +57 −0 _attachments/css/main.css
  7. +27 −0 _attachments/css/schedule.css
  8. +58 −0 _attachments/css/site.css
  9. +14 −0 _attachments/index.html
  10. +205 −0 _attachments/js/lineup.js
  11. +93 −0 _attachments/js/site.js
  12. +136 −0 _attachments/scripts/crawler.py
  13. +130 −0 _attachments/scripts/recorder.py
  14. +82 −0 _attachments/scripts/scheduler.py
  15. +15 −0 _attachments/scripts/test.py
  16. +2 −0 _attachments/scripts/util.py
  17. BIN _attachments/scripts/util.pyc
  18. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_flat_55_999999_40x100.png
  19. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_flat_75_aaaaaa_40x100.png
  20. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_glass_45_0078ae_1x400.png
  21. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_glass_55_f8da4e_1x400.png
  22. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_glass_75_79c9ec_1x400.png
  23. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_gloss-wave_45_e14f1c_500x100.png
  24. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_gloss-wave_50_6eac2c_500x100.png
  25. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_gloss-wave_75_2191c0_500x100.png
  26. BIN _attachments/vendor/jquery-ui/css/start/images/ui-bg_inset-hard_100_fcfdfd_1x100.png
  27. BIN _attachments/vendor/jquery-ui/css/start/images/ui-icons_0078ae_256x240.png
  28. BIN _attachments/vendor/jquery-ui/css/start/images/ui-icons_056b93_256x240.png
  29. BIN _attachments/vendor/jquery-ui/css/start/images/ui-icons_d8e7f3_256x240.png
  30. BIN _attachments/vendor/jquery-ui/css/start/images/ui-icons_e0fdff_256x240.png
  31. BIN _attachments/vendor/jquery-ui/css/start/images/ui-icons_f5e175_256x240.png
  32. BIN _attachments/vendor/jquery-ui/css/start/images/ui-icons_f7a50d_256x240.png
  33. BIN _attachments/vendor/jquery-ui/css/start/images/ui-icons_fcd113_256x240.png
  34. +407 −0 _attachments/vendor/jquery-ui/css/start/jquery-ui-1.7.2.custom.css
  35. +19 −0 _attachments/vendor/jquery-ui/js/jquery-1.3.2.min.js
  36. +298 −0 _attachments/vendor/jquery-ui/js/jquery-ui-1.7.2.custom.min.js
  37. +1 −0 _id
  38. +4 −0 couchapp.json
  39. +3 −0 include/bindings.js
  40. +78 −0 lib/helper.js
  41. +13 −0 lib/json.js
  42. +18 −0 lib/lineup.js
  43. +16 −0 lib/schedule.js
  44. +3 −0 lib/test.js
  45. +124 −0 lists/lineup.js
  46. +130 −0 lists/lineup.org.js
  47. +69 −0 lists/schedule.js
  48. 0 lists/test.js
  49. +11 −0 mapping.json
  50. +4 −0 rec.json
  51. +29 −0 shows/detail.js
  52. +32 −0 shows/lineup.js
  53. +5 −0 shows/test.js
  54. +3 −0 templates/lineup/html/footer.html
  55. +19 −0 templates/lineup/html/header.html
  56. +1 −0 templates/lineup/html/padding.html
  57. +12 −0 templates/lineup/html/program.html
  58. +4 −0 templates/lineup/html/th.html
  59. +1 −0 templates/schedule/html/footer.html
  60. +4 −0 templates/schedule/html/header.html
  61. +17 −0 templates/schedule/html/row.html
  62. +38 −0 templates/site/html/footer.html
  63. +41 −0 templates/site/html/header.html
  64. +2 −0 templates/site/html/partial/loggedin.html
  65. +2 −0 templates/site/html/partial/nologin.html
  66. +25 −0 updates/record.js
  67. +17 −0 views/iepg_by_date/map.js
  68. +17 −0 views/records/map.js
@@ -0,0 +1,38 @@
+Recstore
+---------
+
+TV recording system on top of Apache CouchDB
+
+This package can be used only in Japan.
+
+Requirements
+------------------
+
+- Apache CouchDB 0.11.0
+- Python 2.6
+- Python restkit
+- friiorec
+
+Installation
+----------------
+
+Deploy on CouchDB
+---------------------
+
+> git clone ....
+> cd recstore
+> couchapp push http://admin:password@host:port/recstore
+
+Configureing crontab
+----------------------
+
+you need to confgiure crontab enable to collect iEPG information fron infoseek(http://tv.infoseek.co.jp/).
+
+ COUCH_URL=http://admin:password@host:port/recstore
+ LOG_DIR=/var/log/recstore
+
+ # --- crawler
+ 30 5 * * 0 /usr/bin/curl -X GET ${COUCH_URL}/recstore/_design/recstore/scripts/crawler.py | /usr/bin/python2.6 - -d ${COUCH_URL}/recstore -n 8 2>&1 > ${LOG_DIR}/recstore_weekly.log
+ 30 5 * * 1-6 /usr/bin/curl -X GET ${COUCH_URL}/recstore/_design/recstore/scripts/crawler.py | /usr/bin/python2.6 - -d ${COUCH_URL}/recstore -n 1 2>&1 > ${LOG_DIR}/recstore_daily.log
+ # --- scheduler
+ */2 * * * * /usr/bin/curl -X GET ${COUCH_URL}/recstore/_design/recstore/scripts/scheduler.py | /usr/bin/python2.6 - -d ${COUCH_URL}/recstore 2>&1 > ${LOG_DIR}/recstore_scheduler.log
@@ -0,0 +1,2 @@
+Fugue Icons
+ http://p.yusukekamiyamane.com/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,65 @@
+div.lineup {
+ font-size: 9pt;
+}
+
+div.lineup header {
+ margin-bottom: 10px;
+}
+
+div.lineup form#date-navigator {
+ font-size: 14pt;
+ vertical-align: middle;
+}
+div.lineup form#date-navigator input#date{
+ font-size: 12pt;
+ border: none;
+ width: 100px;
+}
+
+div.lineup div#links {
+ float:right;
+ font-size: 14pt;
+}
+
+div.lineup table {
+ width: 100%;
+}
+
+div.lineup tbody tr td{
+ vertical-align:top;
+ border: solid 1px #cccccc;
+}
+
+div.lineup tbody tr td.record{
+ background-color: #fcd113;
+}
+
+div.lineup tbody tr td.program a.rec{
+ display: inline;
+}
+
+div#main.guest a.rec,
+div#main.guest a.unrec{
+ display: none;
+}
+
+div#main.admin div.lineup tbody tr td.program a.unrec{
+ display: none;
+}
+div#main.admin div.lineup tbody tr td.record a.rec{
+ display: none;
+}
+div#main.admin div.lineup tbody tr td.record a.unrec{
+ display: inline;
+}
+
+div.lineup tbody tr td.padding{
+ background-color: #eeeeee;
+}
+
+div.lineup tbody tr td.hrow,
+div.lineup thead tr th{
+ font-size: 10pt;
+ vertical-align:middle;
+ text-align: center;
+}
@@ -0,0 +1,57 @@
+.ui-widget {
+ font-size: 9pt;
+}
+
+#template {
+ display: none;
+}
+#login {
+ font-size: 9pt;
+}
+
+div.lineup {
+ font-size: 9pt;
+}
+div.lineup #date {
+ font-size: 16pt;
+ width: 140px;
+}
+
+div.lineup table {
+ width: 100%;
+}
+
+div.lineup tbody tr td{
+ vertical-align:top;
+ border: solid 1px #cccccc;
+}
+
+div.lineup tbody tr td.record{
+ background-color: #fcd113;
+}
+
+div.lineup tbody tr td.program a.rec{
+ display: inline;
+}
+div.lineup tbody tr td.program a.unrec{
+ display: none;
+}
+
+div.lineup tbody tr td.record a.rec{
+ display: none;
+}
+div.lineup tbody tr td.record a.unrec{
+ display: inline;
+}
+
+
+div.lineup tbody tr td.padding{
+ background-color: #eeeeee;
+}
+
+div.lineup tbody tr td.hrow,
+div.lineup thead tr th{
+ font-size: 10pt;
+ vertical-align:middle;
+ text-align: center;
+}
@@ -0,0 +1,27 @@
+div.odd {
+ border-top: solid 2px #cccccc;
+}
+div.even {
+ border-top: solid 2px #ccccff;
+}
+
+div.row {
+ padding-top: 5px;
+ margin-bottom: 10px;
+}
+
+div.row header{
+ display: block;
+ font-weight: bold;
+ margin-bottom: 10px;
+}
+
+div.row header h3 {
+ margin-bottom: 0px;
+
+}
+
+div.row footer{
+ text-align: right;
+ display: block;
+}
@@ -0,0 +1,58 @@
+body {
+ font-size: 9pt;
+}
+
+header, footer{
+ display: block
+}
+
+header h1 a {
+ text-decoration: none;
+}
+
+a.icon {
+ padding: 0 16px 0 0;
+ background: transparent url('') no-repeat center right;
+}
+img.icon {
+ border:none;
+ vertical-align: middle;
+}
+
+
+.ui-widget {
+ font-size: 9pt;
+}
+
+
+header.site {
+ margin-bottom: 5px;
+ padding-bottom: 5px;
+ border-bottom: #eeeeee 1px solid;
+}
+
+header.site div#userCtx {
+ float: right;
+}
+
+div#main {
+ clear:both;
+}
+
+footer.site {
+ margin-top: 5px;
+ padding-top: 5px;
+ border-top: #eeeeee 1px solid;
+ text-align: right;
+
+}
+
+
+/** Login form **/
+form#login {
+ font-size: 9pt;
+}
+
+#template {
+ display: none;
+}
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Generated CouchApp</title>
+ <link rel="stylesheet" href="style/main.css" type="text/css">
+ </head>
+ <body>
+ <h1>Generated CouchApp</h1>
+ <p>This is a placeholder page</p>
+ </body>
+ <script src="/_utils/script/json2.js"></script>
+ <script src="/_utils/script/jquery.js?1.3.1"></script>
+ <script src="/_utils/script/jquery.couch.js?0.9.0"></script>
+</html>
Oops, something went wrong.

0 comments on commit 7f33bfc

Please sign in to comment.