{"id":283,"date":"2019-12-08T10:08:30","date_gmt":"2019-12-08T10:08:30","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/modification-du-plugin-horloge-htc-pour-afficher-heure-date"},"modified":"2024-04-21T13:17:26","modified_gmt":"2024-04-21T11:17:26","slug":"modification-du-plugin-horloge-htc-pour-afficher-heure-date","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/modification-du-plugin-horloge-htc-pour-afficher-heure-date","title":{"rendered":"View today's date on Design Jeedom (Modifying the HTC Clock plugin)"},"content":{"rendered":"<p>The original plugin offers two displays:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-278\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/HorlogeAvecMeteo.png\" alt=\"ClockWithMeteo\" width=\"200\" height=\"139\" \/> OR <img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-279\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/HorlogeSansMeteo.png\" alt=\"ClockSansMeteo\" width=\"199\" height=\"113\" \/><!--more--><\/p>\n<p><a href=\"https:\/\/zitouneolivier.github.io\/jeedom_horlogehtc\/fr_FR\/\">https:\/\/zitouneolivier.github.io\/jeedom_horlogehtc\/fr_FR\/<\/a><\/p>\n<p>But I wanted to:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-280\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2019-12-08_Menu_Principal_-_Jeedom1.png\" alt=\"Screenshot 2019 12 08 Main Menu Jeedom1\" width=\"456\" height=\"258\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2019-12-08_Menu_Principal_-_Jeedom1.png 456w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/Screenshot_2019-12-08_Menu_Principal_-_Jeedom1-300x170.png 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/p>\n<p>I have not found the author of the plugin on the new Community forum, if I can, I will propose the evolution to this third version.<\/p>\n<p>In the meantime, here are the tiny changes to make in the plugin code to get this result.<\/p>\n<h2>Edit template file:plugins\/clockhtc\/core\/template\/dashboard\/sansmeteo.html<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-281\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/modiftexte.jpg\" alt=\"text change\" width=\"1017\" height=\"167\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/modiftexte.jpg 1017w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/modiftexte-600x99.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/modiftexte-300x49.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/modiftexte-768x126.jpg 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/p>\n<h2>Background image<\/h2>\n<p>The date being a bit glued, I slightly lengthened the background image, so you have to replace the file <strong>plugins\/clockhtc\/core\/template\/dashboard\/images\/sansmeteo.png<\/strong> by:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-282\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/sansmeteo.png\" alt=\"sansmeteo\" width=\"440\" height=\"205\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/sansmeteo.png 440w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/12\/sansmeteo-300x140.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/p>\n<p>It is over.<\/p>","protected":false},"excerpt":{"rendered":"<p>The original plugin offers two displays: OR<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,23],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-domotique","category-jeedom-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}