astropanel 2.1 → 2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/astropanel +27 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18a6f4c22f384f633ee5d6ceccf1c360b5531ef0b60b2515330bcc67943462fa
|
4
|
+
data.tar.gz: 53d3eec673b1e085eeeff5255e28a42d3241499ec9f0bcbe277b9da040b30d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c6298b4461d14b5e7f588d2ac25e0f27b584b3ba3d3173c800edfcff5037c0d828594804fc0c3babe496b0c5153238b6bd213d2fef75a69b4dfd2c32bf2b6d1
|
7
|
+
data.tar.gz: 30e9ad3300d9db14a584c57efc30f6edf5cb231cbb35ce0e920db7cc8dbcd7b040950eaa8b1d09c9ffbf7afd91ac814a94a0fcdc074bb2bbeead9ea7ff8c2c6f
|
data/bin/astropanel
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
# Version: 2.
|
17
|
+
# Version: 2.2: Fixed help (key '?')
|
18
18
|
|
19
19
|
# LOAD MODULES {{{1
|
20
20
|
require 'io/console'
|
@@ -327,6 +327,31 @@ end
|
|
327
327
|
# MAIN APPLICATION {{{1
|
328
328
|
class AstroPanelApp
|
329
329
|
# Basics {{{2
|
330
|
+
HELP = <<~EOS
|
331
|
+
|
332
|
+
Astropanel gives you essential data to plan your observations:
|
333
|
+
* Weather forecast: Next 9 days with coloring (red/yellow/green) based
|
334
|
+
on your limits for cloud cover, humidity, temperature and wind
|
335
|
+
* Graphic representation of when the Sun, Moon and planets are visible
|
336
|
+
with the Moon's phase showing in how light the representing bar is
|
337
|
+
* Extra information for each day
|
338
|
+
* Astronomical events for each of the 9 days, key 'e' lists them in one view
|
339
|
+
* Star chart showing the selected day and time of day (for latitudes above +23)
|
340
|
+
* A table showing RA, Dec, distance, rise, set and transit for the planets
|
341
|
+
* Show today's Astronomy Picture Of the Day
|
342
|
+
|
343
|
+
KEYS
|
344
|
+
? = Show this help text ENTER = Refresh starchart/image
|
345
|
+
l = Edit Location r = Redraw all panes and image
|
346
|
+
a = Edit Latitude R = Refresh all data (and re-fetch image)
|
347
|
+
o = Edit Longitude s = Get starchart for selected time
|
348
|
+
c = Edit Cloud limit S = Open starchart in image program
|
349
|
+
h = Edit Humidity limit A = Show Astronomy Picture Of the Day
|
350
|
+
t = Edit Temperature limit e = Show upcoming events
|
351
|
+
w = Edit Wind limit W = Write to config file
|
352
|
+
b = Edit Bortle value q = Quit (write to config file, Q = no write)
|
353
|
+
EOS
|
354
|
+
|
330
355
|
include Rcurses
|
331
356
|
include Rcurses::Cursor
|
332
357
|
|
@@ -863,7 +888,7 @@ class AstroPanelApp
|
|
863
888
|
when 'PgDOWN' then @index = [@index + @left.h, @weather.size - 1].min
|
864
889
|
when 'HOME' then @index = 0
|
865
890
|
when 'END' then @index = @weather.size - 1
|
866
|
-
when '?' then @main.say(
|
891
|
+
when '?' then @main.say(HELP); getchr
|
867
892
|
when 'l' then @loc = @footer.ask('Loc? ', @loc)
|
868
893
|
when 'a' then @lat = @footer.ask('Lat? ', @lat.to_s).to_f
|
869
894
|
when 'o' then @lon = @footer.ask('Lon? ', @lon.to_s).to_f
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: astropanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
@@ -28,8 +28,8 @@ description: 'This program shows essential data in order to plan your observatio
|
|
28
28
|
9 days weather forecast, full ephemeris for the Sun, the Moon and all major planets,
|
29
29
|
complete with graphic representation of rise/set times, detailed info for each day
|
30
30
|
with important astronomical events, star chart displayed in the terminal and more.
|
31
|
-
New in 2.0: Full rewrite using rcurses (https://github.com/isene/rcurses). 2.
|
32
|
-
|
31
|
+
New in 2.0: Full rewrite using rcurses (https://github.com/isene/rcurses). 2.2:
|
32
|
+
Fixed help (key ''?'')'
|
33
33
|
email: g@isene.com
|
34
34
|
executables:
|
35
35
|
- astropanel
|