Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
c02ee36
Change condition
AlexKurek Mar 3, 2024
98ef2fd
Change variables
AlexKurek Mar 3, 2024
a6a90f1
Add comment
AlexKurek Mar 3, 2024
5a7730e
Add comment
AlexKurek Mar 3, 2024
4ac2964
Change variable names
AlexKurek Mar 3, 2024
2ca07c9
Update motors.py
AlexKurek Mar 3, 2024
1f844f4
New constants
AlexKurek Mar 3, 2024
8165d76
Update motors.py
AlexKurek Mar 3, 2024
c141f65
Fixes
AlexKurek Mar 6, 2024
c9794d5
Add comment
AlexKurek Mar 7, 2024
210ed2f
Add comments
AlexKurek Mar 8, 2024
ba1d6ee
In our H180 version this should be 0
AlexKurek Mar 10, 2024
b433b3b
Add comment
AlexKurek Mar 14, 2024
b5520be
Update config_directory.md
AlexKurek Mar 15, 2024
235ff4b
Revert changes
AlexKurek Mar 15, 2024
fb03a67
Add CASSI
AlexKurek Mar 15, 2024
5981839
Add CASSI
AlexKurek Mar 15, 2024
63cbe57
Add CASSI
AlexKurek Mar 15, 2024
176a5aa
Update config_directory.md
AlexKurek Mar 15, 2024
c3f512f
Update config_directory.md
AlexKurek Mar 15, 2024
b1c35d7
Update config_directory.md
AlexKurek Mar 15, 2024
2199fcc
Update object_tracker.py
AlexKurek Mar 16, 2024
eb733bd
Add comment
AlexKurek Mar 16, 2024
f84b70c
Fix
AlexKurek Mar 17, 2024
d1b1f3a
Add CASSI class
AlexKurek Mar 17, 2024
2f0fee3
typo
AlexKurek Mar 17, 2024
69e10a3
Add baudrate check
AlexKurek Mar 19, 2024
4245b3c
Add non-physical limit warning
AlexKurek Mar 20, 2024
32217b5
Update config_directory.md
AlexKurek Mar 20, 2024
df941b5
typo
AlexKurek Mar 20, 2024
c77f735
Fixes for Cassi motor
AlexKurek Mar 26, 2024
074e6a7
Add comments for H180
AlexKurek Mar 26, 2024
065276d
Less debuging stuff
AlexKurek Mar 26, 2024
0c4415b
Add NPOINT_INTEG_TIME
AlexKurek Mar 28, 2024
10d628f
Add NPOINT_INTEG_TIME
AlexKurek Mar 28, 2024
7e215b1
Add NPOINT_INTEG_TIME
AlexKurek Mar 28, 2024
3c84ed7
Integration time during n-point scan to parameter
AlexKurek Mar 28, 2024
b17baa6
Update config_directory.md
AlexKurek Mar 29, 2024
42275a7
Remember zoom after refresh
AlexKurek Mar 29, 2024
4546e0b
Add comment
AlexKurek Mar 30, 2024
1aea99e
Add wind rose letters
AlexKurek Mar 30, 2024
88f4227
Update wind rose letters
AlexKurek Mar 30, 2024
5480b29
Update wind rose
AlexKurek Mar 30, 2024
6ffe931
Update wind rose
AlexKurek Mar 30, 2024
fccaf41
Compact code
AlexKurek Mar 30, 2024
d0379f5
Fix scan numbering
AlexKurek Mar 31, 2024
d82e639
Add comment
AlexKurek Apr 2, 2024
4b4e432
Scan center fix + debugging code
AlexKurek Apr 4, 2024
c658cfe
Scan center fix - no debugging code
AlexKurek Apr 4, 2024
45348c6
Remove leftover form debugging
AlexKurek Apr 5, 2024
6ebe1a6
Fix for negative STOW azimuth
AlexKurek Apr 5, 2024
67cdd78
Hide Plotly logo
AlexKurek Apr 5, 2024
b05707c
Enabling scroll zoom
AlexKurek Apr 5, 2024
000d698
Add optional shape-drawing buttons to modebar
AlexKurek Apr 5, 2024
0a42524
Add drawing n-point scan points on az-el graph
AlexKurek Apr 6, 2024
39b8a3b
Add drawing n-point scan points on az-el graph
AlexKurek Apr 6, 2024
44ecb6d
Add drawing n-point scan points on az-el graph
AlexKurek Apr 6, 2024
b781276
typo
AlexKurek Apr 6, 2024
7632426
typo
AlexKurek Apr 6, 2024
2b65b40
typo
AlexKurek Apr 6, 2024
37d9204
modeBarButtonsToAdd: togglespikelines
AlexKurek Apr 6, 2024
c958497
Add togglehover
AlexKurek Apr 6, 2024
0ac92a3
Update monitor page png
AlexKurek Apr 6, 2024
76f7da3
Add files via upload
AlexKurek Apr 6, 2024
a1d114f
Update monitor_page.png
AlexKurek Apr 6, 2024
b5e15f3
Delete monitor_page.png
AlexKurek Apr 6, 2024
aa93c83
Create monitor_page.png
AlexKurek Apr 6, 2024
c77928b
Update monitor_page.png
AlexKurek Apr 7, 2024
2a071a6
Fix n-point scan markers
AlexKurek Apr 7, 2024
d235066
Make n-point scan markers disappear on next command
AlexKurek Apr 7, 2024
df07b0b
Cleanup
AlexKurek Apr 7, 2024
eff818d
Cleanup
AlexKurek Apr 7, 2024
458324d
Cleanup
AlexKurek Apr 7, 2024
e1cdc8e
Cleanup
AlexKurek Apr 7, 2024
6ef1a6a
Arrow annotations
AlexKurek Apr 7, 2024
9bed22f
Arrow annotations
AlexKurek Apr 7, 2024
e9101e2
Add MINIMAL_ARROWS_DISTANCE in config file
AlexKurek Apr 9, 2024
012da18
Add MINIMAL_ARROWS_DISTANCE in config file
AlexKurek Apr 9, 2024
d1ea239
Add MINIMAL_ARROWS_DISTANCE in config file
AlexKurek Apr 9, 2024
e55ee0f
Add MINIMAL_ARROWS_DISTANCE in config file
AlexKurek Apr 9, 2024
37a4c33
Add MINIMAL_ARROWS_DISTANCE in config file
AlexKurek Apr 9, 2024
23bd976
Add MINIMAL_ARROWS_DISTANCE in config file
AlexKurek Apr 9, 2024
b6c5e85
Update config_directory.md
AlexKurek Apr 9, 2024
021a0f9
Update README.md
AlexKurek Apr 9, 2024
b979089
Finish arrows showing motor route
AlexKurek Apr 10, 2024
dc6bb46
Add sounds
AlexKurek Apr 10, 2024
e2b8159
Add sounds
AlexKurek Apr 10, 2024
1558a58
Add sounds
AlexKurek Apr 10, 2024
ef094bf
Update config_directory.md
AlexKurek Apr 10, 2024
70b51ba
Update config_directory.md
AlexKurek Apr 10, 2024
4128d10
Fix indent
AlexKurek Apr 11, 2024
cc02e85
Create rot_curve.txt
AlexKurek Apr 11, 2024
ad504fb
Add comments
AlexKurek Apr 11, 2024
20cee88
Update command_files.md
AlexKurek Apr 13, 2024
98083b7
Add playsound command
AlexKurek Apr 13, 2024
000b487
Update rot_curve.txt
AlexKurek Apr 13, 2024
d58eaef
Fix playsound
AlexKurek Apr 13, 2024
90611a2
From https://github.com/ryanvolz/srt-py/blob/update-conda-recipe/reve…
AlexKurek Apr 14, 2024
df52200
From https://github.com/ryanvolz/srt-py/blob/update-conda-recipe/reci…
AlexKurek Apr 14, 2024
512e3bc
Remove unnecessary files
AlexKurek Apr 14, 2024
adb5c9d
Update monitor_page.py
AlexKurek Apr 14, 2024
e322e83
Update motors.py
AlexKurek Apr 14, 2024
641639a
Update command_files.md
AlexKurek Apr 14, 2024
742a2f2
Update example_cmd_file.txt
AlexKurek Apr 14, 2024
c5e3839
Update CHANGELOG.rst
AlexKurek Apr 14, 2024
3c024f1
Update CHANGELOG.rst
AlexKurek Apr 15, 2024
6e100ab
Update CHANGELOG.rst
AlexKurek Apr 15, 2024
2acc441
Update CHANGELOG.rst
AlexKurek Apr 15, 2024
8ba18d8
Update config_directory.md
AlexKurek Apr 15, 2024
91922d6
Prepare for npoint arrows
AlexKurek Apr 15, 2024
3bbc50a
Update meta.yaml
AlexKurek Apr 15, 2024
ca9b0d1
Update installation instructions
AlexKurek Apr 15, 2024
c1652ab
Update CHANGELOG.rst
AlexKurek Apr 15, 2024
68211b8
Update README.md
AlexKurek Apr 15, 2024
f8804c9
Update README.md
AlexKurek Apr 15, 2024
80f8cbd
Update README.md
AlexKurek Apr 15, 2024
e66a073
Update README.md
AlexKurek Apr 15, 2024
8cd00e5
Update README.md
AlexKurek Apr 15, 2024
e5990eb
fk4 to icrs
AlexKurek Apr 18, 2024
e9a89e2
Update CHANGELOG.rst
AlexKurek Apr 18, 2024
6b7e583
Update CHANGELOG.rst
AlexKurek Apr 18, 2024
b6acc86
Update config_directory.md
AlexKurek Apr 18, 2024
0b03c5d
Prepare for npoint_arrows
AlexKurek Apr 18, 2024
1b19e20
Update CHANGELOG.rst
AlexKurek Apr 18, 2024
c60c01e
Add comments
AlexKurek Apr 18, 2024
a5adab0
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek Apr 18, 2024
8c9ecca
Remove unnecessary variable
AlexKurek Apr 19, 2024
a30c982
Fix arrows order
AlexKurek Apr 19, 2024
3645b60
Finish n-point scan arrows
AlexKurek Apr 19, 2024
2873126
Create test_object_coords_to_azel.py
AlexKurek Apr 19, 2024
ba7efe6
Update CHANGELOG.rst
AlexKurek Apr 19, 2024
4dae463
Update test_object_coords_to_azel.py
AlexKurek Apr 19, 2024
13a1553
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek Apr 19, 2024
8f618bb
For creating test objects close to STOW
AlexKurek Apr 19, 2024
82bdcb7
Update CHANGELOG.rst
AlexKurek Apr 19, 2024
c7a76c5
Recording indicator
AlexKurek Apr 20, 2024
e1ff9bd
Update CHANGELOG.rst
AlexKurek Apr 20, 2024
5562f39
Remove debug
AlexKurek Apr 20, 2024
a768f3c
Bold to recording indicator
AlexKurek Apr 20, 2024
dde9542
Fix comments
AlexKurek Apr 20, 2024
8c6ac5f
Update monitor_page.py
AlexKurek Apr 20, 2024
d8ea8c1
Add waterfall spectrum plot
AlexKurek Apr 21, 2024
c85f10f
Sort the system page by newest issue first
AlexKurek Apr 23, 2024
50b6633
Update CHANGELOG.rst
AlexKurek Apr 23, 2024
d1a9bdc
history_length to parameter
AlexKurek Apr 23, 2024
20fed47
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek Apr 23, 2024
765d6e8
history_length to parameter
AlexKurek Apr 23, 2024
fa17ca2
history_length to parameter
AlexKurek Apr 23, 2024
4cd9cbb
Update CHANGELOG.rst
AlexKurek Apr 23, 2024
8a9c579
Update config_directory.md
AlexKurek Apr 23, 2024
4924022
Update config_directory.md
AlexKurek Apr 23, 2024
dd0b27a
Fix comment
AlexKurek Apr 24, 2024
1df2e52
Waterfall plot length to parameter
AlexKurek Apr 24, 2024
33f64f0
Fix
AlexKurek Apr 24, 2024
605bb90
Fix
AlexKurek Apr 24, 2024
4b997df
Avoid deprecation
AlexKurek Apr 24, 2024
6845cb1
Remove duplicated name
AlexKurek Apr 25, 2024
108f9de
Simplify
AlexKurek Apr 25, 2024
1d009dc
Prepare for timezone choice
AlexKurek Apr 25, 2024
574553c
Choose timezone in Monitor Page
AlexKurek Apr 25, 2024
2122a11
Update CHANGELOG.rst
AlexKurek Apr 25, 2024
d7b75e4
Update config_directory.md
AlexKurek Apr 25, 2024
cdcc579
Verify GUI_TIMEZONE
AlexKurek Apr 25, 2024
00cd28d
Update CHANGELOG.rst
AlexKurek Apr 25, 2024
906d769
Az-el graph display limits to parameter
AlexKurek Apr 27, 2024
ac369c5
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek Apr 27, 2024
32d3e55
Optional drawing of ecliptic plane
AlexKurek Apr 29, 2024
1ba0658
Optional drawing of equator plane
AlexKurek Apr 29, 2024
6422bef
Change colors
AlexKurek Apr 29, 2024
794abfb
Small fixes
AlexKurek May 1, 2024
f0a89a6
Update sky_coords.csv
AlexKurek May 2, 2024
5fcdc96
Styling figures
AlexKurek May 3, 2024
7116b1f
Update CHANGELOG.rst
AlexKurek May 3, 2024
15ef85f
Real size Sun shape
AlexKurek May 3, 2024
c0e39ac
Real size Moon
AlexKurek May 3, 2024
950a92c
Formatting
AlexKurek May 3, 2024
7a11532
Marker for visability to circular
AlexKurek May 3, 2024
b8b51b5
Opacity fix
AlexKurek May 4, 2024
20edb4e
Update monitor_page.png
AlexKurek May 4, 2024
9e29aaa
Update README.md
AlexKurek May 4, 2024
bf3c574
Refactor
AlexKurek May 5, 2024
2d20cff
Run without typing 'python'
AlexKurek May 5, 2024
d8a8114
Update CHANGELOG.rst
AlexKurek May 5, 2024
43946aa
Fix deprecation
AlexKurek May 8, 2024
c556d50
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek May 8, 2024
1a51265
Update CHANGELOG.rst
AlexKurek May 8, 2024
7953ab6
Fix deprecations
AlexKurek May 8, 2024
8bf914c
Fix deprecations
AlexKurek May 8, 2024
757eb3b
Fix deprecations
AlexKurek May 8, 2024
4456ff2
Update CHANGELOG.rst
AlexKurek May 8, 2024
1553cb4
Revert "Fix deprecations"
AlexKurek May 8, 2024
59d17e6
Revert "Fix deprecations"
AlexKurek May 8, 2024
33d55eb
Revert "Fix deprecations"
AlexKurek May 8, 2024
00b3b36
Update CHANGELOG.rst
AlexKurek May 8, 2024
0a328fb
Simplify
AlexKurek May 9, 2024
d016925
Update config_directory.md
AlexKurek May 11, 2024
92ea2bf
Number of n-point scan rotor positions to parameter
AlexKurek May 11, 2024
9a3f9d0
Comment unused modules
AlexKurek May 11, 2024
45a309e
utcfromtimestamp deprecation fix
AlexKurek May 11, 2024
28706b8
Update CHANGELOG.rst
AlexKurek May 11, 2024
f6d8a73
Fix indents
AlexKurek May 11, 2024
8d5a87b
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek May 11, 2024
76f67d0
is_square to functions
AlexKurek May 11, 2024
b4d4a11
multi-line string
AlexKurek May 11, 2024
8efc3e0
multi-line string
AlexKurek May 11, 2024
3e2b442
Enable emptygraph in Raw Spectrum History
AlexKurek May 12, 2024
6dd238c
Remove unnecessary variables
AlexKurek May 12, 2024
14e805f
Update config_directory.md
AlexKurek May 12, 2024
0f2756b
Update CHANGELOG.rst
AlexKurek May 12, 2024
7cb7143
Add option height argument to emptygraph
AlexKurek May 12, 2024
dcf0311
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek May 12, 2024
99b3b2f
Update config_directory.md
AlexKurek May 12, 2024
c0a6fc5
Update config_directory.md
AlexKurek May 12, 2024
148edd7
Fix
AlexKurek May 14, 2024
59480f2
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek May 14, 2024
50e8da2
Graphs appear faster
AlexKurek May 14, 2024
79d1407
Fix import
AlexKurek May 14, 2024
804f8fb
Remove unused return
AlexKurek May 14, 2024
d6137b3
N-point graph size consistent with other graphs
AlexKurek May 19, 2024
92b1336
Update CHANGELOG.rst
AlexKurek May 19, 2024
a0baac3
Logging messages to beam switch
AlexKurek May 21, 2024
16b2c43
Merge branch 'master' of https://github.com/AlexKurek/srt-py
AlexKurek May 21, 2024
29304ac
Fix beam shift logging
AlexKurek May 21, 2024
9a35f6f
Fix beam switch center
AlexKurek May 21, 2024
b34d2f2
Print warning message
AlexKurek May 21, 2024
cc9fe6d
Declaim message at the end of beam switch
AlexKurek May 21, 2024
524a4a9
Update config_directory.md
AlexKurek May 21, 2024
038273d
Update CHANGELOG.rst
AlexKurek May 21, 2024
c4ee18f
Beam switch integration time to parameter
AlexKurek May 22, 2024
0159124
Finish beam switch parameter
AlexKurek May 22, 2024
c6fd8fe
Finish beam switch parameter
AlexKurek May 22, 2024
5f2e116
Warning message when angle out of bounds during n-point scan and beam…
AlexKurek May 22, 2024
cdc5b87
Prepare for beam switch display
AlexKurek May 22, 2024
102e475
Preapre bswitch
AlexKurek May 22, 2024
becc614
Longer warning message
AlexKurek May 23, 2024
f548739
Log message at the end of n-point scan and beam switch
AlexKurek May 23, 2024
1c03136
Finish beam switch graph
AlexKurek May 25, 2024
ed7f056
Prepare annotation
AlexKurek May 26, 2024
f9fbe2c
Formatting
AlexKurek May 26, 2024
5179c60
Finish annotation for beam switch graph
AlexKurek May 26, 2024
eaca7a3
Update CHANGELOG.rst
AlexKurek May 26, 2024
7c8e2a3
Simplify
AlexKurek May 26, 2024
3bafbc0
Revert "Simplify"
AlexKurek May 26, 2024
37ef782
Comments
AlexKurek May 31, 2024
f53e802
Formatting
AlexKurek May 31, 2024
16e42fa
Formatting
AlexKurek May 31, 2024
4947f79
Implementing GOTO_STOW_AT_STARTUP (not tested yet)
AlexKurek Jun 1, 2024
6a716fb
Add comment
AlexKurek Jun 8, 2024
594188b
Comment
AlexKurek Jun 8, 2024
290f629
Update CHANGELOG.rst
AlexKurek Jun 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 72 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,78 @@
srt-py Change Log
=================

