HBLINK HBMONITOR


fred sant
 

need help with hbmonitor won't start up and keep giving me 6 error ,



                File "web_tables.py", line 627, in <module>
    talkgroup_ids = mk_full_id_dict(PATH, TGID_FILE, 'tgid')
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/utils.py", line 118, in mk_full_id_dict
    records = jload(_handle)['results']
  File "/usr/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode (s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s,idx)
ValueError: Expecting property name: line 7 column 5 (char 101)


fred sant
 

how can this be fix


fred sant
 

any manual on how to do this the right way with no more confusion.


On Monday, March 18, 2019, 07:22:08 PM EDT, fred sant via Groups.Io <yaesumontana@...> wrote:


how can this be fix


Heiko DL1BZ
 

Cort wrote in big letter at github for hbmonitor "COMPLETELY UNSUPPORTED SOFTWARE - DO NOT ASK FOR SUPPORT OR FEATURES" :) Respect that.

But I think I know what's your problem. The database for users und subscribers was changed from .csv to .json . In this case you need update the dmr_utils AND hblink and hbmonitor, because both parts are using the dmr_utils.
First load from github the actual versions of hblink and hbmonitor and save your config-files from the old version. Compare then with the newer examples of both version what is changed.
Go to hbmonitor-directory and do:
$ pip install -r requirements.txt --upgrade
This will be update the dmr_utils and maybe other things for requirement.

I have a running hbmonitor with hblink3 (if you use hblink3 you need to update the dmr_utils3 because they are for python3 - hbmonitor is python2) and all worked like a charm. With hblink3 you need in directory of hblink3:
$ pip3 install -r requirements.txt --upgrade If there's an error with the first line "python>=3.5.0" in requirements.txt comment out this line (I had such error, but I had the python3 >= 3.5 installed correctly).

73 Heiko, DL1BZ


SP2ONG Waldek
 

Hi Heiko

I have run HBLink3 and I try useHBmonitor.

I have start

python web_tables.py
2019-05-17 18:41:45,392 INFO web_tables.py starting up
2019-05-17 18:41:45,392 INFO

Copyright (c) 2016, 2017, 2018, 2019
    The Regents of the K0USY Group. All rights reserved.

2019-05-17 18:41:45,392 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
2019-05-17 18:41:45,393 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
2019-05-17 18:41:45,625 INFO ID ALIAS MAPPER: peer_ids dictionary is available
2019-05-17 18:41:48,150 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available
2019-05-17 18:41:48,287 INFO CLIENT TIMEOUT: List does not exist, skipping. If this message persists, contact the developer
2019-05-17 18:41:48,287 INFO reportClient object for connecting to HBlink.py created at: <__main__.reportClientFactory instance at 0xb5f4e38c>
2019-05-17 18:41:48,288 INFO Initiating Connection to Server.
2019-05-17 18:41:48,292 INFO Connected.
2019-05-17 18:41:48,293 INFO Resetting reconnection delay
2019-05-17 18:42:01,929 INFO static website requested: <Request at 0xb5f43f0c method=GET uri=/ clientproto=HTTP/1.1>
2019-05-17 18:43:25,132 INFO Adding peer to CTABLE that has registerred: 260207
2019-05-17 18:57:18,400 INFO static website requested: <Request at 0xb5f4a9cc method=GET uri=/ clientproto=HTTP/1.1>
^C2019-05-17 18:57:55,503 INFO Lost connection.  Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.

but on http://ip_hbmon:8080 ie empty

HBlink Monitoring ServerDMR local NetworkContinuous connections not allowed. Connections time out in 300 seconds

Call Log Window:

Connection closed (wasClean = false, code = 1006, reason = '')


config hbmonitor

