Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hairyhenderson/hitron_coda
A Go client for the Hitron CODA-4680 Cable Modem/Router (and possibly others!)
https://github.com/hairyhenderson/hitron_coda
cable-modem golang golang-package hacktoberfest hitron
Last synced: 6 days ago
JSON representation
A Go client for the Hitron CODA-4680 Cable Modem/Router (and possibly others!)
- Host: GitHub
- URL: https://github.com/hairyhenderson/hitron_coda
- Owner: hairyhenderson
- License: mit
- Created: 2021-01-09T15:49:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T19:14:59.000Z (21 days ago)
- Last Synced: 2024-10-23T20:41:37.461Z (15 days ago)
- Topics: cable-modem, golang, golang-package, hacktoberfest, hitron
- Language: Go
- Homepage:
- Size: 149 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![Build](https://github.com/hairyhenderson/hitron_coda/workflows/Build/badge.svg)
# Hitron CODA-4x8x Client
A Go client for the [Hitron CODA-4x8x](http://hitron-americas.com/products/service-providers/coda-4680-cable-modem-router/) DOCSIS 3.1 cable modem/router series.
This is tested on a Hitron CODA-4680 with firmware `7.1.1.2.2b9`, untested on
other models and releases.The goal is to be able to perform the same actions through this client that are
available in the web UI that ships with the device.## Status
This project is in active development, and not all APIs are supported yet.
The code is generated based on [`apilist.yaml`](./apilist.yaml), by running
`go generate`.## Usage
```go
host := "192.168.0.1"
username := "cusadmin"
password := "mypassword"// Instantiate a new *CableModem
cm, _ := New(host, username, password)ctx := context.Background()
// Now login
_ = cm.Login(ctx)// Now that we're logged in we can call APIs
info, _ := cm.RouterSysInfo(ctx)fmt.Printf("Private LAN IP: %s\n", info.PrivLanIP)
// Output: Private LAN IP: 192.168.0.1
```## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2020-2024 Dave Henderson