eetv

package module
v0.0.0-...-30e1ae0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 4 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

License

EETV Client

Client for EETV Boxes API written in Go

Install
go get github.com/olivercullimore/eetv-client
Example

main.go

package main

import (
	"fmt"
	"log"

	"github.com/olivercullimore/eetv-client"
)

func main() {
	var eetvBaseURL = "" // Enter http://EETVBOXIP/ filling in the EETVBOXIP with the IP of your EETV Box
	var eetvAppKey  = "" // leave this blank usually

	// Init EETV API with config
	eetvAPI = eetv.New(eetvBaseURL, eetvAppKey)

	// Get EETV Box Info
	eetvInfo, err := eetvAPI.GetInfo()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("Info: %+v", eetvInfo)

	recordings, err := eetvAPI.GetRecordings("", "", "")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("Recordings: %+v", recordings)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(baseURL string, appKey string) eetvapi

New function

Types

type DeviceInfo

type DeviceInfo struct {
	System     DeviceInfoSystem     `json:"system"`
	Catchup    DeviceInfoCatchup    `json:"catchup"`
	FVP        DeviceInfoFVP        `json:"fvp"`
	PVR        DeviceInfoPVR        `json:"pvr"`
	Live       DeviceInfoLive       `json:"live"`
	EPG        DeviceInfoEPG        `json:"epg"`
	AMS        DeviceInfoAMS        `json:"ams"`
	UserRights DeviceInfoUserRights `json:"userrights"`
	OOH        DeviceInfoOOH        `json:"ooh"`
}

DeviceInfo struct

type DeviceInfoAMS

type DeviceInfoAMS struct {
	Enabled bool `json:"enabled"`
}

DeviceInfoAMS struct

type DeviceInfoCatchup

type DeviceInfoCatchup struct {
	Enabled   bool `json:"enabled"`
	Available bool `json:"available"`
}

DeviceInfoCatchup struct

type DeviceInfoEPG

type DeviceInfoEPG struct {
	End          int64  `json:"end"`
	Timer        bool   `json:"timer"`
	WarningWords string `json:"warningWords"`
	Begin        int64  `json:"begin"`
}

DeviceInfoEPG struct

type DeviceInfoFVP

type DeviceInfoFVP struct {
	Enabled   bool `json:"enabled"`
	Available bool `json:"available"`
}

DeviceInfoFVP struct

type DeviceInfoLive

type DeviceInfoLive struct {
	Enabled   bool `json:"enabled"`
	Available bool `json:"available"`
}

DeviceInfoLive struct

type DeviceInfoOOH

type DeviceInfoOOH struct {
	Timers        DeviceInfoOOHTimers        `json:"timers"`
	Channels      DeviceInfoOOHChannels      `json:"channels"`
	Register      DeviceInfoOOHRegister      `json:"register"`
	PreRegister   DeviceInfoOOHPreRegister   `json:"preregister"`
	CMD           DeviceInfoOOHCMD           `json:"cmd"`
	Configuration DeviceInfoOOHConfiguration `json:"configuration"`
	ApplicationID string                     `json:"applicationId"`
	SubscriberID  string                     `json:"subscriberId"`
}

DeviceInfoOOH struct

type DeviceInfoOOHCMD

type DeviceInfoOOHCMD struct {
	Enabled bool `json:"enabled"`
}

DeviceInfoOOHCMD struct

type DeviceInfoOOHChannels

type DeviceInfoOOHChannels struct {
	Enabled bool `json:"enabled"`
}

DeviceInfoOOHChannels struct

type DeviceInfoOOHConfiguration

type DeviceInfoOOHConfiguration struct {
	Hosts                DeviceInfoOOHConfigurationHosts `json:"hosts"`
	MaxPairedDevices     int64                           `json:"maxPairedDevices"`
	ExpiracyDelay        int64                           `json:"expiracyDelay"`
	StblistPollingDelay  string                          `json:"stblistpollingdelay"`
	CommandsPollingDelay string                          `json:"commandspollingdelay"`
	NpvrPollingDelay     string                          `json:"npvrpollingdelay"`
}

DeviceInfoOOHConfiguration struct

type DeviceInfoOOHConfigurationHosts

type DeviceInfoOOHConfigurationHosts struct {
	PVR           string `json:"pvr"`
	EPG           string `json:"epg"`
	CMD           string `json:"cmd"`
	CRM           string `json:"crm"`
	AuthDevice    string `json:"authdevice"`
	UpgradeDevice string `json:"upgradedevice"`
}

DeviceInfoOOHConfigurationHosts struct

type DeviceInfoOOHPreRegister

type DeviceInfoOOHPreRegister struct {
	Enabled bool `json:"enabled"`
}

DeviceInfoOOHPreRegister struct

type DeviceInfoOOHRegister

type DeviceInfoOOHRegister struct {
	Enabled bool `json:"enabled"`
}

DeviceInfoOOHRegister struct

type DeviceInfoOOHTimers

type DeviceInfoOOHTimers struct {
	Enabled bool `json:"enabled"`
}

DeviceInfoOOHTimers struct

type DeviceInfoPVR

type DeviceInfoPVR struct {
	Enabled   bool                `json:"enabled"`
	Status    DeviceInfoPVRStatus `json:"status"`
	Available bool                `json:"available"`
}

DeviceInfoPVR struct

type DeviceInfoPVRStatus

type DeviceInfoPVRStatus struct {
	Catchup      DeviceInfoPVRStatusCatchup `json:"catchup"`
	DownloadToGo bool                       `json:"downloadToGo"`
	Disk         DeviceInfoPVRStatusDisk    `json:"disk"`
}

DeviceInfoPVRStatus struct

type DeviceInfoPVRStatusCatchup

type DeviceInfoPVRStatusCatchup struct {
	IsRemovedBeforeExpiration bool  `json:"isRemovedBeforeExpiration"`
	RealValidity              int64 `json:"realValidity"`
	DisplayedValidity         int64 `json:"displayedValidity"`
	AppliedValidity           int64 `json:"appliedValidity"`
	LastChanceThreshold       int64 `json:"lastChanceThreshold"`
}

DeviceInfoPVRStatusCatchup struct

type DeviceInfoPVRStatusDisk

type DeviceInfoPVRStatusDisk struct {
	Percent      float64 `json:"percent"`
	UsedSpace    int64   `json:"usedSpace"`
	TotalSpace   int64   `json:"totalSpace"`
	WarningLevel int64   `json:"warningLevel"`
}

DeviceInfoPVRStatusDisk struct

type DeviceInfoSystem

type DeviceInfoSystem struct {
	Time         int64  `json:"time"`
	Tuners       int64  `json:"tuners"`
	FriendlyName string `json:"friendlyName"`
}

DeviceInfoSystem struct

type DeviceInfoUserRights

type DeviceInfoUserRights struct {
	Available []string `json:"available"`
	Expired   []string `json:"expired"`
}

DeviceInfoUserRights struct

type LiveChannel

type LiveChannel struct {
	ID     string  `json:"id"`
	Name   string  `json:"name"`
	Zap    int64   `json:"zap"`
	Hidden bool    `json:"hidden"`
	Rec    bool    `json:"rec"`
	Rank   float64 `json:"rank"`
	IsDVB  bool    `json:"isDVB"`
}

LiveChannel struct

type Recording

type Recording struct {
	ID         string         `json:"id"`
	Name       string         `json:"name"`
	Size       int64          `json:"size"`
	URL        string         `json:"url"`
	StartTime  int64          `json:"startTime"`
	Duration   int64          `json:"duration"`
	EndTime    int64          `json:"endTime"`
	State      string         `json:"state"`
	Event      RecordingEvent `json:"event"`
	Repeat     string         `json:"repeat"`
	IsHD       bool           `json:"isHD"`
	Prio       int64          `json:"prio"`
	IsCatchup  bool           `json:"isCatchup"`
	DeviceName string         `json:"deviceName"`
	NetworkID  string         `json:"networkId"`
	GroupID    string         `json:"groupId"`
	IsDeepLink bool           `json:"isDeepLink"`
}

Recording struct

type RecordingEvent

type RecordingEvent struct {
	ID                  int64                  `json:"id"`
	Name                string                 `json:"name"`
	Text                string                 `json:"text"`
	StartTime           int64                  `json:"startTime"`
	Duration            int64                  `json:"duration"`
	EndTime             int64                  `json:"endTime"`
	Description         string                 `json:"description"`
	Category            string                 `json:"category"`
	ParentalRating      string                 `json:"parentalRating"`
	ProgramCRID         string                 `json:"programCRID"`
	RecommendationCRID  string                 `json:"recommendationCRID"`
	Audio               string                 `json:"audio"`
	Video               string                 `json:"video"`
	Rank                int64                  `json:"rank"`
	Icon                string                 `json:"icon"`
	ChannelID           string                 `json:"channelId"`
	ChannelName         string                 `json:"channelName"`
	ProgramName         string                 `json:"programName"`
	SerieID             string                 `json:"serieId"`
	OriginalEvent       RecordingOriginalEvent `json:"originalEvent"`
	EpisodeInfo         string                 `json:"episodeInfo"`
	Year                int64                  `json:"year"`
	CategoryID          string                 `json:"categoryID"`
	EpisodeNum          string                 `json:"episodeNum"`
	UseCategoryForImage bool                   `json:"useCategoryForImage"`
	SeasonDescription   string                 `json:"seasonDescription"`
	ChannelZap          int64                  `json:"channelZap"`
	SeriesGroupURL      string                 `json:"seriesGroupUrl"`
	Updating            bool                   `json:"updating"`
}

RecordingEvent struct

type RecordingOriginalEvent

type RecordingOriginalEvent struct {
	ID                  int64  `json:"id"`
	Name                string `json:"name"`
	Text                string `json:"text"`
	Image               string `json:"image"`
	StartTime           int64  `json:"startTime"`
	Duration            int64  `json:"duration"`
	EndTime             int64  `json:"endTime"`
	Description         string `json:"description"`
	Category            string `json:"category"`
	ParentalRating      string `json:"parentalRating"`
	ProgramCRID         string `json:"programCRID"`
	RecommendationCRID  string `json:"recommendationCRID"`
	Audio               string `json:"audio"`
	Video               string `json:"video"`
	Rank                int64  `json:"rank"`
	Icon                string `json:"icon"`
	ChannelID           string `json:"channelId"`
	ChannelName         string `json:"channelName"`
	ProgramName         string `json:"programName"`
	SerieID             string `json:"serieId"`
	EpisodeInfo         string `json:"episodeInfo"`
	Year                int64  `json:"year"`
	CategoryID          string `json:"categoryID"`
	EpisodeNum          string `json:"episodeNum"`
	UseCategoryForImage bool   `json:"useCategoryForImage"`
	SeasonDescription   string `json:"seasonDescription"`
	ChannelZap          int64  `json:"channelZap"`
	SeriesGroupURL      string `json:"seriesGroupUrl"`
	Updating            bool   `json:"updating"`
	ImageType           string `json:"imageType"`
}

RecordingOriginalEvent struct

Jump to

Keyboard shortcuts

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