REPORT_NAME     = 'DMR Local Network'  # Name of the monitored HBlink system
CONFIG_INC      = True                  # Include HBlink stats
BRIDGES_INC     = False                  # Include Bridge stats (confbrige.py)
HBLINK_IP       = '127.0.0.1'           # HBlink's IP Address
HBLINK_PORT     = 4321                  # HBlink's TCP reporting socket
FREQUENCY       = 10                    # Frequency to push updates to web clients
WEB_SERVER_PORT = 8080                  # Has to be above 1024 if you're not running as root
CLIENT_TIMEOUT  = 300                   # Clients are timed out after this many seconds, 0 to disable

# Files and stuff for loading alias files for mapping numbers to names
PATH            = './'                          # MUST END IN '/'
PEER_FILE       = 'peer_ids.json'                # Will auto-download from DMR-MARC
SUBSCRIBER_FILE = 'subscriber_ids.json'          # Will auto-download from DMR-MARC
TGID_FILE       = 'talkgroup_ids.json'           # User provided, should be in "integer TGID, TGID name" format
LOCAL_SUB_FILE  = 'local_subscriber_ids.json'    # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
LOCAL_PEER_FILE = 'local_peer_ids.json'          # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
FILE_RELOAD     = 7                             # Number of days before we reload DMR-MARC database files
PEER_URL        = 'https://www.radioid.net/static/rptrs.json'
SUBSCRIBER_URL  = 'https://www.radioid.net/static/users.json'

# Settings for log files
LOG_PATH        = '/var/log/hblink/'             # MUST END IN '/'
LOG_NAME        = 'webtables.log'


Corey Dean N3FE <n3fe@...>
 

Just curious...  Does anyone do any archive research before posting?

On Fri, May 17, 2019 at 1:10 PM <sp2ong@...> wrote:
Hi Heiko

I have run HBLink3 and I try useHBmonitor.

I have start

python web_tables.py
2019-05-17 18:41:45,392 INFO web_tables.py starting up
2019-05-17 18:41:45,392 INFO

Copyright (c) 2016, 2017, 2018, 2019
    The Regents of the K0USY Group. All rights reserved.

2019-05-17 18:41:45,392 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
2019-05-17 18:41:45,393 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
2019-05-17 18:41:45,625 INFO ID ALIAS MAPPER: peer_ids dictionary is available
2019-05-17 18:41:48,150 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available
2019-05-17 18:41:48,287 INFO CLIENT TIMEOUT: List does not exist, skipping. If this message persists, contact the developer
2019-05-17 18:41:48,287 INFO reportClient object for connecting to HBlink.py created at: <__main__.reportClientFactory instance at 0xb5f4e38c>
2019-05-17 18:41:48,288 INFO Initiating Connection to Server.
2019-05-17 18:41:48,292 INFO Connected.
2019-05-17 18:41:48,293 INFO Resetting reconnection delay
2019-05-17 18:42:01,929 INFO static website requested: <Request at 0xb5f43f0c method=GET uri=/ clientproto=HTTP/1.1>
2019-05-17 18:43:25,132 INFO Adding peer to CTABLE that has registerred: 260207
2019-05-17 18:57:18,400 INFO static website requested: <Request at 0xb5f4a9cc method=GET uri=/ clientproto=HTTP/1.1>
^C2019-05-17 18:57:55,503 INFO Lost connection.  Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.

but on http://ip_hbmon:8080 ie empty

HBlink Monitoring ServerDMR local NetworkContinuous connections not allowed. Connections time out in 300 seconds

Call Log Window:

Connection closed (wasClean = false, code = 1006, reason = '')


config hbmonitor

REPORT_NAME     = 'DMR Local Network'  # Name of the monitored HBlink system
CONFIG_INC      = True                  # Include HBlink stats
BRIDGES_INC     = False                  # Include Bridge stats (confbrige.py)
HBLINK_IP       = '127.0.0.1'           # HBlink's IP Address
HBLINK_PORT     = 4321                  # HBlink's TCP reporting socket
FREQUENCY       = 10                    # Frequency to push updates to web clients
WEB_SERVER_PORT = 8080                  # Has to be above 1024 if you're not running as root
CLIENT_TIMEOUT  = 300                   # Clients are timed out after this many seconds, 0 to disable

