Hi all
I would like to create a HTML-File with dynamic content from the Openhab-Items. I’ve been looking around in the Forum but I not found the correct solution, whatever I tried, gave me a 404 Error.
I would like to create a HTML-File, that shows me the details of the next sun or moon eclipse, depending on the next event.
I have this Items-File:
DateTime Astro_Sunrise "Sonnenaufgang [%1$tH:%1$tM]" <sunrise> { channel="astro:sun:home:rise#start" }
DateTime Astro_Sunset "Sonnenuntergang [%1$tH:%1$tM]" <sunset> { channel="astro:sun:home:set#start" }
DateTime Astro_Midday "Mittag [%1$tH:%1$tM]" <sun> { channel="astro:sun:home:noon#start" }
DateTime Astro_Night "Nacht [%1$tH:%1$tM]" <moon> { channel="astro:sun:home:night#start" }
String Astro_Sternzeichen "Sternzeichen [%s]" { channel="astro:sun:home:zodiac#sign" }
String Astro_Jahreszeit "Jahreszeit [%s]" { channel="astro:sun:home:season#name" }
DateTime Astro_TotalEclipse "Nächste totale Sonnenfinsternis [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" <moon> { channel="astro:sun:home:eclipse#total" }
DateTime Astro_PartialEclipse "Nächste Partiale Sonnenfinsternis [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" <moon> { channel="astro:sun:home:eclipse#partial" }
DateTime Astro_RingEclipse "Nächste ringförmige Sonnenfinsternis [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" <moon> { channel="astro:sun:home:eclipse#ring" }
String Astro_Sunphase "Sonnenphase [%s]" { channel="astro:sun:home:phase#name" }
DateTime Astro_Moonrise "Mondaufgang [%1$tH:%1$tM]" <moon> { channel="astro:moon:home:rise#start" }
DateTime Astro_Moonset "Monduntergang [%1$tH:%1$tM]" <moon> { channel="astro:moon:home:set#start" }
String Astro_Moonphase "Mondphase [%s]" <moon> { channel="astro:moon:home:phase#name" }
DateTime Astro_Nextfullmoon "Nächster Vollmond [%1$td.%1$tm.]" <moon> { channel="astro:moon:home:phase#full" }
DateTime Astro_TotalMoonEclipse "Nächste totale Mondfinsternis [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" <moon> { channel="astro:moon:home:eclipse#total" }
DateTime Astro_PartialMoonEclipse "Nächste Partiale Mondfinsternis [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" <moon> { channel="astro:moon:home:eclipse#partial" }
As for start I wanted to show the zodiac sign in a html-File called astro.html:
<!DOCTYPE html>
<html>
<head>
</head>
<body id="astro-body">
<img src="/static/${Astro_Sternzeichen}.jpg">
</body>
</html>
I am using an apt-get installation of openhab 2.4.
Can anybody help me, where I need to put this HTML-File? And if the link for the image is correct?
Thanks for any help