Contenu d'une requête API JS : Jeedom.history.get

Bonsoir,

Une question sur le core Jeedom.

Je développe un widget perso dans lequel je fais une requête asynchrone en utilisant l’instruction de l’API JS

jeedom.history.get

L’idée étant de récupérer les data historiques de l’info entre les deux dates [‹ dateStart ›, ‹ dateEnd ›].
Tout semble bien fonctionner.
Je récupère bien l’objet résultat mais lorsque je regarde son contenu, je suis surpris de constater que c’est un fichier assez important qui, outre les data historiques (une cinquantaine de couples de valeurs) contient toutes les infos de paramètrages de la tuile, incluant les données CSS (ca fait un fichier de plus de 16kB !).

Est-ce que ce comportement/résultat est bien celui attendu comme résultat de cette instruction de l’API ?
Je m’attendais a ne récupérter que les couples timestamp/valeur historiques de l’info considérée
Perso, ca me parait étrange mais bon … :thinking:

Ma configuration
Raspberry Pi4B 8 Go - Debian GNU/Linux 10 (buster) 64 bits (aarch64)
Jeedom version Stable 4.3.4

Salut,

A ma connaissance je n’ai jamais été confronté à ce que tu décris dans ton 1er message et sans pouvoir visualiser quoi que ce soit difficile d’en dire plus.
Toujours à ma connaissance et après vérification dans les derniers commits du core, il n’y a eu aucune modification à ce niveau de près ou de loin…

La plupart du temps quand un bug est relevé (et donc montré et reproductible), l’équipe informe que la correction a été appliquée d’autant plus en période de nouvelle version stable.

Edit : tu as supprimé ton message du coup ma réponse n’a plus bcp de sens mais bon

Bonjour et merci pour ta réponse,

Ma question était de savoir si il était attendu de récupérer autant de données suite à une requête jeedom.history.get.
Pour ne pas surcharger mon message, je n’avais pas joint de copie de données mais j’en joins une ci-après.

J’ai cru improprement qu’il s’agissait d’un bug corrigé selon la note du changelog 4.3.6

  • Correction d’un bug sur la modale de configuration des historiques.