# Files and stuff for loading alias files for mapping numbers to names
PATH            = './'                          # MUST END IN '/'
PEER_FILE       = 'peer_ids.json'                # Will auto-download from DMR-MARC
SUBSCRIBER_FILE = 'subscriber_ids.json'          # Will auto-download from DMR-MARC
TGID_FILE       = 'talkgroup_ids.json'           # User provided, should be in "integer TGID, TGID name" format
LOCAL_SUB_FILE  = 'local_subscriber_ids.json'    # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
LOCAL_PEER_FILE = 'local_peer_ids.json'          # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
FILE_RELOAD     = 7                             # Number of days before we reload DMR-MARC database files
PEER_URL        = 'https://www.radioid.net/static/rptrs.json'
SUBSCRIBER_URL  = 'https://www.radioid.net/static/users.json'

# Settings for log files
LOG_PATH        = '/var/log/hblink/'             # MUST END IN '/'
LOG_NAME        = 'webtables.log'


SP2ONG Waldek
 

I searched the archives but didn't find the answer to my problems and that's why I wrote.
Perhaps I am not a master of archive search.
Okay, so I'm sorry about my post.

Just curious...  Does anyone do any archive research before posting?
 


Steve KC1AWV
 

Sometimes, I think we're being trolled...


On Fri, May 17, 2019, 1:46 PM Corey Dean N3FE <n3fe@...> wrote:
Just curious...  Does anyone do any archive research before posting?

On Fri, May 17, 2019 at 1:10 PM <sp2ong@...> wrote:
Hi Heiko

I have run HBLink3 and I try useHBmonitor.

I have start

python web_tables.py
2019-05-17 18:41:45,392 INFO web_tables.py starting up
2019-05-17 18:41:45,392 INFO

Copyright (c) 2016, 2017, 2018, 2019
    The Regents of the K0USY Group. All rights reserved.

2019-05-17 18:41:45,392 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
2019-05-17 18:41:45,393 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
2019-05-17 18:41:45,625 INFO ID ALIAS MAPPER: peer_ids dictionary is available
2019-05-17 18:41:48,150 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available
2019-05-17 18:41:48,287 INFO CLIENT TIMEOUT: List does not exist, skipping. If this message persists, contact the developer
2019-05-17 18:41:48,287 INFO reportClient object for connecting to HBlink.py created at: <__main__.reportClientFactory instance at 0xb5f4e38c>
2019-05-17 18:41:48,288 INFO Initiating Connection to Server.
2019-05-17 18:41:48,292 INFO Connected.
2019-05-17 18:41:48,293 INFO Resetting reconnection delay
2019-05-17 18:42:01,929 INFO static website requested: <Request at 0xb5f43f0c method=GET uri=/ clientproto=HTTP/1.1>
2019-05-17 18:43:25,132 INFO Adding peer to CTABLE that has registerred: 260207
2019-05-17 18:57:18,400 INFO static website requested: <Request at 0xb5f4a9cc method=GET uri=/ clientproto=HTTP/1.1>
^C2019-05-17 18:57:55,503 INFO Lost connection.  Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.

but on http://ip_hbmon:8080 ie empty

HBlink Monitoring ServerDMR local NetworkContinuous connections not allowed. Connections time out in 300 seconds

Call Log Window:

Connection closed (wasClean = false, code = 1006, reason = '')


config hbmonitor

REPORT_NAME     = 'DMR Local Network'  # Name of the monitored HBlink system
CONFIG_INC      = True                  # Include HBlink stats
BRIDGES_INC     = False                  # Include Bridge stats (confbrige.py)
HBLINK_IP       = '127.0.0.1'           # HBlink's IP Address
HBLINK_PORT     = 4321                  # HBlink's TCP reporting socket
FREQUENCY       = 10                    # Frequency to push updates to web clients
WEB_SERVER_PORT = 8080                  # Has to be above 1024 if you're not running as root
CLIENT_TIMEOUT  = 300                   # Clients are timed out after this many seconds, 0 to disable

