This is an old revision of the document!


Liste des commandes API

Gestion des comptes utilisateurs

/ojn_api/accounts/auth(login,pass) : authentification d'un utilisateur

/ojn_api/accounts/changePassword(login,pass) :

/ojn_api/accounts/registerNewAccount(login,username,pass) :

/ojn_api/accounts/removeAccount(login) :

/ojn_api/accounts/addBunny(login,bunnyid) :

/ojn_api/accounts/removeBunny(login,bunnyid) :

/ojn_api/accounts/removeZtamp(login,zid) :

/ojn_api/accounts/settoken(tk) :

/ojn_api/accounts/setadmin(user) :

/ojn_api/accounts/setlanguage(login,lng) :

/ojn_api/accounts/getlanguage(login) :

/ojn_api/accounts/infos(user) :

/ojn_api/accounts/GetUserlist() :

/ojn_api/accounts/GetConnectedUsers() :

/ojn_api/accounts/GetListOfAdmins() :

Gestion des lapins

/ojn_api/bunnies/getListOfConnectedBunnies() :

/ojn_api/bunnies/getListOfBunnies() :

/ojn_api/bunnies/removeBunny(serial) :

/ojn_api/bunnies/addBunny(serial) :

/ojn_api/bunnies/getListofAllBunnies() :

/ojn_api/bunnies/getListofAllConnectedBunnies() :

/ojn_api/bunnies/resetAllBunniesPassword() :

Lapin

/ojn_api/bunny/<MAC_ADDRESS>/registerPlugin(name) :

/ojn_api/bunny/<MAC_ADDRESS>/unregisterPlugin(name) :

/ojn_api/bunny/<MAC_ADDRESS>/getListOfActivePlugins() :

/ojn_api/bunny/<MAC_ADDRESS>/setSingleClickPlugin(name) :

/ojn_api/bunny/<MAC_ADDRESS>/setDoubleClickPlugin(name) :

/ojn_api/bunny/<MAC_ADDRESS>/getClickPlugins() :

/ojn_api/bunny/<MAC_ADDRESS>/getListOfKnownRFIDTags() :

/ojn_api/bunny/<MAC_ADDRESS>/setRFIDTagName(tag,name) :

/ojn_api/bunny/<MAC_ADDRESS>/setBunnyName(name) :

/ojn_api/bunny/<MAC_ADDRESS>/setService(service,value) :

/ojn_api/bunny/<MAC_ADDRESS>/resetPassword() :

/ojn_api/bunny/<MAC_ADDRESS>/resetOwner() :

/ojn_api/bunny/<MAC_ADDRESS>/disconnect() :

/ojn_api/bunny/<MAC_ADDRESS>/setInsomniac(insomniac) :

/ojn_api/bunny/<MAC_ADDRESS>/getInsomniac() :

/ojn_api/bunny/<MAC_ADDRESS>/setPublicVAPI(public) :

/ojn_api/bunny/<MAC_ADDRESS>/getPublicVAPI() :

/ojn_api/bunny/<MAC_ADDRESS>/enableVAPI() :

/ojn_api/bunny/<MAC_ADDRESS>/disableVAPI() :

/ojn_api/bunny/<MAC_ADDRESS>/getVAPIStatus() :

/ojn_api/bunny/<MAC_ADDRESS>/getVAPIToken() :

/ojn_api/bunny/<MAC_ADDRESS>/setVAPIToken(tk) :

/ojn_api/bunny/<MAC_ADDRESS>/getlast(param) :

/ojn_api/bunny/<MAC_ADDRESS>/getlasts() :

Gestion des ztamps

/ojn_api/ztamps/getListOfZtamps() :

/ojn_api/ztamps/getListOfAllZtamps() :

Ztamp

/ojn_api/ztamp/<SERIAL>/registerPlugin(name) :

/ojn_api/ztamp/<SERIAL>/unregisterPlugin(name) :

/ojn_api/ztamp/<SERIAL>/getListOfActivePlugins() :

/ojn_api/ztamp/<SERIAL>/setZtampName(name) :

/ojn_api/ztamp/<SERIAL>/removeOwner(login) :

/ojn_api/ztamp/<SERIAL>/resetOwner() :

Gestion des plugins

/ojn_api/plugins/getListOfPlugins() :

/ojn_api/plugins/getListOfEnabledPlugins() :

/ojn_api/plugins/getListOfBunnyPlugins() :

/ojn_api/plugins/getListOfBunnyEnabledPlugins() :

