Skip to content

Commit bb46518

Browse files
committed
Add streamlit endpoint and fix deployment
1 parent 607412f commit bb46518

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Scripts in this repository generate images of the night sky as seen in Glasgow, UK using the [Starplot](https://starplot.dev/) library.
44

5+
If you just want to generate plots, rather than contribute to the code, you can do so for free at: https://glasgow-starplot.streamlit.app/
6+
57
# Examples
68

79
![A Zenith Star Plot from Glasgow](images/glasgow_zenith.png "A Zenith Star Plot from Glasgow")

app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@
2020
2121
"""
2222

23+
import os
2324
import streamlit as st
2425
from datetime import datetime, date
2526
from zoneinfo import ZoneInfo
2627
from scripts.glasgow_horizon import make_horizon_plot
2728
from scripts.glasgow_zenith import make_zenith_plot
2829

30+
# Fix DuckDB/Starplot permissions
31+
os.makedirs("duckdb_extensions", exist_ok=True)
32+
os.environ["IBIS_DUCKDB_LIBDIR"] = os.path.abspath("duckdb_extensions")
33+
34+
2935
st.title("🌌 Glasgow Starplot Viewer")
3036

3137
# Sidebar: Plot type

0 commit comments

Comments
 (0)