Forum dédié aux karot:z, nabaztag:tag, mir:ror, dal:dal...


 
AccueilAccueil  FAQFAQ  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  

Partager | 
 

 Simple API Utility & Weather Service

Voir le sujet précédent Voir le sujet suivant Aller en bas 
Aller à la page : 1, 2  Suivant
AuteurMessage
JB
Lapin nain
Lapin nain


Nbr de messages: 7
Points: 2031

MessageSujet: Simple API Utility & Weather Service   Mar 31 Oct 2006 - 23:30

I know this has been done plenty of times before (through various available web services etc), but for what it's worth here's a simple stand alone app that will run on any home PC and interact with your rabbit through the standard API. You'll need Microsoft .net version 2.0 to run it, and the usual API key, serial etc. Thats it.

No great prizes for coding, but it's simple and allows you to have a go at interacting with your rabbit.

You can down load the app from here:
http://www.eabconsulting.co.uk/NabCtrl_v0.1.exe

Let me know if it is of use / works!

JB


Dernière édition par le Dim 5 Nov 2006 - 17:44, édité 1 fois
Revenir en haut Aller en bas
NaBoByZ
Nabazteur Courtois
Nabazteur Courtois


Localisation: Btx
Nom du Nabaztag: NaBoByZ
Nbr de messages: 4367
Points: 2071

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 0:05

Works for me, very good job, thanks for this API.
Revenir en haut Aller en bas
Le_Zepf
Platinum Nabz
Platinum Nabz


Localisation: Paname
Nom du Nabaztag: LeLapinduZepf (v1) - LeLapinpinduZepf (v2) - Latoopine (v2 en stage)
Nbr de messages: 1490
Points: 2271

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 0:15

HI, thanks for this great job. Fonctions of the first tab are working like a charm, but I can't activate functions in the second table....
Revenir en haut Aller en bas
http://www.zaepffel.net
NaBoByZ
Nabazteur Courtois
Nabazteur Courtois


Localisation: Btx
Nom du Nabaztag: NaBoByZ
Nbr de messages: 4367
Points: 2071

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 0:20

Me too !
Revenir en haut Aller en bas
JB
Lapin nain
Lapin nain


Nbr de messages: 7
Points: 2031

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 7:56

The idea with the Weather event is that the app will announce the Weather if you put the Rabbit's ears in a set position (currently left ear pointing upwards!). The data is sourced from Weather.com (you have to register for their API service) so you can get much more specific information than Nabaztag allows you - current conditions, today's forecast and tomorrow's forecsast.

The announcement event is probably self explanatory but is only part written - at the moment you can schedule a single announcement which the rabbit will read out at a particular time of day.

If you are interested I can put up another version with this functionality enabled?

Let me know.

JB
Revenir en haut Aller en bas
Le_Zepf
Platinum Nabz
Platinum Nabz


Localisation: Paname
Nom du Nabaztag: LeLapinduZepf (v1) - LeLapinpinduZepf (v2) - Latoopine (v2 en stage)
Nbr de messages: 1490
Points: 2271

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 11:27

Hi,

That could be great to have all these functionnalities also enable (weather & annoucement).

Can you also explain us the way you get the ears position (push or pull) to have the weather annoucment?

Thanks
Revenir en haut Aller en bas
http://www.zaepffel.net
JB
Lapin nain
Lapin nain


Nbr de messages: 7
Points: 2031

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 20:17

OK. I'll re-enable the weather and announcement functionality and upload a new version later this evening. I'll also give you a link to where on Weather.com you need to register for their XML API service - you basically need to get a key and serial number like with the Nabaztag API which you enter in to the app.

The way the trigger works for the weather announcement is that every 60 seconds the application checks to see how the rabbit's ears are positioned. If it detects that the left ear is upright (at position 0 or two points either side) it triggers the weather announcement to be sent.

The intention is to eventually make it configurable which ear or ears and at what position the weather announcement is triggered - but I haven't got round to doing that yet!

JB
Revenir en haut Aller en bas
Le_Zepf
Platinum Nabz
Platinum Nabz


Localisation: Paname
Nom du Nabaztag: LeLapinduZepf (v1) - LeLapinpinduZepf (v2) - Latoopine (v2 en stage)
Nbr de messages: 1490
Points: 2271

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 20:47

Thanks a lot, I was wondering you had found another way to get ears position... but not this time SmileNabz

Thanks for sharing your time and your software !
Revenir en haut Aller en bas
http://www.zaepffel.net
JB
Lapin nain
Lapin nain


Nbr de messages: 7
Points: 2031

