Documentation ¶
Index ¶
Constants ¶
View Source
const BaseUrl = "https://mongol.brono.com/mongol/api.php"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an api.Vehicle implementation for Zero Motorcycles
type ErrorAnswer ¶
type ErrorAnswer struct {
Error string
}
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the vehicle api
func NewProvider ¶
NewProvider creates a vehicle api provider
func (*Provider) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
type State ¶
type State struct { Unitnumber string //"123456", Name string //"538ZFAZ76LCK00000", Unittype string //"5", Unitmodel string //"6", Mileage float64 `json:",string"` //"4382.46", Software_version string //"190430", Logic_state string //"2" Reason string //"2", Response string //"0", Driver string //"0", Latitude float64 // 51.5000, Longitude float64 // 4.5000, Altitude string //:"0", Gps_valid string //:"0", Gps_connected string //:"1", Satellites string //"0", Velocity string //"1", Heading string //"344", Emergency string //:"0", Shock string //:"", Ignition string //:"0", Door string //:"0", Hood string //:"0", Volume string //:"0", Water_temp string //:"", Oil_pressure string //:"0", Main_voltage float64 //:13.08, Analog1 float64 //":"0.09", Analog2 float64 //":"0.09", Analog3 float64 //":"0.09", Siren string //:"0", Lock string //:"0", Int_lights string //:"0", DatetimeUtc string `json:"datetime_utc"` //:"20191030162309", DatetimeActual string `json:"datetime_actual"` //:"20191102113548" Address string //:"YourCity, YourStreet", Perimeter string //:"", Color int //:2, Soc int //:91, Tipover int //:0, Charging int //:1, Chargecomplete int // 0, Pluggedin int //:1, Chargingtimeleft int //:0 Storage int Battery int }
Click to show internal directories.
Click to hide internal directories.