# Files and stuff for loading alias files for mapping numbers to names
PATH            = './'                          # MUST END IN '/'
PEER_FILE       = 'peer_ids.json'                # Will auto-download from DMR-MARC
SUBSCRIBER_FILE = 'subscriber_ids.json'          # Will auto-download from DMR-MARC
TGID_FILE       = 'talkgroup_ids.json'           # User provided, should be in "integer TGID, TGID name" format
LOCAL_SUB_FILE  = 'local_subscriber_ids.json'    # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
LOCAL_PEER_FILE = 'local_peer_ids.json'          # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
FILE_RELOAD     = 7                             # Number of days before we reload DMR-MARC database files
PEER_URL        = 'https://www.radioid.net/static/rptrs.json'
SUBSCRIBER_URL  = 'https://www.radioid.net/static/users.json'

# Settings for log files
LOG_PATH        = '/var/log/hblink/'             # MUST END IN '/'
LOG_NAME        = 'webtables.log'


SP2ONG Waldek
 

I solved the problem, and I'm sorry again that I wrote a post about it.


Corey Dean N3FE <n3fe@...>
 

Yeah.  I thought it would be all over the place that we don’t talk about hbmonitor here...

On Fri, May 17, 2019 at 2:07 PM Steve KC1AWV <smiller@...> wrote:
Sometimes, I think we're being trolled...

On Fri, May 17, 2019, 1:46 PM Corey Dean N3FE <n3fe@...> wrote:
Just curious...  Does anyone do any archive research before posting?

On Fri, May 17, 2019 at 1:10 PM <sp2ong@...> wrote:
Hi Heiko

I have run HBLink3 and I try useHBmonitor.

I have start

python web_tables.py
2019-05-17 18:41:45,392 INFO web_tables.py starting up
2019-05-17 18:41:45,392 INFO

Copyright (c) 2016, 2017, 2018, 2019
    The Regents of the K0USY Group. All rights reserved.

2019-05-17 18:41:45,392 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
2019-05-17 18:41:45,393 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
2019-05-17 18:41:45,625 INFO ID ALIAS MAPPER: peer_ids dictionary is available
2019-05-17 18:41:48,150 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available
2019-05-17 18:41:48,287 INFO CLIENT TIMEOUT: List does not exist, skipping. If this message persists, contact the developer
2019-05-17 18:41:48,287 INFO reportClient object for connecting to HBlink.py created at: <__main__.reportClientFactory instance at 0xb5f4e38c>
2019-05-17 18:41:48,288 INFO Initiating Connection to Server.
2019-05-17 18:41:48,292 INFO Connected.
2019-05-17 18:41:48,293 INFO Resetting reconnection delay
2019-05-17 18:42:01,929 INFO static website requested: <Request at 0xb5f43f0c method=GET uri=/ clientproto=HTTP/1.1>
2019-05-17 18:43:25,132 INFO Adding peer to CTABLE that has registerred: 260207
2019-05-17 18:57:18,400 INFO static website requested: <Request at 0xb5f4a9cc method=GET uri=/ clientproto=HTTP/1.1>
^C2019-05-17 18:57:55,503 INFO Lost connection.  Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.

but on http://ip_hbmon:8080 ie empty

HBlink Monitoring ServerDMR local NetworkContinuous connections not allowed. Connections time out in 300 seconds

Call Log Window:

Connection closed (wasClean = false, code = 1006, reason = '')


config hbmonitor

REPORT_NAME     = 'DMR Local Network'  # Name of the monitored HBlink system
CONFIG_INC      = True                  # Include HBlink stats
BRIDGES_INC     = False                  # Include Bridge stats (confbrige.py)
HBLINK_IP       = '127.0.0.1'           # HBlink's IP Address
HBLINK_PORT     = 4321                  # HBlink's TCP reporting socket
FREQUENCY       = 10                    # Frequency to push updates to web clients
WEB_SERVER_PORT = 8080                  # Has to be above 1024 if you're not running as root
CLIENT_TIMEOUT  = 300                   # Clients are timed out after this many seconds, 0 to disable

