|
| Nabaztag emulator for Karotz (OJN) | |
|
+3Pixel du Rezo dark_line carlo64 7 participants | |
Auteur | Message |
---|
carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Nabaztag emulator for Karotz (OJN) Sam 28 Mar 2015 - 15:30 | |
| ok, let's try to gather the family ... This is an emulator of Nabaztag to load on our Karotz to be taken as it is ^_^ prerequisite: Openkarotz set variables MAC and H with your mac address and your server OJN in the script copy the files in '/ usr / openkarotz / Extra /' with ftp or the way you want if you change the folder name must also customize the variable SCRIPT add your Karotz on server OJN connect to telnet to Karotz go to the folder '/ usr / openkarotz / Extra /' and run: python s004.py .. Wait a few seconds if all goes well you will see 'Authentication complete ....' go to set the plugin into server OJN obviously not all work (would be nice!!) but something already goes .. https://github.com/ccarlo64/nabaztag-emulator Ciao Carlo 2021 update: for Freerabbits https://github.com/ccarlo64/nabaztag-emulator/tree/master/for_freerabbits Carlo
Dernière édition par carlo64 le Lun 22 Fév 2021 - 20:15, édité 1 fois | |
| | | carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Lun 30 Mar 2015 - 20:55 | |
| updated! now should work also click and double click on the Karotz! Carlo | |
| | | carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mer 8 Avr 2015 - 21:39 | |
| little update now with 3 click run emulator and with other 3 click stop emulator rfid maybe work (testing..) some fixes to control specific functions of the Karotz I inserted a customizable package. for example if I send the message via plugin 7fcc000001ff is run with the parameter script.sh customize k000001 (I put snap photos on email) but it is just an idea! Carlo | |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Jeu 9 Avr 2015 - 14:19 | |
| Hi there!
Sorry if I'm saying big mistakes, I'm really new to the rabbit's world and own a Karotz (his name is Blackie) for only a week or so, so I have many things to learn.
Your posts seem to say that with your emulator, Karotz rabbits can now join an OpenJabNab server. Without the emulator, they can't, because OpenJabNab only supports Nabaztag V1 and V2.
Is this assumption correct?
If it is, then I have a problem understanding this sentence: "set variables MAC and H with your mac address and your server OJN in the script".
Because... if you're a Karotz, you can't * already * have an OJN server... so how do you know the address of the server?
Or did you mean... the proud Karotz's owner has first to decide which OJN server to join, THEN add this piece of information to the script?
By the way, I did found the OJN website here : http://openjabnab.fr/ojn_admin/index.php
but : 1) I don't see a list of available servers with addresses or stuff 2) the "how do I set up my bunny" explains that you have to put the rabbit in ad-hoc mode... but doesn't this only apply to Nabaztag? Can Karotzes may be put in ad-hoc mode too?
Once again, sorry if these are dumb questions, and thanks for your help, eventually! | |
| | | carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Jeu 9 Avr 2015 - 18:44 | |
| Hi! ok I try, I'm not good at explaining .. :/ you must create an account and register your Karotz like a nabaztag on the server that you indicated on Karotz you have to follow the installation of openkarotz shown here http://www.openkarotz.org/ variables to the script will then h = 'openjabnab.fr' ..the and mac mac address of Karotz what you used to register the server openjabnab.fr update instructions copy the files nabemu.py and script.sh in '/ usr / openkarotz / Extra /' and dbus_evens in / usr / www / cgi-bin (make a backup of original file first) reboot the karotz after the boot 3 click in the head, this will start the program let me know! Carlo - dark_line a écrit:
- Hi there!
Sorry if I'm saying big mistakes, I'm really new to the rabbit's world and own a Karotz (his name is Blackie) for only a week or so, so I have many things to learn.
Your posts seem to say that with your emulator, Karotz rabbits can now join an OpenJabNab server. Without the emulator, they can't, because OpenJabNab only supports Nabaztag V1 and V2.
Is this assumption correct?
If it is, then I have a problem understanding this sentence: "set variables MAC and H with your mac address and your server OJN in the script".
Because... if you're a Karotz, you can't * already * have an OJN server... so how do you know the address of the server?
Or did you mean... the proud Karotz's owner has first to decide which OJN server to join, THEN add this piece of information to the script?
By the way, I did found the OJN website here : http://openjabnab.fr/ojn_admin/index.php
but : 1) I don't see a list of available servers with addresses or stuff 2) the "how do I set up my bunny" explains that you have to put the rabbit in ad-hoc mode... but doesn't this only apply to Nabaztag? Can Karotzes may be put in ad-hoc mode too?
Once again, sorry if these are dumb questions, and thanks for your help, eventually! | |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Jeu 9 Avr 2015 - 20:40 | |
| Hi and thanks for the answer and explanation!
Alright, so now I understand... the last point would be: when you say "3 click in the head", you mean physically click on the head of the rabbit?
Or is it something else?
And... last but not least, just to be sure: with the emulator AND openkarotz, the rabbit:
- can still be controlled via openkarotz and the http://address_of_the_rabbit and do stuff - can do things on OpenJabNab, use plugins, etc.
both at the same time?
| |
| | | carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Jeu 9 Avr 2015 - 21:19 | |
| Hi yes iI hooked the launch of the program at three click physically! and yes openkarotz at the http://address_of_the_rabbit work but, only for physically events (ztamps and click on head), need to restore dbus_event file original the plugin on OpenJabNab, work almost all.. clock, news etc.. I'm working for the Taichi.. but is testing.. Notify problems please! Carlo - dark_line a écrit:
- Hi and thanks for the answer and explanation!
Alright, so now I understand... the last point would be: when you say "3 click in the head", you mean physically click on the head of the rabbit?
Or is it something else?
And... last but not least, just to be sure: with the emulator AND openkarotz, the rabbit:
- can still be controlled via openkarotz and the http://address_of_the_rabbit and do stuff - can do things on OpenJabNab, use plugins, etc.
both at the same time?
| |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Ven 10 Avr 2015 - 9:24 | |
| Hi Carlo,
I didn't try yet your emulator, but I must admit that it's the idea I have in mind to plu the karotz on OJN servers. Knowing that you start an emulator, I'm going to install it on my karotz (after having installed openkarotz - didn't take the time to do that).
After that, I could improve openJabNab to take karotz into account.
Best regards, and very good work ! _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Ven 10 Avr 2015 - 11:43 | |
| The bunny can't connect. It seems the authentication process is not good for all bunnies (maybe it's good for your bunny AND server together) _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Ven 10 Avr 2015 - 16:21 | |
| Hi! mmmmmm I have tested the program with a server homemade (with StandAloneAuthBypass = true into openjabnab.ini file) and with the server openznab.it and work Try to check variables mac and h in file nabemu.py maybe some extra character Where you are connecting? Can I register and do the tests? Carlo - Pixel du Rezo a écrit:
- The bunny can't connect. It seems the authentication process is not good for all bunnies (maybe it's good for your bunny AND server together)
| |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Ven 10 Avr 2015 - 17:02 | |
| I'm connecting on my server : openjabnab.fr ( openjabnab.fr/vl for the bunny) You can connect your bunny, and check all plugins, for a nabaztag:tag, a karotz, etc. The StandAloneAuthBypass is False (it's a public server)
Here is a log on the server : [10/04/2015 16:51:22.668] virtual bool PluginAuth::DoAuth(XmppHandler*, const QByteArray&, Bunny**, QByteArray&) : Authentication failure for bunny: 000e8e2XXX6d
So the MAC address is good (I've changed your nabemu.py to automatically retreive it from the system), and h is good also, because the server receive the connecting query.
Do not hesitate to tell me (MP) your MAC address to see if all is good for you.
I've made some test by uncommenting the lines to debug your nabemu.py The password for the bunny failed, and then it does not register. _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Ven 10 Avr 2015 - 18:00 | |
| ops! evidently the server openznab is in easymode... sorry .. I will have to review all part authentication! ok I will record in your server and begin some test, i will keep you informed! thanks Carlo - Pixel du Rezo a écrit:
- I'm connecting on my server : openjabnab.fr ( openjabnab.fr/vl for the bunny)
You can connect your bunny, and check all plugins, for a nabaztag:tag, a karotz, etc. The StandAloneAuthBypass is False (it's a public server)
Here is a log on the server : [10/04/2015 16:51:22.668] virtual bool PluginAuth::DoAuth(XmppHandler*, const QByteArray&, Bunny**, QByteArray&) : Authentication failure for bunny: 000e8e2XXX6d
So the MAC address is good (I've changed your nabemu.py to automatically retreive it from the system), and h is good also, because the server receive the connecting query.
Do not hesitate to tell me (MP) your MAC address to see if all is good for you.
I've made some test by uncommenting the lines to debug your nabemu.py The password for the bunny failed, and then it does not register. | |
| | | carlo64 Bronze Nabz
Localisation : italia Nbr de messages : 163 Carottes : 3828
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Dim 12 Avr 2015 - 20:15 | |
| Hi Pixel I should have solved (I hope) the problem of authentication file is nabemu_test.py my bunny connect to your server but.. after a few minutes disconnect.. your server wait for ping to hold connection alive? and for message < button.. do you have change anything from the original server? thanks for help Carlo | |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Dim 12 Avr 2015 - 20:42 | |
| I'll try the new version asap. Didn't have a karotz with me now. Yes, the server i waiting for a ping, and disconnect when there is no ping. But the click should be the same...
I'll tel you as soon as I can test. _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 14:54 | |
| Hi guys and rabbits' lovers. Blackie The Karotz and I need your help! Here is what I've done so far: - go to openjabnab.fr, create an account, give the MAC address of the Karotz and his name - Karotz appears "disconnected" on the server (mystery: how the hell do you connect the rabbit to the openjabnag server? I've read the wiki and FAQ but couldn't find the way, if Blackie was a Nabaztag V2...) - go to Github and download the 6 files in the repository - edit the files : • nabemu.py with rabbit's MAC address and openjabnab.fr server • nabemu_test.py with rabbit's MAC address and openjabnab.fr server (notice this file has a password, nabemu.py does not. Leave the password as it was) - send by FTP to the rabbit : • dbus_events in user / www / cgi-bin (after making a backup of the original dbus_events file) • nabemu.py and nabemutest.py in openkarotz/Extra which I created • renamed nabemu.py _nabemu.py temporarily (because only one of them must be the right one) • (EDIT) : send the other files also to openkarotz/Extra - turn off the rabbit, turn it back on (I don't know how to reboot it otherwise) - see the green light flashing slowly (Internet is all good) - click three times on the button on the head - Blackie says "Oops" or something short. That is all. Rabbit still shows as "disconnected" when I'm on openjabnab.fr with my browser. What am I not doing, or doing wrong? @carlo64 : On Github you have written: "add your Karotz server OJN connect to telnet to Karotz go to the folder '/ usr / openkarotz / Extra /' and run python s004.py .. Wait a few seconds if all goes well you will see 'Authentication complete ....'
go to set the plugin server OJN:-)"
This totally confuses me: I thought that the emulator was started with the 3 clicks on the head. Does "run python s004.py" still apply? If yes, how do you do that? And what is the plugin server OJN? Again, apologies for my dumb questions... I'm really new to all this! Thanks for your help!
Dernière édition par dark_line le Mar 14 Avr 2015 - 15:27, édité 1 fois | |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 15:22 | |
| Could you send me (PM) the MAC address of the bunny, so that I can check in the logs where the problem is.
Best regards _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 15:28 | |
| - Pixel du Rezo a écrit:
- Could you send me (PM) the MAC address of the bunny, so that I can check in the logs where the problem is.
Best regards Sure I can, doing it right now! Thanks for your help! | |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 17:18 | |
| Hello again, Pixel du Rezo has nicely verified that the MAC address of Blackie was nowhere to be seen in the log of openjabnab, sniff sniff. He asked if I could run the script manually, so I did: telnet IP_of_Blackie login : karotz Was welcomed with the -bash-4.1# prompt. After some struggling (my linux is a bit rusty), I found that I could do: /usr / openkarotz / Extra / nabemu_test.py (or any other script) in the / Extra and get: Permission denied each time. So indeed, I verified that all files in /Extra are only Read and Write, but not Executable. I don't know if that's normal, and how to change that, so Blackie and me are stuck here! Waiting for any help, Blackie is sitting on his brand new carrot USB dongle ;-) | |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 17:54 | |
| Answer given by MP _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 18:01 | |
| - Pixel du Rezo a écrit:
- Answer given by MP
Indeed, MP received, thank you very much! Trying right now to connect (in a minute...) ! For those of you readers who would be wondering how to change the permissions, here is what Pixel du Rezo advised me to do: - telnet Ip_of_the_Rabbit - "cd /usr/openkarotz/Extra" (sans les "") - "chmod +x *.py" (toujours sans les "") - "chmod +x *.sh" (toujours sans les "") - "python nabemu_test.py" (encore sans les "") Let's test! | |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 18:15 | |
| Oh my god, it did connect! -bash-4.1# python nabemu_test.py Socket Created Yeee! Socket Connected to openjabnab.fr on ip 87.XX.XX.XX (lots of stuff...)
Authentication complete.... Now wait.... (press ^C to exit)... found 1 message extra.. Connecting to openjabnab.fr (87. rfid.jsp?sn=000e8e2c 100% |***** rfid send D.... two button click! >>>receive: .... <<<<<<< 7.... len 4 0 RB 5... 7f.... MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team CPU: ARM Creating config file: /usr/karotz/.mplayer/config two button click!I clicked twice on the button... Now it seems the connection to openjabnab was successfull but I get an error message saying the rabbit "MAC_of_Blackie" is already connected as "guest" (see screenshot). Maybe I did something too slowly? | |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 18:36 | |
| Hum, maybe it's a bug hidden in a feature : the double click could be activated to associate the bunny to an account in some case... I'll try to reproduce that to fix.
But, the green message (in french), says that after this error, you have 1 minute to double click again, and that will associate the bunny to your account.
Best regards _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 19:20 | |
| Alright! Blackie and I are happy to announce that he is now successfully connected to the openjabnab server, this is great. Thanks Pixel du Rezo and carlo64, really! At first, the script wrote in the telnet console: double-click... now that the bunny was successfully associated to my openjabnab account, this mention does not appear anymore. Good ! (So the double-click is only used to associate the bunny, really) Now Blackie is connected... it stays about 5 2 minutes, then disconnects. Clicking 3 times on the button does not seem to reconnect him to the server, sadly Also, in the telnet console, there is: MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team CPU: ARM Is this important?
Dernière édition par dark_line le Mar 14 Avr 2015 - 19:27, édité 1 fois | |
| | | Pixel du Rezo Special Nabz
Age : 45 Localisation : Montpellier Nabaztag : Ptiloo (V1), Kymoo (V2), Mymoo (V2), Lyloo (V2), Maryloo (V2), Faitoo (V2), Titoo (V2), Kachoo (Karotz) Nbr de messages : 2708 Carottes : 13341
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 19:25 | |
| No, Mplayer is not important (it's the software that will read the sound files) _____________________________
Toutes les infos sur mon serveur openJabNab sont sur mon wiki nabaztag/tag et openJabnab
| |
| | | dark_line Bronze Nabz
Age : 54 Localisation : In ze Black Rabbit Hole Nabaztag : Karotz (blanc, donc Blackie) Nbr de messages : 148 Carottes : 3665
| Sujet: Re: Nabaztag emulator for Karotz (OJN) Mar 14 Avr 2015 - 19:28 | |
| - Pixel du Rezo a écrit:
- No, Mplayer is not important (it's the software that will read the sound files)
Thanks for the information | |
| | | Contenu sponsorisé
| Sujet: Re: Nabaztag emulator for Karotz (OJN) | |
| |
| | | | Nabaztag emulator for Karotz (OJN) | |
|
Sujets similaires | |
|
| Permission de ce forum: | Vous ne pouvez pas répondre aux sujets dans ce forum
| |
| |
| |