Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
[add] initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
yssk22 committed Apr 3, 2010
0 parents commit 7f33bfc
Show file tree
Hide file tree
Showing 68 changed files with 2,391 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README
@@ -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
2 changes: 2 additions & 0 deletions _attachments/css/images/Licence.txt
@@ -0,0 +1,2 @@
Fugue Icons
http://p.yusukekamiyamane.com/
Binary file added _attachments/css/images/control-double-180.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _attachments/css/images/control-double.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions _attachments/css/lineup.css
@@ -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;
}
57 changes: 57 additions & 0 deletions _attachments/css/main.css
@@ -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;
}
27 changes: 27 additions & 0 deletions _attachments/css/schedule.css
@@ -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;
}
58 changes: 58 additions & 0 deletions _attachments/css/site.css
@@ -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;
}
14 changes: 14 additions & 0 deletions _attachments/index.html
@@ -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>

0 comments on commit 7f33bfc

Please sign in to comment.