.. current developments

vv1.1.1
**Current developments:**

**Added:**

* ``DASHBOARD_THREADS``, ``NPOINT_INTEG_TIME``, ``MINIMAL_ARROWS_DISTANCE``, ``PLAY_SOUNDS``, ``NPOINT_ARROWS``, ``SPECTRUM_HISTORY_LENGTH``, ``WATERFALL_LENGTH``, ``GUI_TIMEZONE``, ``DISPLAY_LIM``, ``DRAW_ECLIPTIC``, ``DRAW_EQUATOR``, ``N_PNT_COUNT``, ``BSWITCH_INTEG_TIME``, ``GOTO_STOW_AT_STARTUP`` parameters
* CASSI motor support
* Baudrate check for H180 and CASSI motors classes
* Non-physical limit warning
* Windrose letters and lines in Azimuth and Elevation Graph
* Buttons to modebar: all shape drawing, ``togglespikelines`` and ``togglehover``
* Drawing of n-point scan points on az-el graph
* Drawing arrows showing motor route
* ``playsound`` command
* Optional sound when n-point scan and beam switch are complete
* ``rot_curve.txt`` command file
* ``ocl-icd-system`` to the recipe to avoid https://github.com/MITHaystack/srt-py/issues/21#issuecomment-1963827916
* ``tzlocal`` to recipe
* Optional arrows showing route of n-point scan
* ``azel_to_coords.py``, ``coords_to_azel.py``
* Recording indicator to system page
* Waterfall spectrum plot
* Spectrum history length to parameter
* User now can choose timezone in Monitor Page
* Az-el graph display limits to parameter
* Optional drawing of ecliptic and equator planes
* Real size Sun and Moon shapes
* Logging messages to beam switch
* Warning message when angle out of bounds during n-point scan and beam switch
* Log message at the end of n-point scan and beam switch
* Beam switch graph
* Option to automatically go to STOW at startup

