Erste Schritte
Verfasst: 23. Sep 2019 17:57
Ich bin totaler Neuling auf diesem Gebiet. Wo erhalte ich entsprechende Tutorials für die ersten Schritte. Als Beispiel hätte ich gerne eine Hue-Lampe mit einem Astro-Binding gesteuert.
Hier geht es los:
Code: Alles auswählen
// Astro - Binding Geo-Position geolocation="xx.xxxxxx,y.yyyyyy,zzz" x = Breitengrad y = Längengrad z = Höhe
Thing astro:sun:local "Sonnen Daten" [geolocation="xx.xxxxxx,y.yyyyyy,zzz", interval=300]
Thing astro:moon:local "Mond Daten" [geolocation="xx.xxxxxx,y.yyyyyy,zzz", interval=300]
Code: Alles auswählen
Group gAstro "Astro - Wetter" <sun_clouds>
DateTime Sunset_Time "Sonnenuntergang [%1$ta, %1$td.%1$tm.%1$ty, %1$tH:%1$tM]" <sunset> (gAstro) {channel="astro:sun:local:set#start"}
DateTime Sunrise_Time "Sonnenaufgang [%1$ta, %1$td.%1$tm.%1$ty, %1$tH:%1$tM]" <sunrise> (gAstro) {channel="astro:sun:local:rise#start"}
String Season_Name "Jahreszeit [MAP(astroDE.map):%s]" <season> (gAstro) {channel="astro:sun:local:season#name"}
String Zodiac_Sign "Sternzeichen [MAP(astroDE.map):%s]" <zodiac> (gAstro) {channel="astro:sun:local:zodiac#sign"}
Number:Angle Sun_Elevation "Sonnenstand" <incline> (gAstro) {channel="astro:sun:local:position#elevation"}
Number:Angle Sun_Azimuth "Azimuth" <incline> (gAstro) {channel="astro:sun:local:position#azimuth"}
Number:Intensity Radiation_Direct "Direkte Sonneneinstrahlung [%.2f %unit%]" <solarplant> (gAstro) {channel="astro:sun:local:radiation#direct"}
Number:Intensity Radiation_Diffuse "Indirekte Sonneneinstrahlung [%.2f %unit%]" <solarplant> (gAstro) {channel="astro:sun:local:radiation#diffuse"}
Number:Intensity Radiation_Total "Gesamteinstrahlung [%.2f %unit%]" <solarplant> (gAstro) {channel="astro:sun:local:radiation#total"}
// The actual distance to the moon
DateTime Date_distance "Datum aktueller Umlauf [%1$ta, %1$td.%1$tm.%1$ty,%1$tH:%1$tM]" {channel="astro:moon:local:distance#date"}
Number:Length Kilometer_distance "Entfernung zum Mond" {channel="astro:moon:local:distance#distance"} //OH 2.4
// The perigee of the moon - erdnächster Punkt
DateTime Date_perigee "Datum erdnächster Umlauf [%1$ta, %1$td.%1$tm.%1$ty, %1$tH:%1$tM]" {channel="astro:moon:local:perigee#date"}
Number:Length Kilometer_perigee "Mond erdnächster Punkt" {channel="astro:moon:local:perigee#distance"} //OH 2.4
// The apogee of the moon - erdfernster Punkt
DateTime Date_apogee "Datum erdfernster Umlauf [%1$ta, %1$td.%1$tm.%1$ty, %1$tH:%1$tM]" {channel="astro:moon:local:apogee#date"}
Number:Length Kilometer_apogee "Mond erdfernster Punkt" {channel="astro:moon:local:apogee#distance"} //OH 2.4
// The position of the moon
Number:Angle Moon_Elevation "Mondstand [%.1f %unit%]" <incline> (gAstro) {channel="astro:moon:local:position#elevation"}
Number:Angle Moon_Azimuth "Mond-Azimuth [%.1f %unit%]" <azimuth> (gAstro) {channel="astro:moon:local:position#azimuth"}
String Moon_Phase "Mondphase [MAP(astroDE.map):%s]" <moon1> (gAstro) {channel="astro:moon:local:phase#name"}
Number Moon_illumination "Mondhelligkeit" <moon> (gAstro) {channel="astro:moon:local:phase#illumination"}
DateTime Moon_Next_Full "Nächster Vollmond [%1$td.%1$tm.%1$ty]" <moon1> (gAstro) {channel="astro:moon:local:phase#full"}
DateTime Moon_Next_New "Nächster Neumond [%1$td.%1$tm.%1$ty]" <moon1_new> (gAstro) {channel="astro:moon:local:phase#new"}
// The moonrise event range
DateTime Moonrise_Start_time "Mondaufgang[%1$tH:%1$tM]" <moonrise> (gAstro) {channel="astro:moon:local:rise#start"}
// The moonset event range
DateTime Moonset_End_time "Monduntergang[%1$tH:%1$tM]" <moonset> (gAstro) {channel="astro:moon:local:set#end"}
// Moon Phases
// The details of the current and next moon phases
DateTime First_quarter (gAstro) {channel="astro:moon:local:phase#firstQuarter"}
DateTime Third_quarter (gAstro) {channel="astro:moon:local:phase#thirdQuarter"}
DateTime Full_moon <moon1> (gAstro) {channel="astro:moon:local:phase#full"}
DateTime New_moon (gAstro) {channel="astro:moon:local:phase#new"}
// Eclipses
// The DateTime of the next moon eclipses
DateTime Total_Moon_eclipse "nächste Mondfinsternis[%1$ta, %1$td.%1$tm.%1$ty, %1$tH:%1$tM]" <bloodmoon> (gAstro) {channel="astro:moon:local:eclipse#total"}
DateTime Partial_Moon_eclipse "nächste Teilmondfinsternis[%1$ta, %1$td.%1$tm.%1$ty, %1$tH:%1$tM]" <partial_moon_eclipse> (gAstro) {channel="astro:moon:local:eclipse#partial"}
//
String Day_Phase "Sonnenphase [MAP(astroDE.map):%s]" <sunmoon> (gAstro) {channel="astro:sun:local:phase#name"}