# Files and stuff for loading alias files for mapping numbers to names
PATH            = './'                          # MUST END IN '/'
PEER_FILE       = 'peer_ids.json'                # Will auto-download from DMR-MARC
SUBSCRIBER_FILE = 'subscriber_ids.json'          # Will auto-download from DMR-MARC
TGID_FILE       = 'talkgroup_ids.json'           # User provided, should be in "integer TGID, TGID name" format
LOCAL_SUB_FILE  = 'local_subscriber_ids.json'    # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
LOCAL_PEER_FILE = 'local_peer_ids.json'          # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
FILE_RELOAD     = 7                             # Number of days before we reload DMR-MARC database files
PEER_URL        = 'https://www.radioid.net/static/rptrs.json'
SUBSCRIBER_URL  = 'https://www.radioid.net/static/users.json'

# Settings for log files
LOG_PATH        = '/var/log/hblink/'             # MUST END IN '/'
LOG_NAME        = 'webtables.log'


Peter M0NWI
 

Cory,

What's the first rule of Fight Club 🤣😭😪😂😅

Sent from Outlook
From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of Corey Dean N3FE <n3fe@...>
Sent: 17 May 2019 20:02:18
To: main@dvswitch.groups.io
Subject: Re: [DVSwitch] HBLINK HBMONITOR
 
Yeah.  I thought it would be all over the place that we don’t talk about hbmonitor here...

On Fri, May 17, 2019 at 2:07 PM Steve KC1AWV <smiller@...> wrote:
Sometimes, I think we're being trolled...

On Fri, May 17, 2019, 1:46 PM Corey Dean N3FE <n3fe@...> wrote:
Just curious...  Does anyone do any archive research before posting?

On Fri, May 17, 2019 at 1:10 PM <sp2ong@...> wrote:
Hi Heiko

I have run HBLink3 and I try useHBmonitor.

I have start

python web_tables.py
2019-05-17 18:41:45,392 INFO web_tables.py starting up
2019-05-17 18:41:45,392 INFO

Copyright (c) 2016, 2017, 2018, 2019
    The Regents of the K0USY Group. All rights reserved.

2019-05-17 18:41:45,392 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
2019-05-17 18:41:45,393 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
2019-05-17 18:41:45,625 INFO ID ALIAS MAPPER: peer_ids dictionary is available
2019-05-17 18:41:48,150 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available
2019-05-17 18:41:48,287 INFO CLIENT TIMEOUT: List does not exist, skipping. If this message persists, contact the developer
2019-05-17 18:41:48,287 INFO reportClient object for connecting to HBlink.py created at: <__main__.reportClientFactory instance at 0xb5f4e38c>
2019-05-17 18:41:48,288 INFO Initiating Connection to Server.
2019-05-17 18:41:48,292 INFO Connected.
2019-05-17 18:41:48,293 INFO Resetting reconnection delay
2019-05-17 18:42:01,929 INFO static website requested: <Request at 0xb5f43f0c method=GET uri=/ clientproto=HTTP/1.1>
2019-05-17 18:43:25,132 INFO Adding peer to CTABLE that has registerred: 260207
2019-05-17 18:57:18,400 INFO static website requested: <Request at 0xb5f4a9cc method=GET uri=/ clientproto=HTTP/1.1>
^C2019-05-17 18:57:55,503 INFO Lost connection.  Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.

but on http://ip_hbmon:8080 ie empty

HBlink Monitoring Server DMR local Network Continuous connections not allowed. Connections time out in 300 seconds

Call Log Window:

Connection closed (wasClean = false, code = 1006, reason = '')


config hbmonitor

REPORT_NAME     = 'DMR Local Network'  # Name of the monitored HBlink system
CONFIG_INC      = True                  # Include HBlink stats
BRIDGES_INC     = False                  # Include Bridge stats (confbrige.py)
HBLINK_IP       = '127.0.0.1'           # HBlink's IP Address
HBLINK_PORT     = 4321                  # HBlink's TCP reporting socket
FREQUENCY       = 10                    # Frequency to push updates to web clients
WEB_SERVER_PORT = 8080                  # Has to be above 1024 if you're not running as root
CLIENT_TIMEOUT  = 300                   # Clients are timed out after this many seconds, 0 to disable

