Forum des Objets Communicants et Solutions pour les Libérer...
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.

Forum des Objets Communicants et Solutions pour les Libérer...


 
AccueilAccueil  GalerieGalerie  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  Connexion  
Le Deal du moment : -21%
LEGO® Icons 10329 Les Plantes Miniatures, ...
Voir le deal
39.59 €

 

 OpenNab 0.02

Aller en bas 
+7
corwin76
soya
Nazigzag
Milie
aerosmiss
Pixel du Rezo
oaz
11 participants
Aller à la page : Précédent  1, 2, 3  Suivant
AuteurMessage
cloink
Lapin nain
Lapin nain



Nbr de messages : 16

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeLun 22 Jan 2007 - 21:11

oaz a écrit:
Maybe because you're the 1st one (except me) to reach that point and test this feature? Shocked

:cyclops:

oaz a écrit:
First, I suggest you try to retrieve the mp3 manually to check if it is correctly uploaded. For example if you installed OpenNab on my.domain.com and the mp3 id is 98765 then it should be available at http://my.domain.com/broad/9/8/7/6/5.mp3
Yep, that was the first thing I checked. It's there alright!

oaz a écrit:
Then, if the mp3 is ok, I suggest that you activate the OpenNab log : we have to check what the rabbit requested and what was sent to it.
In the config.php file, just replace :
define('LOG_IS_ACTIVE', false);
by
define('LOG_IS_ACTIVE', true);
You will then get log files under http://my.domain.com/vl/logs/
Give me the 5 minutes log starting from the time you sent the play request.
Ah yes, I activated the logs when I set up the app, seeing I have loads of diskspace and I love logs myself. yellownabzwink

For the record, I'm using the api_demo and entering the following parameters in the "Play mp3 file" section:
Serial Number: 0019XX001XXX (this being my mac-address of the tag/tag)
File Id: 70122 (this being the mp3 I uploaded, it is resided under /broad/7/0/1/2/2.mp3)
And perhaps I should mention this mp3-file is about 1.2Mb big and has a duration of over 2 minutes (can that be the problem?).

Here's the log:

LOG a écrit:

2007-01-22 12:01:51 /vl/p4.jsp?sn=0019xx001xxx&v=65799&st=1&sd=2&tc=171b1a5&h=4 7f [0a,15]011e5b4fe10c6bce3ba71289b3cec5 [03,1]78 [04,23]7fffffff01010eff000000000000000000000000010100 ff0a
2007-01-22 12:03:58 /vl/p4.jsp?sn=0019xx001xxx&v=65799&st=1&sd=0&tc=7fffffff&h=4 7f [04,23]7fffffff01010eff000000000000000000000000010100 [03,1]78 ff0a
2007-01-22 12:05:59 /vl/p4.jsp?sn=0019xx001xxx&v=65799&st=1&sd=0&tc=7fffffff&h=4 7f [04,23]7fffffff01010eff000000000000000000000000010100 [03,1]78 ff0a
2007-01-22 12:08:01 /vl/p4.jsp?sn=0019xx001xxx&v=65799&st=1&sd=0&tc=7fffffff&h=4 7f [04,23]7fffffff01010eff000000000000000000000000010100 [03,1]78 ff0a
2007-01-22 12:10:04 /vl/p4.jsp?sn=0019xx001xxx&v=65799&st=1&sd=0&tc=7fffffff&h=4 7f [04,23]7fffffff01010eff000000000000000000000000010100 [03,1]78 ff0a
Not much, huh? yellownabzwink It looks like it does close to nothing with that mp3-file?

