https://github.com/outadoc/freeboxapi-js
A simple JS API for simplifying the use of the Freebox remote API
https://github.com/outadoc/freeboxapi-js
Last synced: about 1 year ago
JSON representation
A simple JS API for simplifying the use of the Freebox remote API
- Host: GitHub
- URL: https://github.com/outadoc/freeboxapi-js
- Owner: outadoc
- Created: 2012-02-26T15:54:00.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-26T15:54:30.000Z (over 14 years ago)
- Last Synced: 2025-04-25T14:16:04.575Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://dev.outadoc.fr
- Size: 89.8 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Présentation
Une API JavaScript basique pour contrôler la Freebox de Free.
Cette API utilise l'API télécommande officielle qui repose sur des requêtes GET.
## Exemples
#### Instanciation d'une Freebox
var freebox_1 = new Freebox(1, 12345678);
//1 = identifiant du boitier, 12345678 = code télécommande de la Freebox
#### Accesseurs pour les identifiants
freebox_1.setCode(87654321);
var freebox_hd = freebox_1.getHd();
#### Appel d'une touche de la télécommande
freebox_1.callKey(FreeboxKey.FREE, false);
//FreeboxKey.FREE = bouton "Free" de la télécommande, false(/true) = appui long ?
#### Appel simplifié d'une chaîne
freebox_1.callChannel(18);
//on zappe sur Gulli
## Liste des boutons disponibles
NUM_ONE : 1
NUM_TWO : 2
NUM_THREE : 3
NUM_FOUR : 4
NUM_FIVE : 5
NUM_SIX : 6
NUM_SEVEN : 7
NUM_EIGHT : 8
NUM_NINE : 9
NUM_ZERO : 0
RED : Bouton rouge (B)
YELLOW : Bouton jaune (Y)
BLUE : Bouton bleu (B)
GREEN : Bouton vert (A)
DIR_UP : Haut
DIR_DOWN : Bas
DIR_LEFT : Gauche
DIR_RIGHT : Droite
VOL_INC : Augmenter le volume
VOL_DEC : Baisser le volume
PRGM_INC : Passer à la chaîne suivante
PRGM_DEC : Passer à la chaîne précédente
OK : OK
BACK : Retour
SWAP : Revenir à la dernière chaîne visionnée
POWER : On/Off
FREE : Free
MUTE : Muet
LIST : Liste des chaînes
MAIL : Messages vocaux
AUX : Auxilliaires
PIP : Picture in Picture
EPG : Programme TV
PLAYER_RECORD : Enregistrer
PLAYER_PREV : Précédent
PLAYER_BACKWARD : Retour rapide
PLAYER_PLAY : Lecture/pause
PLAYER_STOP : Stop
PLAYER_FORWARD : Avance rapide
PLAYER_NEXT : Suivant