**Changed:**

* Remember zoom after refresh in Azimuth and Elevation Graph
* Hide Plotly logo
* Enabe scroll zoom
* ``monitor_page.png``
* fk4 to icrs in ``sky_coords.csv``
* Sort the system page by newest issue first
* Different marker types on az el graph
* Marker for visability to circular
* Number of n-point scan rotor positions to parameter
* Height of n-point scan graph to 300
* N-point scan and beam switch integration times to parameters

**Fixed:**

* Searching for default config dir (https://github.com/MITHaystack/srt-py/issues/23)
* Astropy deprecations
* H180 class: init (https://github.com/MITHaystack/srt-py/issues/21) and updating ``self.az_count``, ``self.el_count`` (https://github.com/MITHaystack/srt-py/issues/24)
* N-point scan and beam switch numbering (off-by-one error)
* Conda build error (https://github.com/MITHaystack/srt-py/issues/19)
* N-point scan and beam switch center not updated during scan (https://github.com/MITHaystack/srt-py/issues/25)
* Visability rectangle for negative STOW azimuth (overwritten by: marker for visability to circular)
* Dash deprecation: ``className`` to ``class_name`` (https://github.com/AlexKurek/srt-py/commit/43946aa7e8453154096ddc45c092f506cda00cff)
* ``utcfromtimestamp`` deprecation
* Comment unused modules in ``srt/daemon/radio_control/`` (https://github.com/AlexKurek/srt-py/commit/9a3f9d05a5b0fd2e2b8300441605010e2586599c)
* Graphs appear faster
* Beam switch count (off-by-one error)

**Known issues:**

* A lot of waitress logging messages is printed (https://github.com/MITHaystack/srt-py/issues/27)
* Beam-switch and N-Point Scan not possible after Direct Point to the same object (https://github.com/MITHaystack/srt-py/issues/29)
* Versioneer is outdated and not supporting current Python versions
* GOTO_STOW_AT_STARTUP not working



v1.1.1
====================

**Added:**
Expand All @@ -14,7 +83,7 @@ vv1.1.1



vv1.1.0
v1.1.0
====================

**Added:**
Expand Down
83 changes: 74 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,80 @@ This software is written in pure Python, and so depends on having an installed v

### Building the Conda Package Locally

After downloading the srt-py source repository, open up a command prompt or terminal with conda installed and navigate to the folder containing the srt-py directory. Additionally, ensure that you have conda-build and conda-verify installed
Download srt-py source repository using command prompt or terminal with conda installed:
```
conda update -y --all
git clone https://github.com/AlexKurek/srt-py
```

Ensure that you have `conda-build` and `conda-verify` installed

```
conda install -y conda-build conda-verify
```

Build the conda package

```
conda build -c conda-forge srt-py --no-test --no-anaconda-upload
```

Create a new conda env, switch it to the conda-forge channel and activate it

```
conda install conda-build conda-verify
conda create -y -n srtpy
conda activate srtpy
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
```

Build and install the conda package
Install the package

```
conda-build srt-py
conda install -c file://${CONDA_PREFIX}/conda-bld/ srt-py
conda install -y --use-local srt-py
```

Copy config files and an exemplary command file to your HOME:

```
mkdir ~/.srtpy-config/
cp -r ~/srt-py/config/{config.yaml,schema.yaml,sky_coords.csv} ~/.srtpy-config/
cp ~/srt-py/examples/example_cmd_file.txt ~/
rm -rf ~/srt-py/
```

Enable udev device setup of rtl-sdr hardware

```
sudo ln -s ~/miniconda3/envs/srtpy/lib/udev/rules.d/rtl-sdr.rules /etc/udev/rules.d/
```

Reload your udev rules

```
sudo udevadm control --reload && sudo udevadm trigger
```

Cleanup

```
conda deactivate
conda build purge
```

If you have Ubuntu 22 and getting https://askubuntu.com/questions/1403705/dev-ttyusb0-not-present-in-ubuntu-22-04

```
sudo apt purge brltty
sudo rm -rv /var/lib/BrlAPI/
```

If you are getting `Cannot open /dev/ttyUSB0: Permission denied`
```
sudo usermod -a -G tty,dialout $USER
```

Do a proper logout or reboot.

### Building the Pip Package Locally (Not Recommended due to Dependency Issues)

Expand Down Expand Up @@ -104,14 +166,14 @@ The bar at the top of the dashboard manages sending commands to the SRT, which a

Additionally, there are four different interactive graphs displayed on this screen.
The 'Power vs Time' graph displays the received power over a certain range of time into the past.
The first of the two spectrum graphs, 'Raw Spectrum', shows the processed and integrated radio FFT data, whose values don't necessarily have any real world units and have a shape that is influenced by the band-pass filter. The other, 'Calibrated Spectrum' shows the values after dividing out the calibration values taken when the 'Calibrate' command was last run on a test source of known temperature (such as a clump of trees or a noise diode).
Finally, there is the Azimuth-Elevation graph, which shows the current position of all objects specified to be tracked in the sky_coords.csv configuration file, as well as the reachable limits of the motor and the horizon. Clicking on a point allows you to send a command to track that object, perform an n-point scan about the object, or repeatedly move the antenna across it.
The first of the two spectrum graphs, 'Raw Spectrum', shows the processed and integrated radio FFT data, whose values don't necessarily have any real world units and have a shape that is influenced by the band-pass filter. The other, 'Calibrated Spectrum', shows the values after dividing out the calibration values taken when the 'Calibrate' command was last run on a test source of known temperature (such as a clump of trees or a noise diode). 'Raw Spectrum History' shows a waterfall plot sometimes called also a dynamic spectrum.
Finally, there is the Azimuth-Elevation graph, which shows the current position of all objects specified to be tracked in the sky_coords.csv configuration file, as well as the reachable limits of the motor and the horizon. Clicking on a point allows you to send a command to track that object, perform an n-point scan about the object, or repeatedly move the antenna across it.

#### System Page UI

![System Page](docs/images/system_page.png)

The System Page contains many displays of information not necessary for actively controlling the SRT. In case of a serious problem occuring when operating the SRT, there is a section for Emergency Contact Info. There is similarly a 'Message Logs' scrolling area for logs sent from the SRT, in order to assist in debugging or just determining what it has done recently. In the middle is a more verbose status blurb about the status of the SRT's command queue, including the number of commands queued up and what the SRT is currently trying to run. Finally, there is also a list of the files and folders in the SRT's specified recording save directory, which users can directly download files from via the dashboard if the "DASHBOARD_DOWNLOADS" setting in the configuration YAML is set to Yes.
The System Page contains many displays of information not necessary for actively controlling the SRT. In case of a serious problem occuring when operating the SRT, there is a section for Emergency Contact Info. There is similarly a 'Message Logs' scrolling area for logs sent from the SRT, in order to assist in debugging or just determining what it has done recently. In the middle is a more verbose status blurb about the status of the SRT's command queue, including the number of commands queued up and what the SRT is currently trying to run. Finally, there is also a list of the files and folders in the SRT's specified recording save directory, which users can directly download files from via the dashboard if the "DASHBOARD_DOWNLOADS" setting in the configuration YAML is set to Yes.

### Running Headless / Command Line Usage

Expand Down Expand Up @@ -164,6 +226,8 @@ srt_controller.py status --status_parameter=motor_azel
- plotly
- pandas
- waitress
- ocl-icd-system
- tzlocal

## Accommodating Different Hardware

Expand All @@ -187,9 +251,10 @@ Adding a new antenna motor therefore requires:
- Making the string name for that motor create that motor in [rotors.py](srt/daemon/rotor_control/rotors.py)
- Adding the string name as an valid option in the [YAML schema](config/schema.yaml) MOTOR_TYPE so the new type will be considered valid, such as:
```
MOTOR_TYPE: enum('ALFASPID', 'H180MOUNT', 'PUSHROD', 'NONE')
MOTOR_TYPE: enum('ALFASPID', 'H180MOUNT', 'PUSHROD', 'NONE', 'CASSI')
```
- Changing the MOTOR_TYPE in your own configuration YAML to the new motor type
- Adding the string name to the condition in `generate_az_el_graph` method in [graphs.py](https://github.com/AlexKurek/srt-py/blob/master/srt/dashboard/layouts/graphs.py).

## Further Documentation

Expand Down
6 changes: 3 additions & 3 deletions bin/srt_runner.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from waitress import serve
from srt import config_loader
from os.path import expanduser


def run_srt_daemon(configuration_dir, configuration_dict):
Expand All @@ -28,6 +29,7 @@ def run_srt_dashboard(configuration_dir, configuration_dict):
app_server,
host=configuration_dict["DASHBOARD_HOST"],
port=configuration_dict["DASHBOARD_PORT"],
threads=configuration_dict["DASHBOARD_THREADS"],
)


Expand All @@ -41,7 +43,7 @@ def run_srt_dashboard(configuration_dir, configuration_dict):
metavar="config_dir",
type=str,
help="The Path to the SRT Config Directory",
default="~/.srt-config",
default=expanduser("~/.srt-config"),
)
my_parser.add_argument(
"--config_file_name",
Expand All @@ -50,13 +52,11 @@ def run_srt_dashboard(configuration_dir, configuration_dict):
help="The filename of the Config File to Load",
default="config.yaml",
)

my_parser.add_argument(
"--dash_only",
dest="dash_only",
action="store_true",
help="Load up the dashboard only",

)
# Execute the parse_args() method
args = my_parser.parse_args()
Expand Down
18 changes: 18 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,26 @@ BEAMWIDTH: 7.0
TSYS: 171
TCAL: 290
SAVE_DIRECTORY: ~/Desktop/SRT-Saves
NPOINT_INTEG_TIME: 5.0
BSWITCH_INTEG_TIME: 5.0
MINIMAL_ARROWS_DISTANCE: 5.0
RUN_HEADLESS: No
DASHBOARD_PORT: 8080
DASHBOARD_HOST: 0.0.0.0
DASHBOARD_DOWNLOADS: Yes
DASHBOARD_REFRESH_MS: 3000
DASHBOARD_THREADS: 8
PLAY_SOUNDS: Yes
NPOINT_ARROWS: Yes
SPECTRUM_HISTORY_LENGTH: 1000
WATERFALL_LENGTH: 200
GUI_TIMEZONE: UTC
DISPLAY_LIM:
az_lower_display_lim: 0
az_upper_display_lim: 360
el_lower_display_lim: 0
el_upper_display_lim: 90
DRAW_ECLIPTIC: Yes
DRAW_EQUATOR: Yes
N_PNT_COUNT: 25
GOTO_STOW_AT_STARTUP: Yes
21 changes: 20 additions & 1 deletion config/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ELLIMITS: include('limit')
STOW_LOCATION: include('az_el_point')
CAL_LOCATION: include('az_el_point')
HORIZON_POINTS: list(include('az_el_point'), min=0)
MOTOR_TYPE: enum('ALFASPID', 'H180MOUNT', 'PUSHROD', 'NONE')
MOTOR_TYPE: enum('ALFASPID', 'H180MOUNT', 'PUSHROD', 'NONE', 'CASSI')
MOTOR_BAUDRATE: int()
MOTOR_PORT: str()
RADIO_CF: int()
Expand All @@ -19,11 +19,25 @@ BEAMWIDTH: num()
TSYS: num()
TCAL: num()
SAVE_DIRECTORY: str()
NPOINT_INTEG_TIME: num()
BSWITCH_INTEG_TIME: num()
MINIMAL_ARROWS_DISTANCE: num()
RUN_HEADLESS: bool()
DASHBOARD_PORT: int()
DASHBOARD_HOST: ip()
DASHBOARD_DOWNLOADS: bool()
DASHBOARD_REFRESH_MS: int()
DASHBOARD_THREADS: int()
PLAY_SOUNDS: bool()
NPOINT_ARROWS: bool()
SPECTRUM_HISTORY_LENGTH: int()
WATERFALL_LENGTH: int()
GUI_TIMEZONE: str()
DISPLAY_LIM: include('disp_limit')
DRAW_ECLIPTIC: bool()
DRAW_EQUATOR: bool()
N_PNT_COUNT: int()
GOTO_STOW_AT_STARTUP: bool()
---
location:
latitude: num()
Expand All @@ -42,3 +56,8 @@ contact_info:
name: str()
email: str()
phone_number: str()
disp_limit:
az_lower_display_lim: num()
az_upper_display_lim: num()
el_lower_display_lim: num()
el_upper_display_lim: num()
Loading