Perhaps also worth noticing: the server where opennab resides is hosted in the USA, so the clock is about 9 hours "off" (I'm in Belgium). Could that have something to do with it?

And last, but not least, I get the following response on the api_demo page after submitting:

api_demo a écrit:

OpenNab API replies :
<OpenNab>
<PlayFile>70122</PlayFile>
</OpenNab>
Thanks for the help! respect
Revenir en haut Aller en bas
http://nabaztag.cloink.com/
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeLun 22 Jan 2007 - 21:39

cloink a écrit:
For the record, I'm using the api_demo and entering the following parameters in the "Play mp3 file" section:
Serial Number: 0019XX001XXX (this being my mac-address of the tag/tag)
File Id: 70122 (this being the mp3 I uploaded, it is resided under /broad/7/0/1/2/2.mp3)
That should be ok...
You can check just after this command at http://my.domain.com/vl/burrows/0019XX001XXX if the file name "/broad/7/0/1/2/2.mp3" appears. This url is the place where OpenNab stores all info for the rabbit 0019XX001XXX.

cloink a écrit:
And perhaps I should mention this mp3-file is about 1.2Mb big and has a duration of over 2 minutes (can that be the problem?).
That should be ok too (except if the connection is too slow) but we have no trace in the log of an action indicating to the rabbit to retrieve the file so I guess the issue is not there.

I just tried a mp3 play with same actions and same mp3 id and here is the log (the file was played with no problem) :
LOG a écrit:

2007-01-22 21:24:13 /vl/p4.jsp?sn=0019db001483&v=65799&st=1&sd=0&tc=7fffffff&h=4 7f [04,23]7fffffff0e2800000000000000000000000000000b0b00 [03,1]78 [0a,54]011e5b4fe1e68ed23fc6acdba9f6bb4f11f9f2eefbfac6c09b860df9f2eefb665870ffbe9ef43d323dc5807fc2953ffb4f5f79882445 ff0a
The important part is [0a,54]011e5b4fe1e68ed23fc6acdba9f6bb4f11f9f2eefbfac6c09b860df9f2eefb665870ffbe9ef43d323dc5807fc2953ffb4f5f79882445.
It indicates a type 0a block with a length of 54 bytes where is encoded the file name.
If the rabbit does not get a 0a block of this length following the call of p4.jsp then it means he does not get the order to play the file.

I'm going to think about it but I don't understand (yet) why this block is not sent.
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
clayde
Bronze Nabz
Bronze Nabz
clayde


Age : 48
Localisation : seine et marne
Nabaztag : abalon (v1) / javanab (v2)
Nbr de messages : 149
Carottes : 6827

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeLun 22 Jan 2007 - 23:20

bon po cool je suis comme cloink, j'arrive pas à faire jouer des mp3, ni a avoir les fichiers des records....
j'ai installé opennab sous 1and1, les tests sont tous ok...

bon autement je te prépare une applet java qui va permettre de faire du tts vers mp3, il faudra donc qu'on discute gestion pour organiser tout ça yellownabzwink
genre le php génére dynamiquement le html qui appel l'applet
en passant en param le numéro de série, et l'applet appel l'api
d'opennab en passant le mp3 et le numéro de série,
un truc du genre ...

autrement pour l'idée de comunion vocale, autant qu'on peut c'est clair yellownabzwink et vive les potins !

Reprenons,
le plus cool serait de gérer des espaces pour avoir comme des tchats que l'on metterait publics ou privées (lol ça me fait penser à la cb ...voir au talkie walkie, vive le modernisme lol)

@+ à toi

ps/vivement que violet sorte l'api pour le stream yellownabzsmile
Revenir en haut Aller en bas
cloink
Lapin nain
Lapin nain
cloink


Localisation : Belgium
Nabaztag : Poekie
Nbr de messages : 16
Carottes : 6439

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 9:11

oaz a écrit:
That should be ok...
You can check just after this command at http://my.domain.com/vl/burrows/0019XX001XXX if the file name "/broad/7/0/1/2/2.mp3" appears. This url is the place where OpenNab stores all info for the rabbit 0019XX001XXX.
I'm at work now, so I can't check whether my bunny reacts or not, but I can still see the following at the url you mentioned:

burrow a écrit:
O:10:"burrowdata"1_sur_10{s:10:"fileToPlay";s:20:"/broad/7/0/1/2/2.mp3";}

oaz a écrit:
I just tried a mp3 play with same actions and same mp3 id and here is the log (the file was played with no problem) :
If the rabbit does not get a 0a block of this length following the call of p4.jsp then it means he does not get the order to play the file.
Odd, it does completely nothing here... :fote:
Revenir en haut Aller en bas
http://nabaztag.cloink.com/
Pixel du Rezo
Special Nabz
Special Nabz



Age : 44
Localisation : Montpellier
Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz)
Nbr de messages : 2708
Carottes : 13266

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 10:36

