dmrmonitor

package module
v0.0.0-...-a0e250a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 4 Imported by: 0

README

dmrmonitor GoDoc Build Status

Pure go implementation of access and process the dmr website.

Installation

go get -u github.com/wilhelmstoll/dmrmonitor

Example of usage

package main

import (
	"fmt"

	"github.com/wilhelmstoll/dmrmonitor"
)

func main() {
	resp := dmrmonitor.Get()

	fmt.Println(resp.ActiveDmrEntries)
	fmt.Println(resp.FinishedDmrEntries)
}

Reference

https://godoc.org/github.com/wilhelmstoll/dmrmonitor

Documentation

Index

Constants

View Source
const IpscDmrURL = "http://89.185.97.34/ipsc/_monitor.html"

IpscDmrURL defines the dmr monitor url.

Variables

This section is empty.

Functions

This section is empty.

Types

type DmrEntry

type DmrEntry struct {
	Nr       string
	Hw       string
	Time     string
	Sec      string
	Rptr     string
	Call     string
	ID       string
	Callsign string
	Alias    string
	Ts       string
	Tg       string
	Ber      string
	Rssi     string
	Floor    string
}

DmrEntry represents a dmr log entry.

type DmrMonitor

type DmrMonitor struct {
	ActiveDmrEntries   []DmrEntry
	FinishedDmrEntries []DmrEntry
}

DmrMonitor represents the content of the dmr website.

func Get

func Get() DmrMonitor

Get calls the dmr website and prepares the data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL