Skip to content

Commit

Permalink
Restored ability to set the light pollution (Bortle class) through WUI
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Sep 30, 2024
1 parent 3930626 commit 008a2e3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 30 deletions.
62 changes: 34 additions & 28 deletions plugins/RemoteControl/webroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ <h1><?= tr("Stellarium remote control")?></h1>
<li data-next="actionAdd_Solar_Day" data-prev="actionSubtract_Solar_Day"><?= tr("Solar day")?></li>
<li data-next="actionAdd_Solar_Week" data-prev="actionSubtract_Solar_Week"><?= tr("Solar week")?></li>

<li data-next="actionAdd_Calendar_Year" data-prev="actionSubtract_Calendar_Year"> <?= tr("Calendar year")?></li>
<li data-next="actionAdd_Calendar_Decade" data-prev="actionSubtract_Calendar_Decade"> <?= tr("10 Calendar years")?></li>
<li data-next="actionAdd_Calendar_Year" data-prev="actionSubtract_Calendar_Year"><?= tr("Calendar year")?></li>
<li data-next="actionAdd_Calendar_Decade" data-prev="actionSubtract_Calendar_Decade"><?= tr("10 Calendar years")?></li>
<li data-next="actionAdd_Calendar_Century" data-prev="actionSubtract_Calendar_Century"><?= tr("100 Calendar years")?></li>

<li data-next="actionAdd_Sidereal_Day" data-prev="actionSubtract_Sidereal_Day"><?= tr("Sidereal day")?></li>
Expand Down Expand Up @@ -357,17 +357,25 @@ <h3><input type="checkbox" class="stelaction" name="actionShow_Planets" /><?= tr
<h3><label><input type="checkbox" class="stelaction valign-middle" name="actionShow_Atmosphere"/><?= tr("Atmosphere")?></label></h3>
<label><input type="checkbox" class="stelaction" name="actionShow_LightPollutionFromDatabase" /><?= tr("Light pollution data from locations database")?></label>
<div class="table">
<p><label for="atmosphere_bortlescaleindex"><?= tr("Light pollution:")?></label><input id="atmosphere_bortlescaleindex" class="spinner stelproperty" name="StelSkyDrawer.bortleScaleIndex" data-min="1" data-max="9" data-step="1" data-numberformat="n0"/></p>
<label><?= tr("Bortle class:")?>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(1)" title='<?= tr("excellent dark-sky site")?>'>1</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(2)" title='<?= tr("typical truly dark site")?>'>2</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(3)" title='<?= tr("rural sky")?>'>3</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(4)" title='<?= tr("rural/suburban transition")?>'>4</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(5)" title='<?= tr("suburban sky")?>'>5</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(6)" title='<?= tr("bright suburban sky")?>'>6</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(7)" title='<?= tr("suburban/urban transition")?>'>7</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(8)" title='<?= tr("city sky")?>'>8</button>
<button type="button" class="stelssc" value="core.setBortleScaleIndex(9)" title='<?= tr("inner-city sky")?>'>9</button>
</label>
</div>
<div id="vo_refraction" class="innerblock">
<h3><?= tr("Refraction Settings")?></h3>
<div class="table">
<p><label for="atmosphere_pressure"><?= tr("Pressure (mbar):")?></label><input id="atmosphere_pressure" class="spinner stelproperty" name="StelSkyDrawer.atmospherePressure" data-min="0" data-max="1500" data-step="1" data-numberformat="n2"/></p>
<p><label for="atmosphere_temperature"><?= tr("Temperature (C):")?></label><input id="atmosphere_temperature" class="spinner stelproperty" name="StelSkyDrawer.atmosphereTemperature" data-min="-100" data-max="100" data-step="1" data-numberformat="n1"/></p>
<p><label for="atmosphere_extinction"><?= tr("Extinction Coefficient:")?></label><input id="atmosphere_extinction" class="spinner stelproperty" name="StelSkyDrawer.extinctionCoefficient" data-min="0" data-max="3" data-step="0.01" data-numberformat="n2"/></p>
<p><label title='<?= tr("Only extinction/refraction, no blue skylight")?>'>
<input type="checkbox" class="stelproperty" name="LandscapeMgr.atmosphereNoScatter"/><?= tr("Suppress scattering")?></label></p>

<p><label title='<?= tr("Only extinction/refraction, no blue skylight")?>'><input type="checkbox" class="stelproperty" name="LandscapeMgr.atmosphereNoScatter"/><?= tr("Suppress scattering")?></label></p>
</div>
</div>
<div class="innerblock flex flex-baseline">
Expand All @@ -382,7 +390,7 @@ <h3><?= tr("Shooting Stars")?></h3>
</div>
<div id="vo_markers_boxes" class="smallblock flex">
<h3><input type="checkbox" class="stelaction" name="actionShow_Gridlines" /><?= tr("Celestial Sphere")?></h3>
<div class="inline-block blocklabel">
<div class="inline-block blocklabel">
<label><input type="checkbox" class="stelaction" name="actionShow_Equatorial_J2000_Grid" /><?= tr("Equatorial grid (J2000)")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Equatorial_Grid" /><?= tr("Equatorial grid (of date)")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Fixed_Equatorial_Grid" /><?= tr("Fixed Equatorial grid")?></label>
Expand All @@ -398,9 +406,9 @@ <h3><input type="checkbox" class="stelaction" name="actionShow_Gridlines" /><?=
<label><input type="checkbox" class="stelaction" name="actionShow_Apex_Points" /><?= tr("Apex points")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Galactic_Center" /><?= tr("Galactic center and anticenter")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Cardinal_Points" /><?= tr("Cardinal points")?>
<input type="checkbox" class="stelaction" name="actionShow_Intercardinal_Points" />8
<input type="checkbox" class="stelaction" name="actionShow_Secondary_Intercardinal_Points" />16
<input type="checkbox" class="stelaction" name="actionShow_Tertiary_Intercardinal_Points" />32</label>
<input type="checkbox" class="stelaction" name="actionShow_Intercardinal_Points" />8
<input type="checkbox" class="stelaction" name="actionShow_Secondary_Intercardinal_Points" />16
<input type="checkbox" class="stelaction" name="actionShow_Tertiary_Intercardinal_Points" />32</label>
<label><input type="checkbox" class="stelaction" name="actionShow_Compass_Marks"/><?= tr("Compass marks")?></label>
</div>
<div class="inline-block blocklabel">
Expand All @@ -409,7 +417,7 @@ <h3><input type="checkbox" class="stelaction" name="actionShow_Gridlines" /><?=
<label><input type="checkbox" class="stelaction" name="actionShow_Fixed_Equator_Line" /><?= tr("Fixed Equator")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Ecliptic_J2000_Line" /><?= tr("Ecliptic (J2000)")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Ecliptic_Line" /><?= tr("Ecliptic (of date)")?>
<input type="checkbox" class="stelproperty" name="GridLinesMgr.eclipticDatesLabeled" /><?= tr("with Solar Dates")?></label>
<input type="checkbox" class="stelproperty" name="GridLinesMgr.eclipticDatesLabeled" /><?= tr("with Solar Dates")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Horizon_Line" /><?= tr("Horizon")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Galactic_Equator_Line" /><?= tr("Galactic equator")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Supergalactic_Equator_Line" /><?= tr("Supergalactic equator")?></label>
Expand All @@ -421,9 +429,9 @@ <h3><input type="checkbox" class="stelaction" name="actionShow_Gridlines" /><?=
<label title='<?= tr("Show colures (great circles through poles and solstices/equinoxes).")?>'><input type="checkbox" class="stelaction" name="actionShow_Colure_Lines" /><?= tr("Colures")?></label>
<label title='<?= tr("Instantaneous circles of earth´s axis on its motion around ecliptical poles. Displayed on Earth only.")?>'>
<input type="checkbox" class="stelaction" name="actionShow_Precession_Circles" /><?= tr("Precession circles")?></label>
<label title='<?= tr("Show Prime (East-West) Vertical.")?>'><input type="checkbox" class="stelaction" name="actionShow_Prime_Vertical_Line" /><?= tr("Prime Vertical")?></label>
<label title='<?= tr("Show Prime (East-West) Vertical.")?>'><input type="checkbox" class="stelaction" name="actionShow_Prime_Vertical_Line" /><?= tr("Prime Vertical")?></label>
</div>
<div class="inline-block blocklabel">
<div class="inline-block blocklabel">
<label><input type="checkbox" class="stelaction" name="actionShow_Celestial_J2000_Poles" /><?= tr("Celestial poles (J2000)")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Celestial_Poles" /><?= tr("Celestial poles (of date)")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Circumpolar_Circles" /><?= tr("Circumpolar circles")?></label>
Expand All @@ -435,22 +443,20 @@ <h3><input type="checkbox" class="stelaction" name="actionShow_Gridlines" /><?=
<label><input type="checkbox" class="stelaction" name="actionShow_Quadrature_Line" /><?= tr("Quadrature circle")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Antisolar_Point" /><?= tr("Antisolar point")?></label>

