Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
commandes_api [2012/04/09 22:56] alexis [Clock] |
commandes_api [2019/08/25 13:56] (current) |
| |
/ojn_api/accounts/changePassword(login,pass) : | /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/addBunny(login,bunnyid) : |
| |
/ojn_api/accounts/settoken(tk) : | /ojn_api/accounts/settoken(tk) : |
| |
/ojn_api/accounts/setadmin(user) : | |
| |
/ojn_api/accounts/setlanguage(login,lng) : | /ojn_api/accounts/setlanguage(login,lng) : |
| |
/ojn_api/accounts/infos(user) : | /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 ===== | ===== Lapin ===== |
| |
/ojn_api/bunny/<MAC_ADDRESS>/getlasts() : | /ojn_api/bunny/<MAC_ADDRESS>/getlasts() : |
| |
===== Gestion des ztamps ===== | |
| |
/ojn_api/ztamps/getListOfZtamps() : | |
| |
/ojn_api/ztamps/getListOfAllZtamps() : | |
| |
===== Ztamp ===== | ===== Ztamp ===== |
| |
/ojn_api/ztamp/<SERIAL>/resetOwner() : | /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 ===== | ===== Plugins ===== |
==== Ephemeride ==== | ==== Ephemeride ==== |
| |
"addwebcast(time)", PluginEphemeride, Api_AddWebcast | /ojn_api/bunny/<MAC_ADDRESS>/ephemeride/addwebcast(time) : |
"removewebcast(time)", PluginEphemeride, Api_RemoveWebcast | |
"getwebcastslist()", PluginEphemeride, Api_GetWebcastsList | /ojn_api/bunny/<MAC_ADDRESS>/ephemeride/removewebcast(time) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/ephemeride/getwebcastslist() : |
| |
==== Mémo ==== | ==== Mémo ==== |
| |
"addwebcast(day,time,message)", PluginMemo, Api_AddWebcast | /ojn_api/bunny/<MAC_ADDRESS>/memo/addwebcast(day,time,message) : |
"removewebcast(day,time)", PluginMemo, Api_RemoveWebcast | |
"getwebcastslist()", PluginMemo, Api_ListWebcast | /ojn_api/bunny/<MAC_ADDRESS>/memo/removewebcast(day,time) : |
"adddaily(time,message)", PluginMemo, Api_AddDailyWebcast | |
"removedaily(time)", PluginMemo, Api_RemoveDailyWebcast | /ojn_api/bunny/<MAC_ADDRESS>/memo/getwebcastslist() : |
"getdailylist()", PluginMemo, Api_ListDailyWebcast | |
| /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 ==== | ==== Test ==== |
| |
"test(type)", PluginTest, Api_LaunchTests | /ojn_api/bunny/<MAC_ADDRESS>/test/test(type) : |
| |
==== Météo ==== | ==== Météo ==== |
| |
"addrfid(tag,city)", PluginWeather, Api_AddRFID | /ojn_api/bunny/<MAC_ADDRESS>/weather/addrfid(tag,city) : |
"removerfid(tag)", PluginWeather, Api_RemoveRFID | |
"addcity(city)", PluginWeather, Api_addCity | /ojn_api/bunny/<MAC_ADDRESS>/weather/removerfid(tag) : |
"removecity(city)", PluginWeather, Api_removeCity | |
"getcitieslist()", PluginWeather, Api_getCitiesList | /ojn_api/bunny/<MAC_ADDRESS>/weather/addcity(city) : |
"setLed(status)", PluginWeather, Api_setLed | |
"getLed()", PluginWeather, Api_getLed | /ojn_api/bunny/<MAC_ADDRESS>/weather/removecity(city) : |
"setdefaultcity(city)", PluginWeather, Api_setDefaultCity | |
"getdefaultcity()", PluginWeather, Api_getDefaultCity | /ojn_api/bunny/<MAC_ADDRESS>/weather/getcitieslist() : |
"addwebcast(time,city)", PluginWeather, Api_AddWebcast | |
"removewebcast(time)", PluginWeather, Api_RemoveWebcast | /ojn_api/bunny/<MAC_ADDRESS>/weather/setLed(status) : |
"getwebcastslist()", PluginWeather, Api_ListWebcast | |
"setlang(lg)", PluginWeather, Api_setLang | /ojn_api/bunny/<MAC_ADDRESS>/weather/getLed() : |
"getlang()", PluginWeather, Api_getLang | |
| /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 ==== | ==== Webradio ==== |
| |
"addrfid(tag,name)", PluginWebradio, Api_AddRFID | /ojn_api/bunny/<MAC_ADDRESS>/webradio/addrfid(tag,name) : |
"removerfid(tag)", PluginWebradio, Api_RemoveRFID | |
"addpreset(name,url)", PluginWebradio, Api_AddPreset | /ojn_api/bunny/<MAC_ADDRESS>/webradio/removerfid(tag) : |
"removepreset(name)", PluginWebradio, Api_RemovePreset | |
"addwebcast(time,name)", PluginWebradio, Api_AddWebcast | /ojn_api/bunny/<MAC_ADDRESS>/webradio/addpreset(name,url) : |
"removewebcast(time)", PluginWebradio, Api_RemoveWebcast | |
"setdefault(name)", PluginWebradio, Api_SetDefault | /ojn_api/bunny/<MAC_ADDRESS>/webradio/removepreset(name) : |
"getdefault()", PluginWebradio, Api_GetDefault | |
"play(name)", PluginWebradio, Api_Play | /ojn_api/bunny/<MAC_ADDRESS>/webradio/addwebcast(time,name) : |
"playurl(url)", PluginWebradio, Api_PlayUrl | |
"listwebcast()", PluginWebradio, Api_ListWebcast | /ojn_api/bunny/<MAC_ADDRESS>/webradio/removewebcast(time) : |
"listpreset()", PluginWebradio, Api_ListPreset | |
| /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 ==== | ==== Packet ==== |
| |
"sendPacket(data)", PluginPacket, Api_SendPacket | /ojn_api/bunny/<MAC_ADDRESS>/packet/sendPacket(data) : |
"sendMessage(msg)", PluginPacket, Api_SendMessage | |
| /ojn_api/bunny/<MAC_ADDRESS>/packet/sendMessage(msg) : |
| |
==== Airquality ==== | ==== Airquality ==== |
| |
"addrfid(tag,city)", PluginAirquality, Api_AddRFID | /ojn_api/bunny/<MAC_ADDRESS>/airquality/addrfid(tag,city) : |
"removerfid(tag)", PluginAirquality, Api_RemoveRFID | |
"addcity(city)", PluginAirquality, Api_addCity | /ojn_api/bunny/<MAC_ADDRESS>/airquality/removerfid(tag) : |
"removecity(city)", PluginAirquality, Api_removeCity | |
"getcitieslist()", PluginAirquality, Api_getCitiesList | /ojn_api/bunny/<MAC_ADDRESS>/airquality/addcity(city) : |
"setdefaultcity(city)", PluginAirquality, Api_setDefaultCity | |
"getdefaultcity()", PluginAirquality, Api_getDefaultCity | /ojn_api/bunny/<MAC_ADDRESS>/airquality/removecity(city) : |
"addwebcast(time,city)", PluginAirquality, Api_AddWebcast | |
"removewebcast(time)", PluginAirquality, Api_RemoveWebcast | /ojn_api/bunny/<MAC_ADDRESS>/airquality/getcitieslist() : |
"getwebcastslist()", PluginAirquality, Api_ListWebcast | |
| /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 ==== | ==== Sleep ==== |
| |
"sleep()", PluginSleep, Api_Sleep | /ojn_api/bunny/<MAC_ADDRESS>/sleep/sleep() : |
"wakeup()", PluginSleep, Api_Wakeup | |
"setup(wakeupList,sleepList)", PluginSleep, Api_Setup | /ojn_api/bunny/<MAC_ADDRESS>/sleep/wakeup() : |
"getsetup()", PluginSleep, Api_GetSetup | |
| /ojn_api/bunny/<MAC_ADDRESS>/sleep/setup(wakeupList,sleepList) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/sleep/getsetup() : |
| |
==== Music ==== | ==== Music ==== |
| |
"addrfid(tag,music)", PluginMusic, Api_AddRFID | /ojn_api/bunny/<MAC_ADDRESS>/music/addrfid(tag,music) : |
"removerfid(tag)", PluginMusic, Api_RemoveRFID | |
"getfileslist()", PluginMusic, Api_getFilesList | /ojn_api/bunny/<MAC_ADDRESS>/music/removerfid(tag) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/music/getfileslist() : |
| |
==== Ears ==== | ==== Ears ==== |
| |
"getFriend()", PluginEars, Api_getFriend | /ojn_api/bunny/<MAC_ADDRESS>/ears/getFriend() : |
"setFriend(id)", PluginEars, Api_setFriend | |
| /ojn_api/bunny/<MAC_ADDRESS>/ears/setFriend(id) : |
| |
==== Callurl ==== | ==== Callurl ==== |
| |
"addrfid(tag,url)", PluginCallURL, Api_AddRFID | /ojn_api/bunny/<MAC_ADDRESS>/callurl/addrfid(tag,url) : |
"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 ==== | /ojn_api/bunny/<MAC_ADDRESS>/callurl/removerfid(tag) : |
| |
"setFrequency(value)", PluginTaichi, Api_SetFrequency | /ojn_api/bunny/<MAC_ADDRESS>/callurl/setdefaulturl(url) : |
"getFrequency()", PluginTaichi, Api_GetFrequency | |
| |
==== TTS ==== | /ojn_api/bunny/<MAC_ADDRESS>/callurl/getdefaulturl() : |
| |
"say(text)", PluginTTS, Api_Say | /ojn_api/bunny/<MAC_ADDRESS>/callurl/addwebcast(time,url) : |
| |
==== Auth ==== | /ojn_api/bunny/<MAC_ADDRESS>/callurl/removewebcast(time) : |
| |
"setAuthMethod(name)", PluginAuth, Api_SelectAuth | /ojn_api/bunny/<MAC_ADDRESS>/callurl/getwebcastslist() : |
"getListOfAuthMethods()", PluginAuth, Api_GetListOfAuths | |
| |
==== Locate ==== | /ojn_api/bunny/<MAC_ADDRESS>/callurl/addurl(url) : |
| |
"setcustomlocate(param,value)", PluginLocate, Api_SetCustomLocateSetting | /ojn_api/bunny/<MAC_ADDRESS>/callurl/removeurl(url) : |
"getcustomlocate(param)", PluginLocate, Api_GetCustomLocateSetting | |
| |
==== MsgAll ==== | /ojn_api/bunny/<MAC_ADDRESS>/callurl/geturlslist() : |
| |
"say(text)", PluginMsgall, Api_Say | ==== Taïchi ==== |
| |
==== RFID ==== | /ojn_api/bunny/<MAC_ADDRESS>/taichi/setFrequency(value) : |
| |
"getLastTag()", PluginRFID, Api_GetLastTag | /ojn_api/bunny/<MAC_ADDRESS>/taichi/getFrequency() : |
"getLastTagForBunny(sn)", PluginRFID, Api_GetLastTagForBunny | |
| |
==== Annuaire ==== | ==== TTS ==== |
| |
"setURL(url)", PluginAnnuaire, Api_setURL | /ojn_api/bunny/<MAC_ADDRESS>/tts/say(text) : |
"getURL()", PluginAnnuaire, Api_getURL | |
"searchbunnybymac(mac)", PluginAnnuaire, Api_SearchBunnyByMac | |
"searchbunnybyname(name)", PluginAnnuaire, Api_SearchBunnyByName | |
"verifymactoken(mac,reqtoken)", PluginAnnuaire, Api_VerifyMacToken | |
| |
==== Stats ==== | ==== Stats ==== |
| |
"getcolors()", PluginStats, Api_GetColors | /ojn_api/plugin/stats/getcolors() : |
"getplugins()", PluginStats, Api_GetPlugins | |
"getbunniesip()", PluginStats, Api_GetBunniesIP | /ojn_api/plugin/stats/getplugins() : |
"getbunniesname()", PluginStats, Api_GetBunniesName); | |
"getbunniesstatus()", PluginStats, Api_GetBunniesStatus | /ojn_api/plugin/stats/getbunniesip() : |
"getbunniesinformation()",PluginStats, Api_GetBunniesInformation | |
| /ojn_api/plugin/stats/getbunniesname() : |
| |
| /ojn_api/plugin/stats/getbunniesstatus() : |
| |
| /ojn_api/plugin/stats/getbunniesinformation() : |
| |
==== Cinéma ==== | ==== Cinéma ==== |
| |
"addwebcast(day,time)", PluginCinema, Api_AddWebcast | /ojn_api/bunny/<MAC_ADDRESS>/cinema/addwebcast(day,time) : |
"removewebcast(day,time)", PluginCinema, Api_RemoveWebcast | |
"getwebcastslist()", PluginCinema, Api_GetWebcasts | /ojn_api/bunny/<MAC_ADDRESS>/cinema/removewebcast(day,time) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/cinema/getwebcastslist() : |
| |
==== TV ==== | ==== TV ==== |
| |
"addwebcast(time)", PluginTV, Api_AddWebcast | /ojn_api/bunny/<MAC_ADDRESS>/tv/addwebcast(time) : |
"removewebcast(time)", PluginTV, Api_RemoveWebcast | |
"listwebcast()", PluginTV, Api_ListWebcast | /ojn_api/bunny/<MAC_ADDRESS>/tv/removewebcast(time) : |
"setchannel(list)", PluginTV, Api_SetChannel | |
"listchannel()", PluginTV, Api_ListChannel | /ojn_api/bunny/<MAC_ADDRESS>/tv/listwebcast() : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/tv/setchannel(list) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/tv/listchannel() : |
| |
==== RATP ==== | ==== RATP ==== |
| |
"addarret(item)", PluginRatp, Api_addArret | /ojn_api/bunny/<MAC_ADDRESS>/ratp/addarret(item) : |
"removearret(item)", PluginRatp, Api_removeArret | |
"getlistarret()", PluginRatp, Api_getListArret | /ojn_api/bunny/<MAC_ADDRESS>/ratp/removearret(item) : |
"setdefaultarret(item)", PluginRatp, Api_setDefaultArret | |
"getdefaultarret()", PluginRatp, Api_getArretDefaut | /ojn_api/bunny/<MAC_ADDRESS>/ratp/getlistarret() : |
"addwebcast(time,item)", PluginRatp, Api_AddWebcast | |
"removewebcast(time)", PluginRatp, Api_RemoveWebcast | /ojn_api/bunny/<MAC_ADDRESS>/ratp/setdefaultarret(item) : |
"getwebcastslist()", PluginRatp, Api_ListWebcast | |
"addrfid(tag,item)", PluginRatp, Api_AddRFID | /ojn_api/bunny/<MAC_ADDRESS>/ratp/getdefaultarret() : |
"removerfid(tag)", PluginRatp, Api_RemoveRFID | |
| /ojn_api/bunny/<MAC_ADDRESS>/ratp/addwebcast(time,item) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/ratp/removewebcast(time) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/ratp/getwebcastslist() : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/ratp/addrfid(tag,item) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/ratp/removerfid(tag) : |
| |
==== Surprise ==== | ==== Surprise ==== |
| |
"setFolder(name)", PluginSurprise, Api_SetFolder | /ojn_api/bunny/<MAC_ADDRESS>/surprise/setFolder(name) : |
"getFolder()", PluginSurprise, Api_GetFolder | |
"getFolderList()", PluginSurprise, Api_GetFolderList | /ojn_api/bunny/<MAC_ADDRESS>/surprise/getFolder() : |
"setFrequency(value)", PluginSurprise, Api_SetFrequency | |
"getFrequency()", PluginSurprise, Api_GetFrequency | /ojn_api/bunny/<MAC_ADDRESS>/surprise/getFolderList() : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/surprise/setFrequency(value) : |
| |
| /ojn_api/bunny/<MAC_ADDRESS>/surprise/getFrequency() : |
| |
==== Clock ==== | ==== Clock ==== |