Alex Savin 0ff98f1f1f
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 1m13s
Add tests for timestamp, URL generation, VIN validation, and vehicle charging functionality
- 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.
2025-07-02 12:07:03 +03:00
2025-06-06 17:29:31 -04:00
2025-05-20 15:54:30 -04:00
2025-07-02 12:06:23 +03:00
2025-07-02 12:06:23 +03:00
2025-07-02 12:06:23 +03:00
2025-07-02 12:06:23 +03:00
2025-05-20 16:02:27 -04:00
2025-07-02 12:06:23 +03:00

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
No description provided
Readme 2.1 MiB
Languages
Go 100%