0ff98f1f1f432095fea7b6be9116db99bb71e81d
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 1m13s
- Implement unit tests for timestamp generation to ensure it returns numeric and increasing values. - Add tests for URL transformation based on generation type. - Create tests for VIN validation, including valid, invalid check digits, and incorrect lengths. - Introduce tests for vehicle charging functionality, covering scenarios for electric vehicles, non-electric vehicles, and missing remote features. - Log errors for JSON parsing issues in the client.
MySubaru!GO
Is a simple API client to interact with My Subaru service (https://www.mysubaru.com/) via HTTP, written in Go
News
- v0.0.0-dev First public release on April 11, 2023
Features
- Simple and chainable methods for settings and request
Installation
# Go Modules
go get git.savin.nyc/alex/mysubaru
Usage
The following samples will assist you to become as comfortable as possible with mysubaru library.
// Import hassky into your code and refer it as `mysubaru`.
import "git.savin.nyc/alex/mysubaru"
Create a new MySubaru connection and get a car by VIN
// Create a MySubaru Client
mysubaru, _ := New()
outback := mysubaru.GetVehicleByVIN("VIN-CODE-HERE")
Start/Stop Lights request
outback.LightsStart()
time.Sleep(30 * time.Second)
outback.LightsStop()
Description
Languages
Go
100%