MessageSujet: Re: Simple API Utility & Weather Service   Mer 1 Nov 2006 - 23:47

Right, here's a link to a new version with the additional functionality activated:
http://www.eabconsulting.co.uk/NabCtrl_v0.2.exe

Things to note are:
1) I thought you would need to register with Weather.com but strangely they seem to pass back the weather information even without providing the IDs normally required. Try opening this page to see an example for Paris (there is meant to be a parameter after 'par=' and 'key='):
Code:
http://xoap.weather.com/weather/local/FRXX0076?cc=*&dayf=2&unit=m&prod=xoap&par=&key=

(the forum reply box wouldn't accept such a long URL, hence the 'code' entry!)

If you stop getting weather information returned then you can register for Weather.com's XML data service here:
https://registration.weather.com/ursa/xmloap/step1?

2) Apart from activating the event, to trigger the weather announcement you need to move your rabbit's left ear to point upwards (position 0). Currently the app only checks for the ear position every 60 seconds so you may need to wait a short while before the announcement is sent

3) If you get weird results or the app crashes, try turning on the debug (bottom right hand side of the app). This will create a fairly detailed log file in the root of the C drive

Good luck! VeryHapnadz

JB
Revenir en haut Aller en bas
BK
@ Violet
@ Violet


Localisation: Paris
Nom du Nabaztag: Zim
Nbr de messages: 20
Points: 2052

MessageSujet: Re: Simple API Utility & Weather Service   Jeu 2 Nov 2006 - 13:16

Sweet app JB!

This is BK over at Violet... just wanted to let you know that your app (or this thread, more precisely) has been linked to at the official blog

('yeah')
Revenir en haut Aller en bas
JB
Lapin nain
Lapin nain


Nbr de messages: 7
Points: 2031

MessageSujet: Re: Simple API Utility & Weather Service   Ven 15 Déc 2006 - 19:19

Here's a link to an updated version of the utility which (should!) take in to account the recent changes to the Nabaztag API and has some additional functionality.

Once downloaded, just run the executable - oh, don't forget to set up your API details on the third tab!

http://www.eabconsulting.co.uk/NabCtrl_v0.4.exe

JB
Revenir en haut Aller en bas
jaina_organasolo
Lapin nain
Lapin nain


Age: 30
Localisation: Uk, Birmingham
Nom du Nabaztag: FrankTheBunny
Nbr de messages: 32
Points: 1990

MessageSujet: Re: Simple API Utility & Weather Service   Sam 30 Déc 2006 - 12:35

What do you put in under "Key" I assume that's my bunny's name as most API apps ask for it.
Revenir en haut Aller en bas
washu
Nabz Junior
Nabz Junior


Age: 26
Localisation: France
Nom du Nabaztag: Washu
Nbr de messages: 70
Points: 1977

MessageSujet: Re: Simple API Utility & Weather Service   Sam 30 Déc 2006 - 20:18

I have the same problem with the key, where can I find it?
Revenir en haut Aller en bas
nabazland
Karotzeur taquin


Age: 45
Localisation: Rouen - France
Nom du Nabaztag: Caulfield (v2.1)
Nbr de messages: 9840
Points: 4335

MessageSujet: Re: Simple API Utility & Weather Service   Sam 30 Déc 2006 - 22:00

Hey,
the key is not yet mandatory,
and you can't genrenated it with the new website.
So.. No key for the moment.

_____________________________


Revenir en haut Aller en bas
http://www.nabzone.com
jaina_organasolo
Lapin nain
Lapin nain


Age: 30
Localisation: Uk, Birmingham
Nom du Nabaztag: FrankTheBunny
Nbr de messages: 32
Points: 1990

MessageSujet: Re: Simple API Utility & Weather Service   Mer 10 Jan 2007 - 13:12

Trying to use this and i'm not getting any actual announcement. When program is on, bunny's left ear moves to 5, when i pull ear back to 0, nothing happens although in the weather status box i get "time last announced" about the same time as i moved ears.
I get no actual annoncement. is this something to do with RSS feeds not working?
Revenir en haut Aller en bas
 

Simple API Utility & Weather Service

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 2Aller à la page : 1, 2  Suivant

 Sujets similaires

-
» une simple histoire avec une vraie morale
» Service de sécurité à AIX LES BAINS.
» |Secret Service| Recrutement [OFF]
» [Proposition de service] Bijoutier/joaillomage
» Kayna, Crâ de cercle 193, à votre service!

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum dédié aux karot:z, nabaztag:tag, mir:ror, dal:dal... :: If you do not speak french ... :: Archives :: API & Developments-