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


 
AccueilAccueil  GalerieGalerie  FAQFAQ  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  

Partagez | 
 

 Nabaztag emulator for Karotz (OJN)

Voir le sujet précédent Voir le sujet suivant Aller en bas 
Aller à la page : Précédent  1, 2, 3, 4, 5, 6
AuteurMessage
carlo64
Bronze Nabz
Bronze Nabz


Nbr de messages : 101

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mer 28 Oct 2015 - 20:15

did you do these steps?
telnet

cd /usr/openkarotz/Extra
cp /usr/www/cgi-bin/dbus_events /usr/www/cgi-bin/dbus_events_backup
cp dbus_events /usr/www/cgi-bin
chmod a+x /usr/www/cgi-bin/dbus_events

reboot karotz

after boot the bunny say 'ready' etc etc
you can press three times the head

Carlo




jcinfo a écrit:
carlo64 a écrit:
to run the emulator, just press quickly three times the head.

Y press 3 times and ... nothing.
Revenir en haut Aller en bas
jcinfo
Nabz Junior
Nabz Junior


Localisation : France or spain
Nbr de messages : 50
Carottes : 2429

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mer 28 Oct 2015 - 22:05

Ok nice now it's ok yellownabzsmile
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Dim 8 Nov 2015 - 12:08

carlo64 a écrit:
Bonjour
essayez de changer la valeur de la variable 'loopTry' dans le fichier nabemu.py

---
loopTry=50 ### CHANGE if you want
---

sont le nombre de tentatives de reconnexion
essayez une valeur élevée 500/1000

Carlo

