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
“getListOfPlugins()”, &PluginManager::Api_GetListOfPlugins “getListOfEnabledPlugins()”, &PluginManager::Api_GetListOfEnabledPlugins “getListOfBunnyPlugins()”, &PluginManager::Api_GetListOfBunnyPlugins “getListOfBunnyEnabledPlugins()”, &PluginManager::Api_GetListOfBunnyEnabledPlugins “getListOfZtampPlugins()”, &PluginManager::Api_GetListOfZtampPlugins “getListOfZtampEnabledPlugins()”, &PluginManager::Api_GetListOfZtampEnabledPlugins “getListOfRequiredPlugins()”, &PluginManager::Api_GetListOfRequiredPlugins “getListOfSystemPlugins()”, &PluginManager::Api_GetListOfSystemPlugins “getListOfSystemEnabledPlugins()”, &PluginManager::Api_GetListOfSystemEnabledPlugins “activatePlugin(name)”, &PluginManager::Api_ActivatePlugin “deactivatePlugin(name)”, &PluginManager::Api_DeactivatePlugin “loadPlugin(filename)”, &PluginManager::Api_LoadPlugin “unloadPlugin(name)”, &PluginManager::Api_UnloadPlugin “reloadPlugin(name)”, &PluginManager::Api_ReloadPlugin
Plugins
Wizz.cc flux
“addrfid(tag,name)”, PluginWizzflux, Api_AddRFID “removerfid(tag)”, PluginWizzflux, Api_RemoveRFID “addwebcast(time,name)”, PluginWizzflux, Api_AddWebcast “removewebcast(time)”, PluginWizzflux, Api_RemoveWebcast “setdefault(name)”, PluginWizzflux, Api_SetDefault “getdefault()”, PluginWizzflux, Api_GetDefault “play(name)”, PluginWizzflux, Api_Play “listwebcast()”, PluginWizzflux, Api_ListWebcast “listflux()”, PluginWizzflux, Api_ListFlux “getflux()”, PluginWizzflux, Api_GetFlux “setflux(list)”, PluginWizzflux, Api_SetFlux
Colorbreathing
“getColorList()”, PluginColorbreathing, Api_GetColorList “setColor(name)”, PluginColorbreathing, Api_SetColor “getColor()”, PluginColorbreathing, Api_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
“setVoice(name)”, PluginClock, Api_SetVoice “getVoiceList()”, PluginClock, Api_GetVoiceList