OP25 More OP25 Questions

Status
Not open for further replies.

KC1UA

Scan New England Janitor/Maintenance
Database Admin
Joined
Oct 27, 2002
Messages
2,102
Location
Marstons Mills, Cape Cod, Massachusetts
Hello again,

I'm suffering from some confusion with regards to setting up logs for OP25 Osmocom and wondering if it is even possible. There was at one point some conflicting information here regarding this.

This post, from @wgbecks , indicates that it doesn't work after Ubuntu 18.04.
This post, from @CanesFan95 , indicates that at one point it was working in Ubuntu 20.04 and the setup instructions are included in his great tutorial, so I set out to try to get that to work. I get all the way to the end and then this:

Code:
scott@Osmocom:~$ cd op25/op25/gr-op25_repeater/apps/oplog
scott@Osmocom:~/op25/op25/gr-op25_repeater/apps/oplog$ export FLASK_APP=op25
scott@Osmocom:~/op25/op25/gr-op25_repeater/apps/oplog$ FLASK_DEBUG=1 flask run
/home/scott/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py:228: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ds is not 0:
/home/scott/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py:238: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ds is not 0:
Traceback (most recent call last):
  File "/home/scott/.local/bin/flask", line 8, in <module>
    sys.exit(main())
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 1063, in main
    cli.main()
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/scott/.local/lib/python3.8/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 911, in run_command
    raise e from None
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 897, in run_command
    app = info.load_app()
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 308, in load_app
    app = locate_app(import_name, name)
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 218, in locate_app
    __import__(module_name)
  File "/home/scott/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py", line 54, in <module>
    db.init_app(app)
  File "/home/scott/.local/lib/python3.8/site-packages/flask_sqlalchemy/extension.py", line 255, in init_app
    raise RuntimeError(
RuntimeError: A 'SQLAlchemy' instance has already been registered on this Flask app. Import and use that instance instead.

I'm not sure how to proceed from here as I simply don't have the knowledge. I did try to search this up but I'm not sure any of what I found would be applicable in this case, and I'm not sure at this point if changes to things along the way are rendering this impossible anyway.

A separate question follows.

Is Osmocom still being developed? I noticed as of July of 2022 @KA1RBI seemed to disappear from these forums. I hope he is okay. I am trying to determine the best path forward for long-term use of OP25 for when the statewide system in MA (CoMIRS) finally makes it to Cape Cod. Both versions are absolutely brilliant, the audio recovery is superb, and both have their pluses and minuses from what I can see. Osmocom is "prettier" in its web interface but it seems that Boatbod is more "active" for lack of a better term.

My next endeavor is a setup on a Raspberry Pi 4B with 8GB of RAM. Trying to consider my best move to learn without blowing up the OS 5000 times. I don't mind 4999, but 5000....I can't do dat...

Any help is appreciated as always, and thanks.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,397
Location
Talbot Co, MD
Boatbod is still here and active, although I haven't had much time to work on new features thanks to work and other family commitments. Not sure about Max/osmocom - he may be on hiatus.
 

KC1UA

Scan New England Janitor/Maintenance
Database Admin
Joined
Oct 27, 2002
Messages
2,102
Location
Marstons Mills, Cape Cod, Massachusetts
Boatbod is still here and active, although I haven't had much time to work on new features thanks to work and other family commitments. Not sure about Max/osmocom - he may be on hiatus.

Thanks for the reply.

As I understand it, your version doesn't have a logging system. I'm not sure that's important to me anyway. I was just trying to get it to work to see if I could do it.

As to Boatbod, I believe at this point it is not an issue to install with the latest LTS of Ubuntu? I also will be installing on the aforementioned Pi with the latest Raspian OS.

One goal I absolutely want to achieve is being able to use the web interface from another device on the LAN and be able to hear audio in addition to seeing the interface. It appears that Liquidsoap is how I will make that work.

So I guess I'm kinda all over the map with this project, aren't I? Just hoping for a stable long-term setup I'll be able to configure to my liking and then enjoy and use regularly.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,397
Location
Talbot Co, MD
The web interface is basic but functional. Audio has to come via a streaming server however, so liquidsoap & icecast are required, but fairly easy to set up.
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
1,008
Location
NE Wisconsin
Hello again,

I'm suffering from some confusion with regards to setting up logs for OP25 Osmocom and wondering if it is even possible. There was at one point some conflicting information here regarding this.

This post, from @wgbecks , indicates that it doesn't work after Ubuntu 18.04.
This post, from @CanesFan95 , indicates that at one point it was working in Ubuntu 20.04 and the setup instructions are included in his great tutorial, so I set out to try to get that to work. I get all the way to the end and then this:

Code:
scott@Osmocom:~$ cd op25/op25/gr-op25_repeater/apps/oplog
scott@Osmocom:~/op25/op25/gr-op25_repeater/apps/oplog$ export FLASK_APP=op25
scott@Osmocom:~/op25/op25/gr-op25_repeater/apps/oplog$ FLASK_DEBUG=1 flask run
/home/scott/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py:228: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ds is not 0:
/home/scott/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py:238: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if ds is not 0:
Traceback (most recent call last):
  File "/home/scott/.local/bin/flask", line 8, in <module>
    sys.exit(main())
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 1063, in main
    cli.main()
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/scott/.local/lib/python3.8/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/scott/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 911, in run_command
    raise e from None
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 897, in run_command
    app = info.load_app()
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 308, in load_app
    app = locate_app(import_name, name)
  File "/home/scott/.local/lib/python3.8/site-packages/flask/cli.py", line 218, in locate_app
    __import__(module_name)
  File "/home/scott/op25/op25/gr-op25_repeater/apps/oplog/op25/__init__.py", line 54, in <module>
    db.init_app(app)
  File "/home/scott/.local/lib/python3.8/site-packages/flask_sqlalchemy/extension.py", line 255, in init_app
    raise RuntimeError(
RuntimeError: A 'SQLAlchemy' instance has already been registered on this Flask app. Import and use that instance instead.

I'm not sure how to proceed from here as I simply don't have the knowledge. I did try to search this up but I'm not sure any of what I found would be applicable in this case, and I'm not sure at this point if changes to things along the way are rendering this impossible anyway.

A separate question follows.

Is Osmocom still being developed?

FYI, Max pushed an update today that restores compatability of oplog in accordance with changes in the packages that get intalled
with more recent releases of Ubuntu (and other Debian variants).
 
Status
Not open for further replies.
Top