# Files and stuff for loading alias files for mapping numbers to names
PATH            = './'                          # MUST END IN '/'
PEER_FILE       = 'peer_ids.json'                # Will auto-download from DMR-MARC
SUBSCRIBER_FILE = 'subscriber_ids.json'          # Will auto-download from DMR-MARC
TGID_FILE       = 'talkgroup_ids.json'           # User provided, should be in "integer TGID, TGID name" format
LOCAL_SUB_FILE  = 'local_subscriber_ids.json'    # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
LOCAL_PEER_FILE = 'local_peer_ids.json'          # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
FILE_RELOAD     = 7                             # Number of days before we reload DMR-MARC database files
PEER_URL        = 'https://www.radioid.net/static/rptrs.json'
SUBSCRIBER_URL  = 'https://www.radioid.net/static/users.json'

# Settings for log files
LOG_PATH        = '/var/log/hblink/'             # MUST END IN '/'
LOG_NAME        = 'webtables.log'


Steve KC1AWV
 

Ask everyone about it? 😁


On Fri, May 17, 2019, 4:28 PM Peter M0NWI <peter-martin@...> wrote:
Cory,

What's the first rule of Fight Club 🤣😭😪😂😅

Sent from Outlook
From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of Corey Dean N3FE <n3fe@...>
Sent: 17 May 2019 20:02:18
To: main@dvswitch.groups.io
Subject: Re: [DVSwitch] HBLINK HBMONITOR
 
Yeah.  I thought it would be all over the place that we don’t talk about hbmonitor here...

On Fri, May 17, 2019 at 2:07 PM Steve KC1AWV <smiller@...> wrote:
Sometimes, I think we're being trolled...

On Fri, May 17, 2019, 1:46 PM Corey Dean N3FE <n3fe@...> wrote:
Just curious...  Does anyone do any archive research before posting?

On Fri, May 17, 2019 at 1:10 PM <sp2ong@...> wrote:
Hi Heiko

I have run HBLink3 and I try useHBmonitor.

I have start

python web_tables.py
2019-05-17 18:41:45,392 INFO web_tables.py starting up
2019-05-17 18:41:45,392 INFO

Copyright (c) 2016, 2017, 2018, 2019
    The Regents of the K0USY Group. All rights reserved.

2019-05-17 18:41:45,392 INFO ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
2019-05-17 18:41:45,393 INFO ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
2019-05-17 18:41:45,625 INFO ID ALIAS MAPPER: peer_ids dictionary is available
2019-05-17 18:41:48,150 INFO ID ALIAS MAPPER: subscriber_ids dictionary is available
2019-05-17 18:41:48,287 INFO CLIENT TIMEOUT: List does not exist, skipping. If this message persists, contact the developer
2019-05-17 18:41:48,287 INFO reportClient object for connecting to HBlink.py created at: <__main__.reportClientFactory instance at 0xb5f4e38c>
2019-05-17 18:41:48,288 INFO Initiating Connection to Server.
2019-05-17 18:41:48,292 INFO Connected.
2019-05-17 18:41:48,293 INFO Resetting reconnection delay
2019-05-17 18:42:01,929 INFO static website requested: <Request at 0xb5f43f0c method=GET uri=/ clientproto=HTTP/1.1>
2019-05-17 18:43:25,132 INFO Adding peer to CTABLE that has registerred: 260207
2019-05-17 18:57:18,400 INFO static website requested: <Request at 0xb5f4a9cc method=GET uri=/ clientproto=HTTP/1.1>
^C2019-05-17 18:57:55,503 INFO Lost connection.  Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.

but on http://ip_hbmon:8080 ie empty

HBlink Monitoring Server DMR local Network Continuous connections not allowed. Connections time out in 300 seconds

