[TangerineSDR] Webserver for local host

Engelke, Bill bill.engelke at ua.edu
Wed Dec 4 08:16:17 EST 2019


Rob - regarding the packaging, we will definitely coordinate with you on that. It's gonna be quite a while before we're at that point, tho.

BTW, I will be sending you a first draft of the protocol for communication between MainCtl  (on Local Host)  and Central Control in the next day or so, for review and comment.

-tnx es 73 - Bill, AB4EJ

-----Original Message-----
From: TangerineSDR <tangerinesdr-bounces at lists.tapr.org> On Behalf Of Rob Wiesler via TangerineSDR
Sent: Tuesday, December 3, 2019 9:02 PM
To: TAPR TangerineSDR Modular Software Defined Radio <tangerinesdr at lists.tapr.org>
Cc: Rob Wiesler <robert.wiesler at case.edu>
Subject: Re: [TangerineSDR] Webserver for local host

On Tue, Dec 03, 2019 at 21:39:43 +0000, Engelke, Bill via TangerineSDR wrote:
> I got it working with Waitress. Maybe we don't need apache. Or tomcat 
> either.

Waitress should be good by itself.  Maybe I'm too predictable, but I really like its dependency graph :)

> I think the point of using a venv is generally to deal with the 
> proverbial "interdependency hell" that is a problem when running 
> multiple versions of python and/or databases. (Man, I hope we don’t 
> have to put a database on SBC, but I won’t be surprised if someone 
> thinks of a reason to do it).

Besides the small session database used by the webapp ([0]), mosquitto might try to save retained events to its own database (if we use MQTT).
I think that'll all be sqlite, though, so we should be able to avoid something heavyweight like PostgreSQL.

[0] https://flask.palletsprojects.com/en/1.1.x/tutorial/database/

> From the Flask framework, I have it working to where I can enter 
> commands into a web page, which get sent to MainCtl, and then MainCtl 
> controls the DE simulator. MainCtl can also output data as Digital RF.
> So I have a working proof of concept for the architecture.

Nicely done!  Once you're comfortable with the basic code layout and architecture, let me know and I can start packaging it.

--
TangerineSDR mailing list
TangerineSDR at lists.tapr.org
http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org


More information about the TangerineSDR mailing list