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
“addwebcast(time)”, PluginEphemeride, Api_AddWebcast “removewebcast(time)”, PluginEphemeride, Api_RemoveWebcast “getwebcastslist()”, PluginEphemeride, Api_GetWebcastsList
Mémo
“addwebcast(day,time,message)”, PluginMemo, Api_AddWebcast “removewebcast(day,time)”, PluginMemo, Api_RemoveWebcast “getwebcastslist()”, PluginMemo, Api_ListWebcast “adddaily(time,message)”, PluginMemo, Api_AddDailyWebcast “removedaily(time)”, PluginMemo, Api_RemoveDailyWebcast “getdailylist()”, PluginMemo, Api_ListDailyWebcast
Test
“test(type)”, PluginTest, Api_LaunchTests
Météo
“addrfid(tag,city)”, PluginWeather, Api_AddRFID “removerfid(tag)”, PluginWeather, Api_RemoveRFID “addcity(city)”, PluginWeather, Api_addCity “removecity(city)”, PluginWeather, Api_removeCity “getcitieslist()”, PluginWeather, Api_getCitiesList “setLed(status)”, PluginWeather, Api_setLed “getLed()”, PluginWeather, Api_getLed “setdefaultcity(city)”, PluginWeather, Api_setDefaultCity “getdefaultcity()”, PluginWeather, Api_getDefaultCity “addwebcast(time,city)”, PluginWeather, Api_AddWebcast “removewebcast(time)”, PluginWeather, Api_RemoveWebcast “getwebcastslist()”, PluginWeather, Api_ListWebcast “setlang(lg)”, PluginWeather, Api_setLang “getlang()”, PluginWeather, Api_getLang
Webradio
“addrfid(tag,name)”, PluginWebradio, Api_AddRFID “removerfid(tag)”, PluginWebradio, Api_RemoveRFID “addpreset(name,url)”, PluginWebradio, Api_AddPreset “removepreset(name)”, PluginWebradio, Api_RemovePreset “addwebcast(time,name)”, PluginWebradio, Api_AddWebcast “removewebcast(time)”, PluginWebradio, Api_RemoveWebcast “setdefault(name)”, PluginWebradio, Api_SetDefault “getdefault()”, PluginWebradio, Api_GetDefault “play(name)”, PluginWebradio, Api_Play “playurl(url)”, PluginWebradio, Api_PlayUrl “listwebcast()”, PluginWebradio, Api_ListWebcast “listpreset()”, PluginWebradio, Api_ListPreset
Packet
“sendPacket(data)”, PluginPacket, Api_SendPacket “sendMessage(msg)”, PluginPacket, Api_SendMessage
Airquality
“addrfid(tag,city)”, PluginAirquality, Api_AddRFID “removerfid(tag)”, PluginAirquality, Api_RemoveRFID “addcity(city)”, PluginAirquality, Api_addCity “removecity(city)”, PluginAirquality, Api_removeCity “getcitieslist()”, PluginAirquality, Api_getCitiesList “setdefaultcity(city)”, PluginAirquality, Api_setDefaultCity “getdefaultcity()”, PluginAirquality, Api_getDefaultCity “addwebcast(time,city)”, PluginAirquality, Api_AddWebcast “removewebcast(time)”, PluginAirquality, Api_RemoveWebcast “getwebcastslist()”, PluginAirquality, Api_ListWebcast
Sleep
“sleep()”, PluginSleep, Api_Sleep “wakeup()”, PluginSleep, Api_Wakeup “setup(wakeupList,sleepList)”, PluginSleep, Api_Setup “getsetup()”, PluginSleep, Api_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() :