En réaction à vos idées de communion vocale...
Vous envisagez de les créer comment vos MP3 ? en passant par le site de violet, ou en ayant votre propre (pas home-made, mais installé sur un serveur 'perso') moteur de synthèse vocale.

Car j'ai regardé, en en gratuit, y'a pas grand chose.
Je suis sous linux, et j'en ai vu 2 pour le moment: festival, et Espeak.

Je ferais des tests un de ces 4... pour voir ce que ca pourrait donner... afin de ne plus etre dépendant de violet...
Revenir en haut Aller en bas
http://openjabnab.fr/
clayde
Bronze Nabz
Bronze Nabz
clayde


Age : 48
Localisation : seine et marne
Nabaztag : abalon (v1) / javanab (v2)
Nbr de messages : 149
Carottes : 6827

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 10:38

moi j'ai déjà un moteur de synthése lol yellownabzsmile
bon j'avoue freetts...c'est du java donc
je devrais pouvoir le traduire dans une applet,
du coup c'est le poste client qui fera la synthése

autrement pour la communion faut voir si le tag/tag lit les wav, si oui
ce sera facile, autrement faudra convertir...
Revenir en haut Aller en bas
NaBoByZ
Nabazteur Courtois
Nabazteur Courtois
NaBoByZ


Localisation : Btx
Nabaztag : NaBoByZ
Nbr de messages : 4349
Carottes : 6562

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 10:39

Non le lapin ne lit pas les Wav ... Après pour la convertion... je vois pas comment faire...
Revenir en haut Aller en bas
clayde
Bronze Nabz
Bronze Nabz
clayde


Age : 48
Localisation : seine et marne
Nabaztag : abalon (v1) / javanab (v2)
Nbr de messages : 149
Carottes : 6827

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 10:49

si c'est le cas,il faudra convertir et de toute façon pour par exemple coder la reconnaissance vocale, il faudra envisager le fait d'installer sur les postes clients un p'tit prog (ex :sous forme de screensaver ) qui fera le taf.

En gros ce serait en fait des applis serveurs qui s'enregistrerais chez opennab, et openab les utiliserais pour faire le taf...

po mal l'idée yellownabzsmile

en plus ce serait cool un screensaver de tag/tag yellownabzsmile
Revenir en haut Aller en bas
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 14:03

clayde a écrit:
bon po cool je suis comme cloink, j'arrive pas à faire jouer des mp3, ni a avoir les fichiers des records....
j'ai installé opennab sous 1and1, les tests sont tous ok...
pale
J'en arrive à me demander si quelqu'un a réussi à faire fonctionner les mp3 avec OpenNab ?
Tu as les mêmes symptomes ? Fichier mp3 bien téléchargé sur le serveur ? Fichier terrier ('burrow') correct après l'appel pour jouer le mp3 ?

clayde a écrit:
bon autement je te prépare une applet java qui va permettre de faire du tts vers mp3, il faudra donc qu'on discute gestion pour organiser tout ça yellownabzwink
genre le php génére dynamiquement le html qui appel l'applet
en passant en param le numéro de série, et l'applet appel l'api
d'opennab en passant le mp3 et le numéro de série,
un truc du genre ...
Ca a l'air pas mal ton truc mais je me sens pas trop de faire l'intégration tout seul. Manque de temps et surtout connaissances très faibles (voire nulles) sur tout ce qui touche à du java ou à de l'intégration dans un web browser. Faudrait voir si toi (ou quelqu'un d'autre) peut entrer dans le php sur ces aspects là...