/ojn_api/plugins/getListOfZtampPlugins() :

/ojn_api/plugins/getListOfZtampEnabledPlugins() :

/ojn_api/plugins/getListOfRequiredPlugins() :

/ojn_api/plugins/getListOfSystemPlugins() :

/ojn_api/plugins/getListOfSystemEnabledPlugins() :

/ojn_api/plugins/activatePlugin(name) :

/ojn_api/plugins/deactivatePlugin(name) :

/ojn_api/plugins/loadPlugin(filename) :

/ojn_api/plugins/unloadPlugin(name) :

/ojn_api/plugins/reloadPlugin(name) :

Plugins

Wizz.cc flux

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/addrfid(tag,name) :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/removerfid(tag) :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/addwebcast(time,name) :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/removewebcast(time) :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/setdefault(name) :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/getdefault() :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/play(name) :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/listwebcast() :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/listflux() :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/getflux() :

/ojn_api/bunny/<MAC_ADDRESS>/wizzflux/setflux(list) :

Colorbreathing

/ojn_api/bunny/<MAC_ADDRESS>/colorbreathing/getColorList() :

/ojn_api/bunny/<MAC_ADDRESS>/colorbreathing/setColor(name) :

/ojn_api/bunny/<MAC_ADDRESS>/colorbreathing/getColor() :

Ephemeride

/ojn_api/bunny/<MAC_ADDRESS>/ephemeride/addwebcast(time) :

/ojn_api/bunny/<MAC_ADDRESS>/ephemeride/removewebcast(time) :

/ojn_api/bunny/<MAC_ADDRESS>/ephemeride/getwebcastslist() :

Mémo

/ojn_api/bunny/<MAC_ADDRESS>/memo/addwebcast(day,time,message) :

/ojn_api/bunny/<MAC_ADDRESS>/memo/removewebcast(day,time) :

/ojn_api/bunny/<MAC_ADDRESS>/memo/getwebcastslist() :

/ojn_api/bunny/<MAC_ADDRESS>/memo/adddaily(time,message) :

/ojn_api/bunny/<MAC_ADDRESS>/memo/removedaily(time) :

/ojn_api/bunny/<MAC_ADDRESS>/memo/getdailylist() :

Test

/ojn_api/bunny/<MAC_ADDRESS>/test/test(type) :

Météo

/ojn_api/bunny/<MAC_ADDRESS>/weather/addrfid(tag,city) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/removerfid(tag) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/addcity(city) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/removecity(city) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/getcitieslist() :

/ojn_api/bunny/<MAC_ADDRESS>/weather/setLed(status) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/getLed() :

/ojn_api/bunny/<MAC_ADDRESS>/weather/setdefaultcity(city) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/getdefaultcity() :

/ojn_api/bunny/<MAC_ADDRESS>/weather/addwebcast(time,city) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/removewebcast(time) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/getwebcastslist() :

/ojn_api/bunny/<MAC_ADDRESS>/weather/setlang(lg) :

/ojn_api/bunny/<MAC_ADDRESS>/weather/getlang() :

Webradio

/ojn_api/bunny/<MAC_ADDRESS>/webradio/addrfid(tag,name) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/removerfid(tag) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/addpreset(name,url) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/removepreset(name) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/addwebcast(time,name) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/removewebcast(time) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/setdefault(name) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/getdefault() :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/play(name) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/playurl(url) :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/listwebcast() :

/ojn_api/bunny/<MAC_ADDRESS>/webradio/listpreset() :

Packet

/ojn_api/bunny/<MAC_ADDRESS>/packet/sendPacket(data) :

/ojn_api/bunny/<MAC_ADDRESS>/packet/sendMessage(msg) :

Airquality

/ojn_api/bunny/<MAC_ADDRESS>/airquality/addrfid(tag,city) :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/removerfid(tag) :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/addcity(city) :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/removecity(city) :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/getcitieslist() :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/setdefaultcity(city) :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/getdefaultcity() :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/addwebcast(time,city) :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/removewebcast(time) :

/ojn_api/bunny/<MAC_ADDRESS>/airquality/getwebcastslist() :

Sleep

/ojn_api/bunny/<MAC_ADDRESS>/sleep/sleep() :

/ojn_api/bunny/<MAC_ADDRESS>/sleep/wakeup() :

/ojn_api/bunny/<MAC_ADDRESS>/sleep/setup(wakeupList,sleepList) :

/ojn_api/bunny/<MAC_ADDRESS>/sleep/getsetup() :

