strath-sdr / rfsoc_frequency_planner

An RFSoC Frequency Planner developed using Python.
BSD 3-Clause "New" or "Revised" License
20 stars 7 forks source link

Web app not working #6

Open anxotato opened 1 year ago

anxotato commented 1 year ago

I tried the link of the readme: https://rfsoc-frequency-planner.herokuapp.com/ but the online web app is not working. The following message appears:

Application error

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail

Do you plan to solve this?

jogomojo commented 1 year ago

This is an issue I've been meaning to deal with but haven't had time to get round to it yet. Heroku removed their free tier option and the app was deleted from their servers. We have a few options to deal with this:

  1. Remove the Heroku app from the repo and just leave the version that runs on the RFSoC board.
  2. Remove the Heroku app from the repo and replace it with an app that will run on a computer.
  3. Start paying for a Heroku paid subscription tier.

I don't have time at the moment to action this, but I'll revisit it in a couple of weeks. If anyone has any more suggestions, or have a preference to the options I listed above, then feel free to chime in.

anxotato commented 1 year ago

From my side, It would better to replace de Heroku app and modify it to be runned on a compute EVEN WITHOUT a RFSoC board, since it can be interesting to make analysis previously to pruchase one board.

Thanks for your repply.

dnorthcote commented 1 year ago

The frequency planner can execute on a computer with Anaconda/Jupyter Lab installed. Just run the pip3 command, and the notebooks will appear in the Jupyter working folder. We will decide on Heroku shortly.

matthuszagh commented 1 month ago

Can you provide a bit more information on how to run this not on a general computer? I've tried:

  1. Open jupyter lab (eg navigate to http://localhost:8888/lab)
  2. Open the terminal and run pip3 install git+https://github.com/strath-sdr/rfsoc_frequency_planner.

After this, I don't see any additional workspaces:

~/.jupyter/lab/workspaces$ ll
total 12
drwxr-xr-x 2 matt.huszagh domain^users 4096 Oct 28 19:54 ./
drwxr-xr-x 3 matt.huszagh domain^users 4096 Oct 28 19:54 ../
-rw-r--r-- 1 matt.huszagh domain^users 2324 Oct 28 20:06 default-37a8.jupyterlab-workspace

I expect this is all probably obvious, but I'm not too familiar with jupyter.