clayde a écrit:
autrement pour l'idée de comunion vocale, autant qu'on peut c'est clair yellownabzwink et vive les potins !

Reprenons,
le plus cool serait de gérer des espaces pour avoir comme des tchats que l'on metterait publics ou privées (lol ça me fait penser à la cb ...voir au talkie walkie, vive le modernisme lol)
Moi ça me fait penser aux salons de nos bons vieux RTC (pour ceux qui ont connu cette époque...)

clayde a écrit:
ps/vivement que violet sorte l'api pour le stream yellownabzsmile
Une question de jours si j'ai bien compris ?...
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 14:10

cloink a écrit:
I'm at work now, so I can't check whether my bunny reacts or not, but I can still see the following at the url you mentioned:

burrow a écrit:
O:10:"burrowdata"1_sur_10{s:10:"fileToPlay";s:20:"/broad/7/0/1/2/2.mp3";}
The file is correct so it means that OpenNab took into account the API call for playing the mp3.

cloink a écrit:
Odd, it does completely nothing here... :fote:

Really weird. I have no clue.
Can you check the php version at http://my.domain.com/vl/tests/phpinfo.php ? I use php 4.4.3
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
cloink
Lapin nain
Lapin nain
cloink


Localisation : Belgium
Nabaztag : Poekie
Nbr de messages : 16
Carottes : 6439

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 14:39

oaz a écrit:
Can you check the php version at http://my.domain.com/vl/tests/phpinfo.php ? I use php 4.4.3
Sure: PHP Version 4.4.4.

And it was configured with the following parameters:

phpinfo a écrit:
'./configure' '--with-mysql=/usr' '--enable-calendar' '--enable-force-cgi-redirect' '--with-config-file-path=/etc/php/cgi' '--enable-trans-sid' '--with-gd' '--with-ttf=/usr' '--with-freetype-dir=/usr' '--enable-exif' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '--enable-ftp' '--with-curl=/usr' '--with-mcrypt=/usr' '--with-pspell=/usr' '--enable-xslt' '--with-dom-xslt=/usr' '--with-dom=/usr' '--with-xslt-sablot=/usr' '--with-openssl=/usr' '--enable-mbstring=all' '--with-gettext'
I did tinker a bit with the function to retrieve the baseurl, seeing I'm on a rather special shared environment (I host at DreamHost), but as the mp3 is correctly uploaded and placed into the burrow, I'm guessing this shouldn't be a problem... ?

:fote:

If you'd like, I could setup an account for you on my domain, so you can test yourself?
Revenir en haut Aller en bas
http://nabaztag.cloink.com/
clayde
Bronze Nabz
Bronze Nabz
clayde


Age : 48
Localisation : seine et marne
Nabaztag : abalon (v1) / javanab (v2)
Nbr de messages : 149
Carottes : 6827

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 14:44

Code:

'../configure' '--with-pear' '--with-mysql=/usr' '--with-zlib' '--enable-debug=no' '--enable-safe-mode=no' '--enable-discard-path=no' '--with-gd' '--with-png-dir=/usr/lib' '--enable-track-vars' '--with-db' '--with-gdbm' '--enable-force-cgi-redirect' '--with-ttf=/usr/' '--enable-ftp' '--with-mcrypt' '--enable-dbase' '--enable-memory-limit' '--enable-calendar' '--enable-wddx' '--with-jpeg-dir=/usr/src/kundenserver/jpeg-6b' '--enable-bcmath' '--enable-gd-imgstrttf' '--enable-shmop' '--enable-mhash' '--with-mhash=/usr/src/kundenserver/mhash-0.8.9/' '--with-openssl' '--enable-xslt' '--with-xslt-sablot' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-imap' '--with-curl' '--with-iconv=/usr/local' '--with-freetype-dir=/usr/include/freetype2' '--with-bz2' '--with-gettext' '--enable-exif' '--with-idn' '--enable-mbstring=all'