mais ce n’est pas le cas …
J’en déduit que le fichier que je récupère est donc bien l’attendu.

 {"maxValue":19.2,"minValue":12.8,"dateStart":"2022-10-25 0:0:0","dateEnd":"2022-10-25 15:46:57","round":0,"derive":"","cmd_name":"Terrasse Temperature","history_name":"[Climate Data][ TempHumid (remote RPi4B1)][Terrasse Temperature]","unite":"°C","cmd":{"id":"52","logicalId":"","generic_type":"TEMPERATURE","eqType":"virtual","name":"Terrasse Temperature","order":"9","type":"info","subType":"numeric","eqLogic_id":"13","isHistorized":"1","unite":"°C","configuration":{"calcul":"#3926#","returnStateValue":"","returnStateTime":"","updateCmdId":"","minValue":"-10","maxValue":"+50","listValue":"","timeline::enable":"0","timeline::folder":"","influx::enable":"0","influx::namecmd":"","influx::nameEq":"","influx::nameVal":"","interact::auto::disable":"0","calculValueOffset":"","historizeRound":"","jeedomCheckCmdOperator":"==","jeedomCheckCmdTest":"","jeedomCheckCmdTime":"","historizeMode":"avg","historyPurge":"","denyValues":"","repeatEventManagement":"never","jeedomPushUrl":"","actionCheckCmd":[],"jeedomPreExecCmd":[],"jeedomPostExecCmd":[],"jeemate::inverted":"0","alert::messageReturnBack":"0"},"template":{"dashboard":"customtemp::TempHumidGauge","mobile":"default"},"display":{"invertBinary":"0","icon":"","showNameOndashboard":"0","showNameOnmobile":"1","showIconAndNamedashboard":"0","showIconAndNamemobile":"0","forceReturnLineBefore":"0","forceReturnLineAfter":"0","parameters":{"Type":"Temperature"},"showStatsOndashboard":"1","showStatsOnmobile":"1"},"value":"#3926#","isVisible":"1","alert":{"warningif":"#value# > 40","warningduring":"1","dangerif":"","dangerduring":""}},"eqLogic":{"id":"13","name":" TempHumid (remote RPi4B1)","logicalId":"","generic_type":null,"object_id":"10","eqType_name":"virtual","isVisible":"1","isEnable":"1","configuration":{"createtime":"2020-11-20 22:11:58","autorefresh":"","updatetime":"2022-10-10 18:51:17","batterytime":"","battery_type":"","battery_danger_threshold":"","battery_warning_threshold":"","confconso":[]},"timeout":null,"category":{"heating":"0","security":"0","energy":"0","light":"0","opening":"0","automatism":"0","multimedia":"0","default":"1"},"display":{"width":"1352px","height":"472px","layout::dashboard":"table","layout::dashboard::table::nbLine":"5","layout::dashboard::table::nbColumn":"17","layout::dashboard::table::parameters":{"center":"1","styletd":"","styletable":"width:100%;","text::td::1::1":"","style::td::1::1":"width:1px;","text::td::1::2":"Bureau","style::td::1::2":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::3":"","style::td::1::3":"width:1px;","text::td::1::4":"Chambre 1","style::td::1::4":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::5":"","style::td::1::5":"width:1px;","text::td::1::6":"Chambre 2","style::td::1::6":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::7":"","style::td::1::7":"width:1px;","text::td::1::8":"Cuisine","style::td::1::8":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::9":"","style::td::1::9":"width:1px;","text::td::1::10":"Salle de Bain","style::td::1::10":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::11":"","style::td::1::11":"width:1px;","text::td::1::12":"Sejour","style::td::1::12":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::13":"","style::td::1::13":"width:1px;","text::td::1::14":"Entree","style::td::1::14":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::15":"","style::td::1::15":"width:1px;","text::td::1::16":"Terrasse","style::td::1::16":"background-color:#3C3C3C; padding:10px; font-size:130%; border-radius:10px 10px 0px 0px; box-shadow:1px 1px 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::1::17":"","style::td::1::17":"width:1px;","text::td::2::1":"","style::td::2::1":"","text::td::2::2":"","style::td::2::2":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::3":"","style::td::2::3":"","text::td::2::4":"","style::td::2::4":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::5":"","style::td::2::5":"","text::td::2::6":"","style::td::2::6":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::7":"","style::td::2::7":"","text::td::2::8":"","style::td::2::8":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::9":"","style::td::2::9":"","text::td::2::10":"","style::td::2::10":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::11":"","style::td::2::11":"","text::td::2::12":"","style::td::2::12":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::13":"","style::td::2::13":"","text::td::2::14":"","style::td::2::14":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::15":"","style::td::2::15":"","text::td::2::16":"","style::td::2::16":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::2::17":"","style::td::2::17":"","text::td::3::1":"","style::td::3::1":"","text::td::3::2":"","style::td::3::2":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::3":"","style::td::3::3":"","text::td::3::4":"","style::td::3::4":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::5":"","style::td::3::5":"","text::td::3::6":"","style::td::3::6":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::7":"","style::td::3::7":"","text::td::3::8":"","style::td::3::8":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::9":"","style::td::3::9":"","text::td::3::10":"","style::td::3::10":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::11":"","style::td::3::11":"","text::td::3::12":"","style::td::3::12":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::13":"","style::td::3::13":"","text::td::3::14":"","style::td::3::14":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::15":"","style::td::3::15":"","text::td::3::16":"","style::td::3::16":"padding-top:20px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::3::17":"","style::td::3::17":"","text::td::4::1":"","style::td::4::1":"","text::td::4::2":"","style::td::4::2":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::3":"","style::td::4::3":"","text::td::4::4":"","style::td::4::4":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::5":"","style::td::4::5":"","text::td::4::6":"","style::td::4::6":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::7":"","style::td::4::7":"","text::td::4::8":"","style::td::4::8":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::9":"","style::td::4::9":"","text::td::4::10":"","style::td::4::10":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::11":"","style::td::4::11":"","text::td::4::12":"","style::td::4::12":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::13":"","style::td::4::13":"","text::td::4::14":"","style::td::4::14":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::15":"","style::td::4::15":"","text::td::4::16":"","style::td::4::16":"padding-top:10px; box-shadow:1px 0 0 #3C3C3C inset, -1px 0 0 #3C3C3C inset;","text::td::4::17":"","style::td::4::17":"","text::td::5::1":"","style::td::5::1":"","text::td::5::2":"","style::td::5::2":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::3":"","style::td::5::3":"","text::td::5::4":"","style::td::5::4":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::5":"","style::td::5::5":"","text::td::5::6":"","style::td::5::6":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::7":"","style::td::5::7":"","text::td::5::8":"","style::td::5::8":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::9":"","style::td::5::9":"","text::td::5::10":"","style::td::5::10":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::11":"","style::td::5::11":"","text::td::5::12":"","style::td::5::12":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::13":"","style::td::5::13":"","text::td::5::14":"","style::td::5::14":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::15":"","style::td::5::15":"","text::td::5::16":"","style::td::5::16":"padding-top:10px; border-radius:0px 0px 10px 10px; box-shadow:-1px -1px 0 #3C3C3C inset, 1px 0 0 #3C3C3C inset;","text::td::5::17":"","style::td::5::17":""},"parameters":[],"layout::dashboard::table::cmd::45::line":"2","layout::dashboard::table::cmd::45::column":"2","layout::dashboard::table::cmd::44::line":1,"layout::dashboard::table::cmd::44::column":1,"layout::dashboard::table::cmd::46::line":"2","layout::dashboard::table::cmd::46::column":"4","layout::dashboard::table::cmd::47::line":"2","layout::dashboard::table::cmd::47::column":"6","layout::dashboard::table::cmd::48::line":"2","layout::dashboard::table::cmd::48::column":"8","layout::dashboard::table::cmd::49::line":"2","layout::dashboard::table::cmd::49::column":"14","layout::dashboard::table::cmd::50::line":"2","layout::dashboard::table::cmd::50::column":"10","layout::dashboard::table::cmd::51::line":"2","layout::dashboard::table::cmd::51::column":"12","layout::dashboard::table::cmd::52::line":"2","layout::dashboard::table::cmd::52::column":"16","layout::dashboard::table::cmd::53::line":"3","layout::dashboard::table::cmd::53::column":"2","layout::dashboard::table::cmd::54::line":"3","layout::dashboard::table::cmd::54::column":"4","layout::dashboard::table::cmd::55::line":"3","layout::dashboard::table::cmd::55::column":"6","layout::dashboard::table::cmd::56::line":"3","layout::dashboard::table::cmd::56::column":"8","layout::dashboard::table::cmd::57::line":"3","layout::dashboard::table::cmd::57::column":"14","layout::dashboard::table::cmd::58::line":"3","layout::dashboard::table::cmd::58::column":"10","layout::dashboard::table::cmd::59::line":"3","layout::dashboard::table::cmd::59::column":"12","layout::dashboard::table::cmd::60::line":"3","layout::dashboard::table::cmd::60::column":"16","layout::dashboard::table::cmd::61::line":"4","layout::dashboard::table::cmd::61::column":"2","layout::dashboard::table::cmd::62::line":"4","layout::dashboard::table::cmd::62::column":"4","layout::dashboard::table::cmd::63::line":"4","layout::dashboard::table::cmd::63::column":"6","layout::dashboard::table::cmd::64::line":"4","layout::dashboard::table::cmd::64::column":"8","layout::dashboard::table::cmd::65::line":"4","layout::dashboard::table::cmd::65::column":"14","layout::dashboard::table::cmd::66::line":"4","layout::dashboard::table::cmd::66::column":"10","layout::dashboard::table::cmd::67::line":"4","layout::dashboard::table::cmd::67::column":"12","layout::dashboard::table::cmd::68::line":"4","layout::dashboard::table::cmd::68::column":"16","backGraph::info":"0","backGraph::format":"month","backGraph::type":"areaspline","backGraph::color":"#4572a7","backGraph::height":"","layout::dashboard::table::cmd::6067::line":1,"layout::dashboard::table::cmd::6067::column":1,"layout::dashboard::table::cmd::6068::line":1,"layout::dashboard::table::cmd::6068::column":1,"layout::dashboard::table::cmd::6069::line":1,"layout::dashboard::table::cmd::6069::column":1,"layout::dashboard::table::cmd::6070::line":"3","layout::dashboard::table::cmd::6070::column":"1","layout::dashboard::table::cmd::6071::line":1,"layout::dashboard::table::cmd::6071::column":1,"layout::dashboard::table::cmd::6072::line":1,"layout::dashboard::table::cmd::6072::column":1,"layout::dashboard::table::cmd::6073::line":1,"layout::dashboard::table::cmd::6073::column":1,"layout::dashboard::table::cmd::6074::line":"3","layout::dashboard::table::cmd::6074::column":"2","layout::dashboard::table::cmd::6075::line":1,"layout::dashboard::table::cmd::6075::column":1,"layout::dashboard::table::cmd::6076::line":1,"layout::dashboard::table::cmd::6076::column":1,"layout::dashboard::table::cmd::6077::line":1,"layout::dashboard::table::cmd::6077::column":1,"layout::dashboard::table::cmd::6078::line":"3","layout::dashboard::table::cmd::6078::column":"3","layout::dashboard::table::cmd::6079::line":1,"layout::dashboard::table::cmd::6079::column":1,"layout::dashboard::table::cmd::6080::line":1,"layout::dashboard::table::cmd::6080::column":1,"layout::dashboard::table::cmd::6081::line":1,"layout::dashboard::table::cmd::6081::column":1,"layout::dashboard::table::cmd::6082::line":"3","layout::dashboard::table::cmd::6082::column":"4","layout::dashboard::table::cmd::6083::line":1,"layout::dashboard::table::cmd::6083::column":1,"layout::dashboard::table::cmd::6084::line":1,"layout::dashboard::table::cmd::6084::column":1,"layout::dashboard::table::cmd::6085::line":1,"layout::dashboard::table::cmd::6085::column":1,"layout::dashboard::table::cmd::6086::line":"3","layout::dashboard::table::cmd::6086::column":"5","layout::dashboard::table::cmd::6087::line":1,"layout::dashboard::table::cmd::6087::column":1,"layout::dashboard::table::cmd::6088::line":1,"layout::dashboard::table::cmd::6088::column":1,"layout::dashboard::table::cmd::6089::line":1,"layout::dashboard::table::cmd::6089::column":1,"layout::dashboard::table::cmd::6090::line":"3","layout::dashboard::table::cmd::6090::column":"6","layout::dashboard::table::cmd::6091::line":1,"layout::dashboard::table::cmd::6091::column":1,"layout::dashboard::table::cmd::6092::line":1,"layout::dashboard::table::cmd::6092::column":1,"layout::dashboard::table::cmd::6093::line":1,"layout::dashboard::table::cmd::6093::column":1,"layout::dashboard::table::cmd::6094::line":"3","layout::dashboard::table::cmd::6094::column":"7","layout::dashboard::table::cmd::6095::line":1,"layout::dashboard::table::cmd::6095::column":1,"layout::dashboard::table::cmd::6096::line":1,"layout::dashboard::table::cmd::6096::column":1,"layout::dashboard::table::cmd::6097::line":1,"layout::dashboard::table::cmd::6097::column":1,"layout::dashboard::table::cmd::6098::line":"3","layout::dashboard::table::cmd::6098::column":"8"},"order":"1","comment":"2022 1010","tags":"","status":{"lastCommunication":"2022-10-25 15:46:56","timeout":0,"warning":0,"danger":0},"cache":[]},"timelineOnly":false,"data":[[1666656600000,13.33],[1666659600000,13.316666666],[1666663200000,12.89],[1666666800000,12.8],[1666667700000,12.9],[1666668300000,13],[1666669200000,13.1],[1666669500000,13.2],[1666670100000,13.3],[1666671000000,13.4],[1666672200000,13.5],[1666672500000,13.45],[1666673400000,13.6],[1666673700000,13.5],[1666674000000,13.4],[1666674300000,13.475],[1666675500000,13.4],[1666675800000,13.45],[1666677000000,13.45],[1666679700000,13.325],[1666680000000,13.4],[1666680900000,13.3],[1666682400000,13.2],[1666685700000,13.3],[1666686900000,13.4],[1666688100000,13.5],[1666688700000,13.6],[1666689000000,13.7],[1666689300000,13.8],[1666689900000,13.9],[1666690200000,14],[1666690500000,14.1],[1666690800000,14.2],[1666691700000,14.3],[1666692000000,14.4],[1666692300000,14.55],[1666692600000,14.7],[1666692900000,14.8],[1666693200000,14.9],[1666693500000,14.8],[1666693800000,14.65],[1666694100000,14.5],[1666696500000,14.6],[1666697100000,14.7],[1666697700000,14.825],[1666698000000,14.95],[1666698900000,15.1],[1666699500000,15.2],[1666699800000,15.3],[1666700100000,15.45],[1666700400000,15.55],[1666700700000,15.65],[1666701000000,15.8],[1666701300000,15.7],[1666701600000,15.8],[1666702500000,15.9],[1666702800000,15.8],[1666703100000,15.9],[1666703400000,16.05],[1666703700000,16.2],[1666704000000,16.4],[1666704600000,16.6],[1666705200000,16.7],[1666705500000,16.8],[1666705800000,16.9],[1666706100000,17.2125],[1666706400000,17.4],[1666706700000,17.5],[1666707000000,17.6],[1666707300000,17.55],[1666707600000,17.75],[1666707900000,18],[1666708200000,18.2],[1666708500000,18.3],[1666708800000,18.4],[1666709100000,18.45],[1666709400000,18.5],[1666709700000,18.55],[1666710000000,18.625],[1666710300000,18.7],[1666710600000,18.95],[1666711200000,19.075],[1666711500000,19.15],[1666711800000,19.05],[1666712400000,19.15],[1666712700000,19]]}

Ah oui effectivement tu récupères aussi la commande au passage, c’est utile pour certains plugins.

Il faut vérifier l’impact sur les plugins existants avant d’éventuellement « écrémer » tout ça mais dans l’absolu c’est surtout ce qu’il y en dans ['data'] qui est intéressant dans cet appel.

Oui bien sur, je récupère en .data ensuite pour les données qui m’interessent.

J’étais juste un peu surpris de récupérer en plus toutes les données CSS de la tuile, je ne vois pas trop l’intérêt mais je ne demande rien, surtout pas de « casser » l’existant.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.