Music

“addrfid(tag,music)”, PluginMusic, Api_AddRFID “removerfid(tag)”, PluginMusic, Api_RemoveRFID “getfileslist()”, PluginMusic, Api_getFilesList

Ears

“getFriend()”, PluginEars, Api_getFriend “setFriend(id)”, PluginEars, Api_setFriend

Callurl

“addrfid(tag,url)”, PluginCallURL, Api_AddRFID “removerfid(tag)”, PluginCallURL, Api_RemoveRFID “setdefaulturl(url)”, PluginCallURL, Api_setDefaultUrl “getdefaulturl()”, PluginCallURL, Api_getDefaultUrl “addwebcast(time,url)”, PluginCallURL, Api_AddWebcast “removewebcast(time)”, PluginCallURL, Api_RemoveWebcast “getwebcastslist()”, PluginCallURL, Api_ListWebcast “addurl(url)”, PluginCallURL, Api_addUrl “removeurl(url)”, PluginCallURL, Api_removeUrl “geturlslist()”, PluginCallURL, Api_getUrlsList

Taïchi

“setFrequency(value)”, PluginTaichi, Api_SetFrequency “getFrequency()”, PluginTaichi, Api_GetFrequency

TTS

“say(text)”, PluginTTS, Api_Say

Auth

“setAuthMethod(name)”, PluginAuth, Api_SelectAuth “getListOfAuthMethods()”, PluginAuth, Api_GetListOfAuths

Locate

“setcustomlocate(param,value)”, PluginLocate, Api_SetCustomLocateSetting “getcustomlocate(param)”, PluginLocate, Api_GetCustomLocateSetting

MsgAll

“say(text)”, PluginMsgall, Api_Say

RFID

“getLastTag()”, PluginRFID, Api_GetLastTag “getLastTagForBunny(sn)”, PluginRFID, Api_GetLastTagForBunny

Annuaire

“setURL(url)”, PluginAnnuaire, Api_setURL “getURL()”, PluginAnnuaire, Api_getURL “searchbunnybymac(mac)”, PluginAnnuaire, Api_SearchBunnyByMac “searchbunnybyname(name)”, PluginAnnuaire, Api_SearchBunnyByName “verifymactoken(mac,reqtoken)”, PluginAnnuaire, Api_VerifyMacToken

Stats

“getcolors()”, PluginStats, Api_GetColors “getplugins()”, PluginStats, Api_GetPlugins “getbunniesip()”, PluginStats, Api_GetBunniesIP “getbunniesname()”, PluginStats, Api_GetBunniesName); “getbunniesstatus()”, PluginStats, Api_GetBunniesStatus “getbunniesinformation()”,PluginStats, Api_GetBunniesInformation

Cinéma

“addwebcast(day,time)”, PluginCinema, Api_AddWebcast “removewebcast(day,time)”, PluginCinema, Api_RemoveWebcast “getwebcastslist()”, PluginCinema, Api_GetWebcasts

TV

“addwebcast(time)”, PluginTV, Api_AddWebcast “removewebcast(time)”, PluginTV, Api_RemoveWebcast “listwebcast()”, PluginTV, Api_ListWebcast “setchannel(list)”, PluginTV, Api_SetChannel “listchannel()”, PluginTV, Api_ListChannel

RATP

“addarret(item)”, PluginRatp, Api_addArret “removearret(item)”, PluginRatp, Api_removeArret “getlistarret()”, PluginRatp, Api_getListArret “setdefaultarret(item)”, PluginRatp, Api_setDefaultArret “getdefaultarret()”, PluginRatp, Api_getArretDefaut “addwebcast(time,item)”, PluginRatp, Api_AddWebcast “removewebcast(time)”, PluginRatp, Api_RemoveWebcast “getwebcastslist()”, PluginRatp, Api_ListWebcast “addrfid(tag,item)”, PluginRatp, Api_AddRFID “removerfid(tag)”, PluginRatp, Api_RemoveRFID

Surprise

“setFolder(name)”, PluginSurprise, Api_SetFolder “getFolder()”, PluginSurprise, Api_GetFolder “getFolderList()”, PluginSurprise, Api_GetFolderList “setFrequency(value)”, PluginSurprise, Api_SetFrequency “getFrequency()”, PluginSurprise, Api_GetFrequency

Clock

/ojn_api/bunny/<MAC_ADDRESS>/clock/setVoice(name) :

/ojn_api/bunny/<MAC_ADDRESS>/clock/getVoiceList() :