emmanuel.goldstein a écrit:
le karotz ne reconnecte pas quand pixel est offline trop longtemps ;(

ne marche pas - pixel a redemarre son serveur aujourd hui.
mon karotz a le valeur 1000 et ne se relier pas.
Revenir en haut Aller en bas
carlo64
Bronze Nabz
Bronze Nabz


Localisation : italia
Nbr de messages : 101
Carottes : 835

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Lun 9 Nov 2015 - 9:23

I must study a function of log to find out what happens!
as I have time I make attempts. Also some logs on the side of Pixel could be useful ...  nabzsmile
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Dim 22 Nov 2015 - 13:14

Autoconnect loopTry=1000 failed.

pixel rebooted today, it just got my attention after 7 hours.
Karotz was not reconnected.

Do you need some of my karotz logfiles?

Ask pixel for his, as I'm still the only karotz on his server.
Revenir en haut Aller en bas
dark_line
Bronze Nabz
Bronze Nabz


Age : 46
Localisation : In ze Black Rabbit Hole
Nabaztag : Karotz (blanc, donc Blackie)
Nbr de messages : 148
Carottes : 761

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Ven 27 Nov 2015 - 9:23

emmanuel.goldstein a écrit:
Autoconnect loopTry=1000 failed.

pixel rebooted today, it just got my attention after 7 hours.
Karotz was not reconnected.

Do you need some of my karotz logfiles?

Ask pixel for his, as I'm still the only karotz on his server.

Not the only Karotz around anymore, Blackie is back!

It's been a while (life has been busy), still running with a rather old version of the emulator, I'll do my best to update (next week probably).

Meanwhile... Blackie will be connected as is.
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Ven 27 Nov 2015 - 9:29




Juhuuu!!
Revenir en haut Aller en bas
dark_line
Bronze Nabz
Bronze Nabz


Age : 46
Localisation : In ze Black Rabbit Hole
Nabaztag : Karotz (blanc, donc Blackie)
Nbr de messages : 148
Carottes : 761

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Ven 27 Nov 2015 - 9:38

carlo64 a écrit:
Hi,
I add httpPort in the source, please update..

------
h = 'openjabnab.fr'   ################# CHANGE HERE
httpPort=':80'; ## :80 or empty for default
port = 5222;
--------
not change port 5222, it's xmpp port, hardly it is changed on the server.

I hope work!
yellownabzwink

Ciao
Carlo


Hello carlo,

Nice to see there has been some newsies here.
So what's the idea with adding the httpPort? What function (or future function) does it give to the Karotz?

In other words: how do you use it?
Revenir en haut Aller en bas
carlo64
Bronze Nabz
Bronze Nabz


Localisation : italia
Nbr de messages : 101
Carottes : 835

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Lun 30 Nov 2015 - 15:09

Welcome back dark_line!!
nabzciao

Httpport used when connecting to a server using a configuration other than port 80 (default for http)
not used to openjabnab.fr but for other servers homemade

Carlo
Revenir en haut Aller en bas
dark_line
Bronze Nabz
Bronze Nabz


Age : 46
Localisation : In ze Black Rabbit Hole
Nabaztag : Karotz (blanc, donc Blackie)
Nbr de messages : 148
Carottes : 761

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Ven 11 Déc 2015 - 9:39

Merci carlo !

I could not find the time to update with the latest version of nabemu.py... but I understand it's not necessary for just connecting the rabbit to openjabnab.

Since I reconnected Blackie two weeks ago, I noticed several unexplained disconnections from the server.
I can't explain them, my connection is very stable so the rabbit shouldn't disconnect.

Where should I look to explain that? Are there logs inside the rabbit maybe?
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Jeu 17 Déc 2015 - 20:43

it's fast and easy to get your karotz back online.

Karotz and Nabaztag-Emulator


connects your Karotz with Openkarotz to a nabaztag-server.
git clone https://github.com/ccarlo64/nabaztag-emulator.git
Transfer by ftp the content of nabaztag-emulator/* to /usr/openkarotz/Extras.
Now telnet karotz - username: openkarotz password:

cd /usr/openkarotz/Extras
chmod a+x *.py
chmod a+x *.sh
cp /usr/www/cgi-bin/dbus_events /usr/www/cgi-bin/dbus_events_backup
cp dbus_events /usr/www/cgi-bin
chmod a+x /usr/www/cgi-bin/dbus_events

Have an account on http://openjabnab.fr/ojn_admin/index.php ready with the MAC of your rabbit.

Restart your Karotz.
Push the button at top of the head three times, wait for the funny sound, see your rabbit connected at http://openjabnab.fr/ojn_admin/index.php.

To debug - telnet to your Karotz - username: openkarotz password:
cd /usr/openkarotz/Extras
python nabemu.py
now watch the messages of this script and ask here for help to connect.
Revenir en haut Aller en bas
carlo64
Bronze Nabz
Bronze Nabz


Localisation : italia
Nbr de messages : 101
Carottes : 835

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Sam 9 Jan 2016 - 12:32

Hi,
updated nabemu.py

I rewrote some code, I hope now that the connection lasts longer.
if you want to try it!  nabzsteam

I added also a kind of log, based on the value that we give to the variable
if you want to see better what happens between rabbit and ojn set to 1 or 2:

logSW = 0 # value: nothing 0, 1 write file log.txt (warning no size control), 2 console

remember to check the address of your server ojn

Carlo
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mer 20 Jan 2016 - 1:04

disconnects continuously.
at least each day.
please help.

Code:


t
pollButton..
t
pollButton..
t
o
( Tue Jan 19 16:59:38 2016 )  send: <presence from='000e8e2c9165@openjabnab.fr/idle' id='183'></presence>
( Tue Jan 19 16:59:38 2016 )  receive: <presence from='000e8e2c9165@openjabnab.fr/idle' to='000e8e2c9165@openjabnab.fr/idle' id='183'/>
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
o
( Tue Jan 19 17:00:05 2016 )  SENDANDRECEIVE: recv
( Tue Jan 19 17:00:05 2016 )  send: <presence from='000e8e2c9165@openjabnab.fr/idle' id='184'></presence>
( Tue Jan 19 17:00:05 2016 )  receive:
( Tue Jan 19 17:00:05 2016 )  ERROR: exit loop while, try reconnect..
Yeee! Socket Connected to openjabnab.fr on ip 87.98.154.94
( Tue Jan 19 17:00:07 2016 )  SENDANDRECEIVE: recv
( Tue Jan 19 17:00:07 2016 )  send: <?xml version='1.0' encoding='UTF-8'?><stream:stream to='openjabnab.fr' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
( Tue Jan 19 17:00:07 2016 )  receive:
( Tue Jan 19 17:00:10 2016 )  SENDANDRECEIVE: recv
( Tue Jan 19 17:00:10 2016 )  send: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
( Tue Jan 19 17:00:10 2016 )  receive:
( Tue Jan 19 17:00:10 2016 )  INIT: Error fase 2 nonce not found :(
Revenir en haut Aller en bas
carlo64
Bronze Nabz
Bronze Nabz


Localisation : italia
Nbr de messages : 101
Carottes : 835

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mer 20 Jan 2016 - 9:47

Hi!

curious, my Karotz holds several days!
try increasing the value in the file nabemu.py
-----
later = 0.4 #delay between send and receive

try 0.7 or 0.8

we will find the optimal value for the server!

let me know
Carlo


emmanuel.goldstein a écrit:
disconnects continuously.
at least each day.
please help.

Code:


t
pollButton..
t
pollButton..
t
o
( Tue Jan 19 16:59:38 2016 )  send: <presence from='000e8e2c9165@openjabnab.fr/idle' id='183'></presence>
( Tue Jan 19 16:59:38 2016 )  receive: <presence from='000e8e2c9165@openjabnab.fr/idle' to='000e8e2c9165@openjabnab.fr/idle' id='183'/>
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
pollButton..
t
o
( Tue Jan 19 17:00:05 2016 )  SENDANDRECEIVE: recv
( Tue Jan 19 17:00:05 2016 )  send: <presence from='000e8e2c9165@openjabnab.fr/idle' id='184'></presence>
( Tue Jan 19 17:00:05 2016 )  receive:
( Tue Jan 19 17:00:05 2016 )  ERROR: exit loop while, try reconnect..
Yeee! Socket Connected to openjabnab.fr on ip 87.98.154.94
( Tue Jan 19 17:00:07 2016 )  SENDANDRECEIVE: recv
( Tue Jan 19 17:00:07 2016 )  send: <?xml version='1.0' encoding='UTF-8'?><stream:stream to='openjabnab.fr' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
( Tue Jan 19 17:00:07 2016 )  receive:
( Tue Jan 19 17:00:10 2016 )  SENDANDRECEIVE: recv
( Tue Jan 19 17:00:10 2016 )  send: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
( Tue Jan 19 17:00:10 2016 )  receive:
( Tue Jan 19 17:00:10 2016 )  INIT: Error fase 2 nonce not found
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mar 26 Jan 2016 - 7:46

Increased on 0.8 and still disconnecting after some hours.
I'm on pixel du rezo.
Which server are you on, as I'm the only karotz on pixel du rezo?
Revenir en haut Aller en bas
carlo64
Bronze Nabz
Bronze Nabz


Localisation : italia
Nbr de messages : 101
Carottes : 835

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mar 26 Jan 2016 - 8:59

I connect to the server openznab.it
I'll try to do some tests with the openjabnab.fr

Carlo

emmanuel.goldstein a écrit:
Increased on 0.8 and still disconnecting after some hours.
I'm on pixel du rezo.
Which server are you on, as I'm the only karotz on pixel du rezo?
Revenir en haut Aller en bas
carlo64
Bronze Nabz
Bronze Nabz


Localisation : italia
Nbr de messages : 101
Carottes : 835

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Lun 15 Fév 2016 - 21:01

ok after various tests maybe now works

please retry emmanuel!

Carlo
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mar 16 Fév 2016 - 0:48

online now, lets see tomorrow
Revenir en haut Aller en bas
emmanuel.goldstein
Lapin nain
Lapin nain


Localisation : ici
Nbr de messages : 32
Carottes : 1954

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mar 23 Fév 2016 - 17:48

online since 8 days now, surviving sleep and anything - merci beaucoup!!
Revenir en haut Aller en bas
carlo64
Bronze Nabz
Bronze Nabz


Localisation : italia
Nbr de messages : 101
Carottes : 835

MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Mar 26 Juil 2016 - 12:26

Hi,
simplified installation added a self-extracting script

selfextract.it.bsx for openznab.it and
selfextract.fr.bsx for openjabnab.fr

copy into /usr/openkarotz

set execute permission
chmod +x selfextract.it.bsx or
chmod +x selfextract.fr.bsx

./selfextract.it.bsx or ./selfextract.fr.bsx

.....

reboot the karotz and after ready voice three clicks in the head

Carlo
Revenir en haut Aller en bas
Contenu sponsorisé




MessageSujet: Re: Nabaztag emulator for Karotz (OJN)   Aujourd'hui à 21:20

Revenir en haut Aller en bas
 
Nabaztag emulator for Karotz (OJN)
Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 6 sur 6Aller à la page : Précédent  1, 2, 3, 4, 5, 6
 Sujets similaires
-
» Nabaztag emulator for Karotz (OJN)
» API nabaztag -> karotz !
» Que devient le nabaztag avec le karotz ?
» parler de nabaztag à nabaztag
» Re-initialiser un Nabaztag ?

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) :: Le monde de Karotz-
Sauter vers: