A live bird collage card for your Home Assistant dashboard.
More colorizing
ehpersonal385e40772b4294
diff --git a/homepage/views.php b/homepage/views.phpindex 1bbd6884..d03c80d0 100644--- a/homepage/views.php+++ b/homepage/views.php@@ -308,6 +308,9 @@ if(isset($_GET['view'])){$results = str_replace("active (running)", "<span style='color:green'><b>active (running)</b></span>",$results);$results = str_replace("Your branch is up to date", "<span style='color:limegreen'><b>Your branch is up to date</b></span>",$results);+ $results = str_replace("(+)", "(<span style='color:limegreen'><b>+</b></span>)",$results);+ $results = str_replace("(-)", "(<span style='color:red'><b>-</b></span>)",$results);+// split the input string into lines$lines = explode("\n", $results);