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)“, &AccountManager::Api_ChangePasswd
/ojn_api/accounts/registerNewAccount(login,username,pass)”, &AccountManager::Api_RegisterNewAccount
/ojn_api/accounts/removeAccount(login)“, &AccountManager::Api_RemoveAccount
/ojn_api/accounts/addBunny(login,bunnyid)”, &AccountManager::Api_AddBunny
/ojn_api/accounts/removeBunny(login,bunnyid)“, &AccountManager::Api_RemoveBunny
/ojn_api/accounts/removeZtamp(login,zid)”, &AccountManager::Api_RemoveZtamp
/ojn_api/accounts/settoken(tk)“, &AccountManager::Api_SetToken
/ojn_api/accounts/setadmin(user)”, &AccountManager::Api_SetAdmin
/ojn_api/accounts/setlanguage(login,lng)“, &AccountManager::Api_SetLanguage
/ojn_api/accounts/getlanguage(login)”, &AccountManager::Api_GetLanguage
/ojn_api/accounts/infos(user)“, &AccountManager::Api_GetUserInfos
/ojn_api/accounts/GetUserlist()”, &AccountManager::Api_GetUserlist
/ojn_api/accounts/GetConnectedUsers()“, &AccountManager::Api_GetConnectedUsers
/ojn_api/accounts/GetListOfAdmins()”, &AccountManager::Api_GetListOfAdmins
Gestion des lapins
“getListOfConnectedBunnies()”, &BunnyManager::Api_GetListOfConnectedBunnies “getListOfBunnies()”, &BunnyManager::Api_GetListOfBunnies “removeBunny(serial)”, &BunnyManager::Api_RemoveBunny “addBunny(serial)”, &BunnyManager::Api_AddBunny “getListofAllBunnies()”,&BunnyManager::Api_GetListOfAllBunnies “getListofAllConnectedBunnies()”,&BunnyManager::Api_GetListOfAllConnectedBunnies “resetAllBunniesPassword()”,&BunnyManager::Api_ResetAllBunniesPassword
Lapin
“registerPlugin(name)”, &Bunny::Api_AddPlugin “unregisterPlugin(name)”, &Bunny::Api_RemovePlugin “getListOfActivePlugins()”, &Bunny::Api_GetListOfAssociatedPlugins “setSingleClickPlugin(name)”, &Bunny::Api_SetSingleClickPlugin “setDoubleClickPlugin(name)”, &Bunny::Api_SetDoubleClickPlugin “getClickPlugins()”, &Bunny::Api_GetClickPlugins “getListOfKnownRFIDTags()”, &Bunny::Api_GetListOfKnownRFIDTags “setRFIDTagName(tag,name)”, &Bunny::Api_SetRFIDTagName “setBunnyName(name)”, &Bunny::Api_SetBunnyName “setService(service,value)”, &Bunny::Api_SetService “resetPassword()”, &Bunny::Api_ResetPassword “resetOwner()”, &Bunny::Api_ResetOwner “disconnect()”, &Bunny::Api_Disconnect “setInsomniac(insomniac)”, &Bunny::Api_setInsomniac “getInsomniac()”, &Bunny::Api_getInsomniac “setPublicVAPI(public)”, &Bunny::Api_setPublicVApi “getPublicVAPI()”, &Bunny::Api_getPublicVApi “enableVAPI()”, &Bunny::Api_enableVApi “disableVAPI()”, &Bunny::Api_disableVApi “getVAPIStatus()”, &Bunny::Api_getVApiStatus “getVAPIToken()”, &Bunny::Api_getVApiToken “setVAPIToken(tk)”, &Bunny::Api_setVApiToken “getlast(param)”, &Bunny::Api_getOneLast “getlasts()”, &Bunny::Api_getAllLast
Gestion des ztamps
“getListOfZtamps()”, &ZtampManager::Api_GetListOfZtamps “getListOfAllZtamps()”, &ZtampManager::Api_GetListOfAllZtamps
Ztamp
“registerPlugin(name)”, &Ztamp::Api_AddPlugin “unregisterPlugin(name)”, &Ztamp::Api_RemovePlugin “getListOfActivePlugins()”, &Ztamp::Api_GetListOfAssociatedPlugins “setZtampName(name)”, &Ztamp::Api_SetZtampName “removeOwner(login)”, &Ztamp::Api_RemoveOwner “resetOwner()”, &Ztamp::Api_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