Initial commit
This commit is contained in:
parent
4ddebb9269
commit
d925c99081
4 changed files with 200 additions and 2 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
./conf.js
|
30
README.md
30
README.md
|
@ -1,2 +1,28 @@
|
||||||
# zapette
|
# Zapette
|
||||||
Freebox zapette
|
|
||||||
|
This is just a simple zapette for Freebox TV module.
|
||||||
|
|
||||||
|
## Requirement
|
||||||
|
|
||||||
|
* Internet connection
|
||||||
|
* Local webserver (Apache, Nginx, ...)
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Just create a `conf.js` file in the same directory to index.html. Open your 'conf.js' and set your remote code.
|
||||||
|
|
||||||
|
|
||||||
|
Example :
|
||||||
|
|
||||||
|
```
|
||||||
|
var codeTelec="1234535";
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## How to find my remote code?
|
||||||
|
|
||||||
|
* Poweron your freebox HD
|
||||||
|
* On main screen, select `paramètres`
|
||||||
|
* Then `informations générales`
|
||||||
|
|
||||||
|
Now, you can find your code.
|
||||||
|
|
BIN
img/free.png
Executable file
BIN
img/free.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
171
index.html
Executable file
171
index.html
Executable file
|
@ -0,0 +1,171 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||||
|
<title>Free Telec</title>
|
||||||
|
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
||||||
|
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||||
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
.btn-group .col-md-4,
|
||||||
|
.btn-group .col-md-12 {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.freeHome {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h1>Free Telec <small>v0.1</small></h1>
|
||||||
|
</header>
|
||||||
|
``
|
||||||
|
<section>
|
||||||
|
<div class="row col-xs-12">
|
||||||
|
<div class="col-md-4 col-xs-12 btn-group">
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="1">1</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="2">2</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="3">3</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="4">4</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="5">5</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="6">6</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="7">7</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="8">8</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="9">9</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="tv">AV</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="0">0</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="power"><span class="fa fa-power-off" aria-hidden="true"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-12 btn-group">
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-danger btn-lg" data-key="red"><span class="fa fa-undo" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="up"><span class="fa fa-chevron-up" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-info btn-lg" data-key="blue"><span class="fa fa-search" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="left"><span class="fa fa-chevron-left" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="ok">OK</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="right"><span class="fa fa-chevron-right" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-success btn-lg" data-key="green"><span class="fa fa-align-justify" aria-hidden="true"></span> M</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="down"><span class="fa fa-chevron-down" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-warning btn-lg" data-key="yellow">I <span class="fa fa-align-justify" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg btn-free" data-key="home"><img src="img/free.png" class="freeHome" /></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-12 btn-group">
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="vol_inc"><span class="fa fa-plus" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="mute"><span class="glyphicon glyphicon-volume-off" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="prgm_inc"><span class="fa fa-plus" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg">VOL</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4"></div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg">PROG</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="vol_dec"><span class="fa fa-minus" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-danger btn-lg" data-key="rec"><span class="glyphicon glyphicon-record" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="prgm_dec"><span class="fa fa-minus" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="bwd"><span class="fa fa-backward" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="play"><span class="fa fa-play" aria-hidden="true"></span><span class="fa fa-pause" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-4">
|
||||||
|
<div class="col-xs-12 btn btn-default btn-lg" data-key="fwd"><span class="fa fa-forward" aria-hidden="true"></span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
||||||
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||||
|
<script src="./conf.js" text="text/JavaScript"></script>
|
||||||
|
<script type="text/JavaScript">
|
||||||
|
$(function() { $('.btn').on('click',function(){ $.get("http://hd1.freebox.fr/pub/remote_control?code="+codeTelec+"&key="+$(this).data('key')); }); });
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Reference in a new issue