Call Log Window:

Connection closed (wasClean = false, code = 1006, reason = '')


config hbmonitor

REPORT_NAME     = 'DMR Local Network'  # Name of the monitored HBlink system
CONFIG_INC      = True                  # Include HBlink stats
BRIDGES_INC     = False                  # Include Bridge stats (confbrige.py)
HBLINK_IP       = '127.0.0.1'           # HBlink's IP Address
HBLINK_PORT     = 4321                  # HBlink's TCP reporting socket
FREQUENCY       = 10                    # Frequency to push updates to web clients
WEB_SERVER_PORT = 8080                  # Has to be above 1024 if you're not running as root
CLIENT_TIMEOUT  = 300                   # Clients are timed out after this many seconds, 0 to disable

# Files and stuff for loading alias files for mapping numbers to names
PATH            = './'                          # MUST END IN '/'
PEER_FILE       = 'peer_ids.json'                # Will auto-download from DMR-MARC
SUBSCRIBER_FILE = 'subscriber_ids.json'          # Will auto-download from DMR-MARC
TGID_FILE       = 'talkgroup_ids.json'           # User provided, should be in "integer TGID, TGID name" format
LOCAL_SUB_FILE  = 'local_subscriber_ids.json'    # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
LOCAL_PEER_FILE = 'local_peer_ids.json'          # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
FILE_RELOAD     = 7                             # Number of days before we reload DMR-MARC database files
PEER_URL        = 'https://www.radioid.net/static/rptrs.json'
SUBSCRIBER_URL  = 'https://www.radioid.net/static/users.json'

# Settings for log files
LOG_PATH        = '/var/log/hblink/'             # MUST END IN '/'
LOG_NAME        = 'webtables.log'


Curt Hart
 

Sorry guys maybe I missed something in the past, but WHY is there such an unwillingness to help others with HBMonitor. I understand it is "Unsupported work" but wtf??
Might be a better idea to remove it from github. Why would you make it avaiiable if you don't want to offer help?

Seems like the spirit of the ham community is lost here.

73,
Curtis


Chris WB4ULK
 

I think it boilsndown to:
"Here is something I played around with, if you want to expand it, have at it. I don't have time to mess with it."

If he pulled it down, others couldn't expand on it or mess with it.

Chris


Chris WB4ULK
 

One thing I can say about this group.
They may give you hell for not looking up something before asking, but at least they don't steal other people's ideas and call them their own.
Along with violating GPL by making modifications and not releasing the source. :-)

Chris


Steve KC1AWV
 

I think Chris nailed it on the head. I'd expand on it to say that it's there to play with, as well as modify. If you can take it and make it better, do so. And please show your work, release the code, and apply credit where it is due.

I'm learning python through this, and I can definitely apply it to my day job. I don't want to see the code disappear, and asking for support on it is one way to make it all go away.

On Fri, May 17, 2019, 8:21 PM Chris WB4ULK via Groups.Io <chood73=yahoo.com@groups.io> wrote:
One thing I can say about this group.
They may give you hell for not looking up something before asking, but at least they don't steal other people's ideas and call them their own.
Along with violating GPL by making modifications and not releasing the source. :-)

Chris


Cort N0MJS <n0mjs@...>
 

Hey all – the code for HBMonitor is not great. I use GitHub to sync it between my own computers. I am not a programmer; I program because I need to create a tool for the job. HBMonitor is a tool, even if a very crude one and as such is posted, but not advertised. The statement of unsupported work is just that, unsupported. I am not “unwilling,” but I have learned that with HBlink and DMRlink being my priorities, I have to let something go. They are the more important work and I don’t have time to make HBmonitor good, and advance them too. HBmonitor is fragile, but as it is, it does the job I need it to do. Whether it can do the job you need it to do is likely questionable. Feel free to work the code and pilot a new solution. 