ma version php est 4.4.4 aussi...
Revenir en haut Aller en bas
NerdUno
Lapin nain
Lapin nain



Localisation : U.S.
Nabaztag : PatTheNerd
Nbr de messages : 14
Carottes : 6445

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 14:50

Same results as clayde for me with php 4.4.4. You can try our proxy here. phpinfo disabled for safety. :-)

wabbitvittles.com/vl

No sound from api test or from Violet messages.
No lights or sound from api test of MP3.

O:10:"burrowdata":1:{s:10:"fileToPlay";s:20:"/broad/0/0/1/2/3.mp3";}

2007-01-23 06:29:18 /vl/p4.jsp?sn=************&v=65799&st=1&sd=2&tc=172be86&h=4 7f [0a,288]011e5b4fe15391745c8ed59f7988a80f11f9f2eefbfac6c09b860df9f2eefb66ac4881cd3cccd09c5ecc6184abdc05b0dc48ea2aeef51cd5c3ec715c2188f9807fc29526834f2001e28e8a01475f7926a74f11f9f2eefbfac6c09b860df9f2eefb66ac4881cd3cccd06e292cee6c9c5ecca0bbc65a8b2dee876efd71882445f6bb4f11f9f2eefbfac6c09b860df9f2eefb66ff5f00f4961781327bdf67cedc891f1d807fc2953ffb4f24cd88244588a80f11f9f2eefbfac6c09b860df9f2eefb66ac4881cd3cccd09c5ecc6184abdc05b0dc48ea2aeef51cd5c3ec715c2188f9807fc29526834f2001e28e8a01475f7926a74f11f9f2eefbfac6c09b860df9f2eefb66ac4881cd3cccd06e292cee6c9c5ecca0bbc65a8b2dee876efd71882445 [03,1]78 [04,25]7fffffff000000000000000000000000000000000000050500 ff0a
Revenir en haut Aller en bas
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 21:33

Frankly guys, I don't know what to say.

Tested on my php 4.4.4 and it works fine

Connected to wabbitvittles.com and it worked too : I requested file '123' and my tag/tag suddenly started to sing 'kill the rabbit ! kill the rabbit !' affraid

There's something we are missing but I still don't know what it is.
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
clayde
Bronze Nabz
Bronze Nabz
clayde


Age : 48
Localisation : seine et marne
Nabaztag : abalon (v1) / javanab (v2)
Nbr de messages : 149
Carottes : 6827

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 23:26

bon j'ai tracé en mettant un proxy entre opennab et violet , et je n'ai pas de retour de la p4 me disant de lire un mp3 quand je lui en envoie un, et pour le record, je lui envoie bien mais il n'est pas enregistré yellownabzsad
Revenir en haut Aller en bas
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMar 23 Jan 2007 - 23:53

clayde a écrit:
bon j'ai tracé en mettant un proxy entre opennab et violet , et je n'ai pas de retour de la p4 me disant de lire un mp3 quand je lui en envoie un, et pour le record, je lui envoie bien mais il n'est pas enregistré yellownabzsad

Pour le record, j'ai tracé le truc et effectivement, je me suis bien mélangé les pinceaux... hammer
Si tu veux tenter un correction en live, il faut juste modifier la ligne 57 dans /vl/analyze/tools.php pour y mettre :
preg_match( '#/vl/(.*?)\.(php|jsp)#', $r->uri, $matches );
Et il faut aussi mettre ANALYSIS_IS_ACTIVE à true car l'enregistrement est pour l'instant restreint à une activité d'analyse.

Sinon il y a bien un bug sur la remontée de l'enregistrement à Violet pour la reconnaissance vocale (tel que l'avait pressenti Pixel du Rezo).
Etude en cours car j'ai un peu de mal avec le HTTP POST de Curl...
Toute aide est la bienvenue... Cela se passe dans /vl/includes/request.php

Pour le p4 et le mp3, je vois vraiment pas.
Tu dis que tu as mis 'un proxy entre opennab et violet' mais je ne suis pas sûr de comprendre. Rien ne circule entre OpenNab et Violet pour ce qui est de faire jouer un mp3 par OpenNab.
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
clayde
Bronze Nabz
Bronze Nabz
clayde


Age : 48
Localisation : seine et marne
Nabaztag : abalon (v1) / javanab (v2)
Nbr de messages : 149
Carottes : 6827

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 0:06

dsl je voulais dire entre mon lapin et opennab yellownabzsmile, et bah suis fatigué ce soir yellownabzwink, et donc rien en retour de la trame p4 pour dire au lapin de jouer un mp3...
Pour l'aide oui je vais m'y tenter mais j'avouerais quand php je débute, mais ton code est propre et orienté objet, ça devrait pas mal aider ! yellownabzsmile
mais bon pour ce soir dodo...
@+
Revenir en haut Aller en bas
NerdUno
Lapin nain
Lapin nain



Localisation : U.S.
Nabaztag : PatTheNerd
Nbr de messages : 14
Carottes : 6445

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 1:19

I noticed that your Mac address in burrows is lower case while mine was upper case. Does case matter?

Also the entries for your burrow and mine were different?

O:10:"burrowdata":1:{s:10:"fileToPlay";s:20:"/broad/0/0/1/2/3.mp3";}

O:10:"burrowdata":1:{s:10:"fileToPlay";b:0;}

If these differences don't matter, then perhaps there is some setting at Violet's end that is causing different behavior??
Revenir en haut Aller en bas
NerdUno
Lapin nain
Lapin nain



Localisation : U.S.
Nabaztag : PatTheNerd
Nbr de messages : 14
Carottes : 6445

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 1:55

My question about a setting at Violet's end comes from this blurb this week:

API / Sending a URL to a tag/tag

The development of this functionality has been completed and in final test phase ! We have high hopes that this will be available by tomorrow night ! You will also be able to take advantage of streaming audio and reading MP3 files with your tag/tag.

So perhaps it is turned on for your bunny and not ours. That still wouldn't explain why we lose ALL SOUND (even from Violet) once the proxy is enabled.
Revenir en haut Aller en bas
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 9:58

clayde a écrit:
dsl je voulais dire entre mon lapin et opennab yellownabzsmile, et bah suis fatigué ce soir yellownabzwink, et donc rien en retour de la trame p4 pour dire au lapin de jouer un mp3...
Je ne vois pas trop quoi faire à part rajouter du log et encore du log pour voir à quel endroit ça coince.
Pour OpenNab 0.03, je vais rajouter un niveau de log supplémentaire de type 'debug' pour mieux cerner le truc...
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 10:05

NerdUno a écrit:
I noticed that your Mac address in burrows is lower case while mine was upper case. Does case matter?
Sure !
In OpenNab 0.02 the API is case sensitive : serial number string must be exactly the same as requested by the rabbit when calling p4.jsp
I think it's a good idea to change that in the next version so that we do not have to bother.

NerdUno a écrit:
Also the entries for your burrow and mine were different?

O:10:"burrowdata":1:{s:10:"fileToPlay";s:20:"/broad/0/0/1/2/3.mp3";}

O:10:"burrowdata":1:{s:10:"fileToPlay";b:0;}
The one with the file name is the burrow state when some file needs to be played.
The other one is the burrow state when there's no file to play (though some files might have been played before : after a file is played, the burrow turns back to this 'no file' state)

NerdUno a écrit:
If these differences don't matter, then perhaps there is some setting at Violet's end that is causing different behavior??
I don't think so because sending back the play order does not involve Violet's servers.
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 10:09