<label><input type="checkbox" class="stelaction" name="actionShow_Umbra_Circle" /><?= tr("Earth umbra")?>
<input type="checkbox" class="stelaction" name="actionShow_Umbra_Center_Point" /><?= tr("Center")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Umbra_Circle" /><?= tr("Earth umbra")?>
<input type="checkbox" class="stelaction" name="actionShow_Umbra_Center_Point" /><?= tr("Center")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Penumbra_Circle" /><?= tr("Earth penumbra")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_Invariable_Plane_Line" /><?= tr("Invariable plane of the Solar system")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_FOV_Center_Marker" /><?= tr("Center of FOV")?></label>
<label><input type="checkbox" class="stelaction" name="actionShow_FOV_Circular_Marker" /><?= tr("Circular FOV")?>
<input id="FOV_circle_diameter" class="spinner stelproperty" name="SpecialMarkersMgr.fovCircularMarkerSize" data-min="0.1" data-max="28" data-step="0.1" data-numberformat="n2"/></label>
<input id="FOV_circle_diameter" class="spinner stelproperty" name="SpecialMarkersMgr.fovCircularMarkerSize" data-min="0.1" data-max="28" data-step="0.1" data-numberformat="n2"/></label>
<label><input type="checkbox" class="stelaction" name="actionShow_FOV_Rectangular_Marker" /><?= tr("Rectangular FOV")?>
<input id="FOV_box_width" class="spinner stelproperty" name="SpecialMarkersMgr.fovRectangularMarkerWidth" data-min="0.1" data-max="180" data-step="0.1" data-numberformat="n2"/>
<input id="FOV_box_height" class="spinner stelproperty" name="SpecialMarkersMgr.fovRectangularMarkerHeight" data-min="0.1" data-max="180" data-step="0.1" data-numberformat="n2"/>
<input id="FOV_box_angle" class="spinner stelproperty" name="SpecialMarkersMgr.fovRectangularMarkerRotationAngle" data-min="-90" data-max="90" data-step="1" data-numberformat="n1"/></label>

<input id="FOV_box_width" class="spinner stelproperty" name="SpecialMarkersMgr.fovRectangularMarkerWidth" data-min="0.1" data-max="180" data-step="0.1" data-numberformat="n2"/>
<input id="FOV_box_height" class="spinner stelproperty" name="SpecialMarkersMgr.fovRectangularMarkerHeight" data-min="0.1" data-max="180" data-step="0.1" data-numberformat="n2"/>
<input id="FOV_box_angle" class="spinner stelproperty" name="SpecialMarkersMgr.fovRectangularMarkerRotationAngle" data-min="-90" data-max="90" data-step="1" data-numberformat="n1"/></label>
</div>
</div>

<div id="vo_archaeolines" class="smallblock flex stelplugin" data-plugin="ArchaeoLines">
<div id="vo_archaeolines" class="smallblock flex stelplugin" data-plugin="ArchaeoLines">
<h3><label><input type="checkbox" class="stelproperty valign-middle" name="ArchaeoLines.enabled"/><?= tr("ArchaeoLines")?></label></h3>
<div class="inline-block blocklabel">
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowEquinox"/><?= tr("Equinox")?></label>
Expand Down Expand Up @@ -480,13 +486,13 @@ <h3><label><input type="checkbox" class="stelproperty valign-middle" name="Archa
<option value="4"><?= tr("Jupiter")?></option>
<option value="5"><?= tr("Saturn")?></option>
</select>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowSelectedObject"/><?= tr("Selected Object")?></label>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowSelectedObjectAzimuth"/><?= tr("Selected Object Azimuth")?></label>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowSelectedObjectHourAngle"/><?= tr("Selected Object Hour Angle")?></label>
<label><br/></label>
<label><div class="slider stelproperty flex-expand" data-prop="ArchaeoLines.lineWidth" data-min="1" data-max="8" data-step="1" data-numberformat="n0"></div></label>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowSelectedObject"/><?= tr("Selected Object")?></label>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowSelectedObjectAzimuth"/><?= tr("Selected Object Azimuth")?></label>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowSelectedObjectHourAngle"/><?= tr("Selected Object Hour Angle")?></label>
<label><br/></label>
<label><div class="slider stelproperty flex-expand" data-prop="ArchaeoLines.lineWidth" data-min="1" data-max="8" data-step="1" data-numberformat="n0"></div></label>
</div>
<div class="inline-block blocklabel">
<div class="inline-block blocklabel">
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowGeographicLocation1"/><?= tr("Geographic Location 1")?> (<span class="stelproperty" data-prop="ArchaeoLines.geographicLocation1Label"></span>)</label>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowGeographicLocation2"/><?= tr("Geographic Location 2")?> (<span class="stelproperty" data-prop="ArchaeoLines.geographicLocation2Label"></span>)</label>
<label><input type="checkbox" class="stelproperty" name="ArchaeoLines.flagShowCustomAzimuth1"/><?= tr("Custom Azimuth 1")?> (<span class="stelproperty" data-prop="ArchaeoLines.customAzimuth1" data-numberformat="n1"></span>&deg;=<span class="stelproperty" data-prop="ArchaeoLines.customAzimuth1Label"></span>)</label>
Expand Down
3 changes: 1 addition & 2 deletions plugins/RemoteControl/webroot/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
url('dejavusans-webfont.svg#dejavu_sansbook') format('svg');
font-weight: normal;
font-style: normal;

}

@font-face {
Expand Down Expand Up @@ -85,7 +84,7 @@ div#srch_tab_object {
color: rgb(3,3,3);
background: linear-gradient(rgb(86, 87, 90),rgb(48, 49, 52));
border-width: 0;
border-radius: 0;
border-radius: 0;
}

/* Large vertical spinners */
Expand Down

0 comments on commit 008a2e3

Please sign in to comment.