Skip to content

Navigation Menu

Sign in
Sign up

Welcome to HBNet Discussions! #32

kf7eel announced in Announcements
Jan 3, 2022 · 3 comments · 1 reply
Discussion options

👋 Welcome!

We’re using Discussions as a place to connect with other members of our community. We hope that you:

  • Ask questions you’re wondering about.
  • Share ideas.
  • Engage with other community members.

This will be the primary support place aside from groups.io. Feel free to ask questions here.

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

Hi Eric,
What is the correct docker-compose steps to build up the container.

Thanks
VK3TIM

You must be logged in to vote
1 reply
Comment options

kf7eel Mar 1, 2022
Maintainer Author

I'll be adding a guide in the wiki on using docker-compose shortly.

Until then, you can build an image from the included docker files.

First, cp docker/ hbnet/

Easiest way: sudo docker-compose build

Comment options

Hello Eric, I have been running HBLINK3 for quite some time now, I'm interested on running HBNET instead because of the web interface and the user functionality you added via the web interface.
I loaded all the hbnet files in /data0/hbnet, configured the /web/config.py, the hblink.cfg and data_gateway.cfg if I start /data0/hbnet/web/app.py (python3 app.py) it does start
root@www web]# python3 app.py

  • Serving Flask app "app" (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
  • Running on http://127.0.0.1:8090/ (Press CTRL+C to quit)
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 998-801-243

But trying to access the actual webpage: http://www.xe2dnn.org:8090/svr gives me an error:
Unable to connect

An error occurred during a connection to 172.16.1.2:8090.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

My questions: where is that /svr directory supposed to be created?
What files are supposed to reside in that svr directory?

Here is a copy of the config.py in the /web directory:
'''Settings for HBNet Web Server.'''

Database options

Using SQLite is simple and easiest. Comment out this line and uncomment the MySQL

line to use a MySQL/MariaDB server.

#db_location = 'sqlite:///hbnet.sqlite';

Uncomment and change this line to use a MySQL DB. It is best to start with a fresh

DB without data in it.

db_location = 'mysql+pymysql://root:xe2dnn2008@127.0.0.1:3306/HBNET'

Title of the HBNet Web Service/DMR network

title = 'Consola de acceso a HBNet'

Port to run server, not needed if using Docker or uWSGI with NGINX or Apache2

#hws_port = 8080
hws_port = 8090

IP to run server on

hws_host = '127.0.0.1'

Publicly accessible URL of the web server. THIS IS REQUIRED AND MUST BE CORRECT.

url = 'http://www.xe2dnn.org:8090/svr'

Replace below with some random string such as an SHA256

secret_key = 'xe2dnn_2008_red_digital_del_noroeste'

Mode is used to disable certain features of the web service.

This is primarily used to to turn the web service into a generic APRS/SMS dashboard.

This gives the ability to have a dashboard with FreeDMR or HBLink, without the unecessary features of HBNet.

Options are:

FULL - Normal HBNet web service

DASH_ONLY - To be used with FreeDMR or HBLink

DMR_ONLY - Hides all SMS/GPS stuff

mode = 'FULL'

Timezone to show time stamps in. Stored in DB as UTC. Offset in hours.

hbnet_tz = -8

Time format for display on some pages

time_format = '%H:%M:%S - %m/%d/%y'

Default state for newly created user accounts. Setting to False will require

the approval of an admin user before the user can login.

default_account_state = True

Allow users to generate and send SMS messages via the web service

and API.

allow_user_sms = False

Legacy passphrase used in hblink.cfg

legacy_passphrase = 'passw0rd'

Coordinates to center map over

center_map = [32.6936, -115.4727]

Default map zoom level

map_zoom = 10

Passphrase calculation config. If REMOTE_CONFIG is not used in your DMR server config

(hblink.cfg), then the values in section [USER_MANAGER] MUST match the values below.

If REMOTE_CONFIG is enabled, the DMR server (hblink) will automatically use the values below.

These config options affect the generation of user passphrases.

Set to a value between 1 - 99. This value is used in the normal calculation.

append_int = 1

Set to a value between 1 - 99. This value is used for compromised passphrases.

burn_int = 5

Set to a value between 1 - 99 This value is used in the normal calculation.

extra_int_1 = 5

Set to a value between 1 - 99 This value is used in the normal calculation.

extra_int_2 = 8

Set to a length of about 10 characters.

extra_1 = 'TeSt'
extra_2 = 'DmR4'

Shorten generated passphrases

use_short_passphrase = True

Character length of shortened passphrase

shorten_length = 6

How often to pick character from long passphrase when shortening.

shorten_sample = 4

Email settings

MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USE_TLS = False
MAIL_USERNAME = 'xe2dnn@gmail.com'
MAIL_PASSWORD = 'Xe2dnn2008'
MAIL_DEFAULT_SENDER = '"' + title + '"'xe2dnn@gmail.com'

User settings settings

USER_ENABLE_EMAIL = True
USER_ENABLE_USERNAME = True
USER_REQUIRE_RETYPE_PASSWORD = True
USER_ENABLE_CHANGE_USERNAME = False
USER_ENABLE_MULTIPLE_EMAILS = True
USER_ENABLE_CONFIRM_EMAIL = True
USER_ENABLE_REGISTER = True
USER_AUTO_LOGIN_AFTER_CONFIRM = False
USER_SHOW_USERNAME_DOES_NOT_EXIST = True

Thanks in advance
Alex N2IX

You must be logged in to vote
0 replies
Comment options

kf7eel
Nov 14, 2022
Maintainer Author

The /svr endpoint is where MMDVM servers request a configuration and sent data. The configuration indicates that the web service is running on localhost only, changing hws_host to '0.0.0.0' will run it on all interfaces.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /