Simple command to check if you are within ISS visibility range

Compare changes

Choose any two refs to compare.

Changed files
+24 -15
.forgejo
workflows
+17 -9
.forgejo/workflows/rust.yaml
···
name: Build and upload a binary on tag push
-
on: [push]
+
on:
+
push:
+
tags:
+
- 'v*'
jobs:
-
test:
-
runs-on: docker
-
steps:
-
- run: echo All Good here
-
release:
+
build-release:
runs-on: docker
steps:
- name: Checkout
···
- name: Setup toolchian
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build
-
run: cargo build --release --verbose
+
run: |
+
export BIN_NAME="iss_locator"
+
export VER=$(awk -F "=" '/version/ {print $2}' Cargo.toml | grep -o -e '[0-9]*\.[0-9]*\.[0-9]*')
+
cargo build --release
+
mkdir release
+
cp target/release/$BIN_NAME release/$BIN_NAME-$VER
+
chmod +x release/$BIN_NAME-$VER
+
xz --keep -9 release/$BIN_NAME-$VER
+
shasum -a 256 release/$BIN_NAME-$VER > release/$BIN_NAME-$VER.sha256
+
shasum -a 256 release/$BIN_NAME-$VER.xz > release/$BIN_NAME-$VER.xz.sha256
- name: Upload release
uses: actions/forgejo-release@v1
with:
direction: upload
-
url: https://git.technoduck.me
+
url: https://git.technoduck.me
+
token: ${{secrets.app_token}}
release-dir: release
-
token: ${{secrets.app_token}}
verbose: true
+1 -1
Cargo.lock
···
[[package]]
name = "iss_locator"
-
version = "0.1.0"
+
version = "0.1.1"
dependencies = [
"reqwest",
"serde_json",
+1 -1
Cargo.toml
···
[package]
name = "iss_locator"
-
version = "0.1.0"
+
version = "0.1.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+5 -4
README.md
···
Your location is recieved from IP, ISS location from an API, plagiarized Haversine formula to check the distance between.
## TODO's
-
- [ ] Make calls async (dont judge it was easier like this)
-
- [ ] Add interractive mode
-
- [ ] terminal drawn world map ( with ![plotters-rs](https://github.com/plotters-rs/plotters)? )
-
- [ ] selecting your location on the map
+
- [x] Make calls async (dont judge it was easier like this) (see below)
+
- [x] Add interractive mode. - DONE see [satellite_observe.rs](https://tangled.sh/@technoduck.me/sattelite_observe.rs)
+
- [x] terminal drawn world map ( with [plotters-rs](https://github.com/plotters-rs/plotters)? )
+
- [x] selecting your location on the map (see above)
- [ ] display location of the ISS relative to you when in range
+
- [x] Create compile actions on tag pushes