The spirit of ham radio, the way I operate, is to be on the lookout for tools and innovation and to create when necessary. I make tools and I take tools, but when I take tools from others the responsibility for implementing them becomes mine alone because I am using that tool for a specific reason, in a specific environment.  Ham radio is a community that I contribute to as I have time and ideas, it is not my job. By all means my code is available and if there is a way to improve it, therein lies the real spirit of ham radio – people looking out for others and making changes and additions and upgrades as fits their own need and ability. 

0x49 DE N0MJS

On May 17, 2019, at 6:58 PM, Curt Hart via Groups.Io <curtg49@...> wrote:

Sorry guys maybe I missed something in the past, but WHY is there such an unwillingness to help others with HBMonitor. I understand it is "Unsupported work" but wtf??
Might be a better idea to remove it from github. Why would you make it avaiiable if you don't want to offer help?

Seems like the spirit of the ham community is lost here.

73,
Curtis

--
Cort Buffington
H: +1-785-813-1501
M: +1-785-865-7206






Heiko DL1BZ
 

I need to say - with my environments (raspian@Pi and debian 64bit on a server) the hbmonitor runs.
For help others here's my running config.py from hbmonitor:

REPORT_NAME     = 'Oberlausitz-Link DMR-OL'
CONFIG_INC      = True                  # Include HBlink stats
BRIDGES_INC     = True                  # Include Bridge stats (confbrige.py)
HBLINK_IP      = '127.0.0.1'            # HBlink's IP Address
HBLINK_PORT    = 4321                   # HBlink's TCP reporting socket, check config from hblink3 for correct port setup
FREQUENCY       = 10                    # Frequency to push updates to web clients
WEB_SERVER_PORT = 8088                  # Has to be above 1024 if you're not running as root
CLIENT_TIMEOUT  = 0                     # Clients are timed out after this many seconds, 0 to disable

# Files and stuff for loading alias files for mapping numbers to names
PATH            = './'                          # MUST END IN '/'
PEER_FILE       = 'peer_ids.json'               # Will auto-download from DMR-MARC
SUBSCRIBER_FILE = 'subscriber_ids.json'         # Will auto-download from DMR-MARC
TGID_FILE       = ''                            # User provided, should be in "integer TGID, TGID name" format
LOCAL_SUB_FILE  = ''                            # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
LOCAL_PEER_FILE = ''                            # User provided (optional, leave '' if you don't use it), follow the format of DMR-MARC
FILE_RELOAD     = 1                             # Number of days before we reload DMR-MARC database files
PEER_URL        = 'https://www.radioid.net/static/rptrs.json'
SUBSCRIBER_URL  = 'https://www.radioid.net/static/users.json'

# Settings for log files
LOG_PATH        = '/var/log/dv/'                # MUST END IN '/'
LOG_NAME        = 'webtablesOL.log'

For a correct install I do the following as root:
$ mkdir /srv --> only if not exists
$ cd /srv
$ git clone https://github.com/n0mjs710/HBmonitor.git hbmonitor
$ cd hbmonitor
$ pip2 install -r requirements.txt --upgrade

Edit the config.py as above.
Run the hbmonitor:

$ python2 ./web_tables.py

With correct environments (python2 and the needed modules from the requirements.txt in hbmonitors folder) it should be run. I do this more than one time on different systems - in all cases it has been worked.
But I need to say the following: Two or three weeks ago there was possibly a problem with the databases from radioid.net . As result my hbmonitor don't start. I checked some variants with the result - if I don't use the entries from US, the hbmonitor came back correctly. Now Cort has changed the json to the static thing - it works, checked today. Folks, it is possible if such database has problematic entries they cannot parsed correctly, a program like hbmonitor will be have problems and don't start as result. That's possible. My solution was in this case to change this in config.py:

SUBSCRIBER_URL  = 'https://www.radioid.net/api/dmr/user/?country=Germany&country=Canada&country=Austria&country=Switzerland'

That was my solution the hbmonitor bringing back for running. It was basicly not a problem with hbmonitor itself. For other linux distributions as debian I cannot say something, I only work with this - and there all worked fine.

73 Heiko, DL1BZ