NerdUno a écrit:
My question about a setting at Violet's end comes from this blurb this week:

API / Sending a URL to a tag/tag

The development of this functionality has been completed and in final test phase ! We have high hopes that this will be available by tomorrow night ! You will also be able to take advantage of streaming audio and reading MP3 files with your tag/tag.

So perhaps it is turned on for your bunny and not ours. That still wouldn't explain why we lose ALL SOUND (even from Violet) once the proxy is enabled.

OpenNab is not related to this API.
You mean you lose all sound? That's another issue.
Do you see any type 0a blocks in the p4 logs ?
Are they followed in the log by requests to /broad/<whatever> ?
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
corwin76
Nabz Junior
Nabz Junior



Age : 39
Localisation : Le Havre pas loin (BDGC)
Nabaztag : Naigel (V2)
Nbr de messages : 74
Carottes : 6455

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 16:56

oaz a écrit:

Et toi chez Free tu n'as pas le problème de l'erreur 404 ?
Si tu demande avec un browser 'http://moncompte.free.fr/vl/toto' tu obtiens bien un message 'ERROR 404 from OpenNab' ?

Désolé, pas regardé le forum dernièrement.

J'ai bien le message d'erreur 404 en demandant /toto yellownabzsmile
Revenir en haut Aller en bas
http://www.naigel.fr
NerdUno
Lapin nain
Lapin nain



Localisation : U.S.
Nabaztag : PatTheNerd
Nbr de messages : 14
Carottes : 6445

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 17:06

I found the problem. Now all we need is HOW TO fix it. The issue is definitely the UPPER CASE LETTERS in the MAC address. As soon as I entered all lower case and send kill-thewabbit.mp3 through the api_demo script, it played. I still get no sound from Violet, and that is because I entered my MAC address with them in ALL UPPER CASE. I do get blinking lights which is the same thing I get locally by entering ALL UPPER CASE. So... all we need is a way to accept either UPPER or lower case letters in the MAC address, and I think it will be perfect.

I'll look around in the code, but you can probably point to the problem in a few seconds. I'm not that smart. :-)
Revenir en haut Aller en bas
clayde
Bronze Nabz
Bronze Nabz
clayde


Age : 48
Localisation : seine et marne
Nabaztag : abalon (v1) / javanab (v2)
Nbr de messages : 149
Carottes : 6827

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 17:10

good news !!!! je teste ça ce soir
Revenir en haut Aller en bas
oaz
Silver Nabz
Silver Nabz



Localisation : Haute-Garonne
Nabaztag : oaz (v2)
Nbr de messages : 352
Carottes : 6512

OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitimeMer 24 Jan 2007 - 17:36

NerdUno a écrit:
I'll look around in the code, but you can probably point to the problem in a few seconds. I'm not that smart. :-)

I cannot test it right now but I think replacing:
$this->fileName = 'burrows/'.$serialNumber;
at line 45 in file /vl/includes/burrow.php
by
$this->fileName = 'burrows/'.strtolower($serialNumber);
will do the job.
Revenir en haut Aller en bas
http://barrejadis.azeau.com/
Contenu sponsorisé





OpenNab 0.02 - Page 2 Empty
MessageSujet: Re: OpenNab 0.02   OpenNab 0.02 - Page 2 Icon_minitime

Revenir en haut Aller en bas
 
OpenNab 0.02
Revenir en haut 
Page 2 sur 3Aller à la page : Précédent  1, 2, 3  Suivant
 Sujets similaires
-
» OpenNab 0.08
» OpenNab 0.05
» OpenNab 0.06
» OpenNab 0.09
» OpenNab 0.06 : pas de son

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum des Objets Communicants et Solutions pour les Libérer... :: II. Nabaztag, Karotz, mir:ror, Dal:Dal (Violet Object Operating System) :: L'univers de Nabaztag :: Archives :: API-
Sauter vers: