Skip to content

This adapter allows you to manage your fuel consumption via spritmonitor.de.

License

Notifications You must be signed in to change notification settings

ice987987/ioBroker.spritmonitor

Repository files navigation

Logo

ioBroker.spritmonitor

NPM version Downloads Number of Installations Current version in stable repository

NPM

Test and Release

Donate

spritmonitor adapter for ioBroker

This adapter allows you to manage your fuel consumption via spritmonitor.de.

Disclaimer

All product and company names or logos are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them or any associated subsidiaries! This personal project is maintained in spare time and has no business goal. Spritmonitor is a trademark of Fisch und Fischl GmbH, D-94136 Thyrnau.

Installation requirements

Controls

  • .ACTIONS.UPDATE: Update values
  • .ACTIONS.ADD.ADD: Add a new fueling
  • .ACTIONS.ADD.vehicleId1: Numeric ID of the vehicle to get fuelings for
  • .ACTIONS.ADD.tankId1: Numeric ID of the tank to get fuelings for
  • .ACTIONS.ADD.date1: Date of the fueling to be added (requied format: DD.MM.YYYY)
  • .ACTIONS.ADD.odometer: Odometer of the fueling to be added
  • .ACTIONS.ADD.trip1: Trip of the fueling to be added
  • .ACTIONS.ADD.quantity1: Amount of fuel of the fueling to be added
  • .ACTIONS.ADD.type1: Type of fueling to be added (allowed values: invalid, full, notfull, first)
  • .ACTIONS.ADD.price: Price of the fueling to be added
  • .ACTIONS.ADD.currencyid: Numerical ID of the currency of the fueling to be added (allowed values see .general.currencies)
  • .ACTIONS.ADD.pricetype: Numeric ID of price (allowed values: 0: total price, 1: unit / liter price)
  • .ACTIONS.ADD.fuelsortid1: Numeric ID of the fuelsort of the fueling to be added (allowed values see .general.fuelsorts)
  • .ACTIONS.ADD.quantityunitid1: Numeric ID of quantity unit (allowed values see .general.quantityunits)
  • .ACTIONS.ADD.note: Free text note of the user for the fueling to be added
  • .ACTIONS.ADD.stationname: Gas station company for the fueling to be added
  • .ACTIONS.ADD.location: Free text location name for the fueling to be added
  • .ACTIONS.ADD.country: Country of the gas station for the fueling to be added
  • .ACTIONS.ADD.bc_consumption: Consumption according to the vehicle's bordcomputer
  • .ACTIONS.ADD.bc_quantity: Consumed quantity according to the vehicle's bordcomputer
  • .ACTIONS.ADD.bc_speed: Average speed according to the vehicle's bordcomputer
  • .ACTIONS.ADD.position_lat: Latitude of gas station
  • .ACTIONS.ADD.position_long: Longitude of gas station
  • .ACTIONS.ADD.attributes: Combination of one tire type (wintertires, summertires, allyeartires) and one driving style (slow, normal, fast) and one or more extras (ac, heating, trailer)
  • .ACTIONS.ADD.streets: Combination of city and/or autobahn and/or land
  • .ACTIONS.ADD.percent:Charge level of electric vehicle after charging
  • .ACTIONS.DEL.DEL: Delete a fueling
  • .ACTIONS.DEL.vehicleId1: Numeric ID of the vehicle to delete a fueling for
  • .ACTIONS.DEL.tankId1: Numeric ID of the tank to delete a fueling for
  • .ACTIONS.DEL.fuelingId1: Numeric ID of the fueling to be deleted
  • Area / Grossraum is not supported by the API

Available values (readonly)

  • .[vehicleID].id: Vehicle ID
  • .[vehicleID].make: Make
  • .[vehicleID].model: Model
  • .[vehicleID].consumption: Consumption value of this fuel type
  • .[vehicleID].consumptionunit: Name of consumption unit
  • .[vehicleID].tripsum: Amount of driven distance for this tank (for consumption calculation)
  • .[vehicleID].tripunit: Trip unit
  • .[vehicleID].quantitysum: Amount of tanked fuel for this tank (for consumption calculation)
  • .[vehicleID].maintank: Maintank
  • .[vehicleID].maintanktype: Type of tank
  • .[vehicleID].sign: Sign
  • .[vehicleID].picture_ts: picture_ts
  • .[vehicleID].bcconsumptionunit: Bordcomputer consumption unit
  • .[vehicleID].country: Country
  • .[vehicleID].tanks.[tankID].id: Tank ID
  • .[vehicleID].tanks.[tankID].fuelsorttype: Type of tank
  • .[vehicleID].tanks.[tankID].quantityunittype: Quantity type of tank
  • .[vehicleID].tanks.[tankID].name: Name of fueltype in tank
  • .[vehicleID].tanks.[tankID].consumption: Consumption value of this fuel type
  • .[vehicleID].tanks.[tankID].consumptionunit: Name of consumption unit
  • .[vehicleID].tanks.[tankID].consumptionunitid: Numerical ID of consumption format
  • .[vehicleID].tanks.[tankID].co2: Emission of CO₂ for this vehicle in g/km
  • .[vehicleID].tanks.[tankID].co2tripsum: Amount of driven distance for which CO₂ was calculated
  • .[vehicleID].tanks.[tankID].co2quantitysum: Amount of emissioned CO₂ in kg
  • .[vehicleID].tanks.[tankID].costsum: Amount of money spent for fuel for this tank
  • .[vehicleID].tanks.[tankID].costsumunit: Currency of the fuel expenses
  • .[vehicleID].tanks.[tankID].costtripsum: Amount of driven distance for which the fuel expenses have been summed
  • .[vehicleID].tanks.[tankID].tripsum: Amount of driven distance for this tank (for consumption calculation)
  • .[vehicleID].tanks.[tankID].tripsumunit: Unit for driven distance (km, mi)
  • .[vehicleID].tanks.[tankID].quantitysum: Amount of tanked fuel for this tank (for consumption calculation)
  • .[vehicleID].tanks.[tankID].quantitysumunit: Unit for tanked fuel (l, GAL, kg, kWh, ...)
  • .[vehicleID].fuelings.raw: A JSON array of fuelings
  • .[vehicleID].costsnotes.raw: A JSON array of costs / notes
  • .reminders.raw: A JSON array of reminders
  • .general.companies: List of supported companies, IDs and names
  • .general.currencies: List of supported currencies, IDs and names
  • .general.fuelsorts: List of supported fuelsorts, IDs and names
  • .general.quantityunits: List of supported quantityunits, IDs and names

How to report issues and feature requests

  • For issues please use GitHub issues -> "Bug report" and fill in the form.

    Set the adapter to debug log mode (Instances -> Expert mode -> Column Log level). Get the logfile from disk (subdirectory "log" in ioBroker installation directory and not from Admin because Admin cuts the lines). Check that there are no personal information before you publish your log.

  • For feature requests please use GitHub issues -> "Feature request" and fill in the form.

Changelog

0.0.3-beta.2

  • (ice987987) BREAKING: node.js >= v18, js-controller >= v5.0.19 is required
  • (ice987987) .ACTIONS.ADD.percent added
  • (ice987987) dependencies updated

0.0.2 (03.03.2024)

  • (ice987987) BREAKING: node.js >= v16.4, js-controller >= v4.0.24 and admin >= v6.3.5 is required
  • (ice987987) BREAKING: .[vehicleID].fuelings.[year].raw and .[vehicleID].costsnotes.[year].raw removed
  • (ice987987) possibility to add and delete values added
  • (ice987987) all tanks added
  • (ice987987) [vehicleID].costsnotes.[year].raw and [vehicleID].fuelings.[year].raw added
  • (ice987987) .ACTIONS.ADD.attributes and .ACTIONS.ADD.streets added
  • (ice987987) .general.companies, general.currencies, .general.fuelsorts and .general.quantityunits added
  • (ice987987) gui validator replaced
  • (ice987987) warning messages improved
  • (ice987987) dependencies updated

0.0.1 (26.11.2022)

  • (ice987987) initial release

License

MIT License

Copyright (c) 2024 ice987987 [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Footnotes

  1. required values 2 3 4 5 6 7 8 9 10 11

About

This adapter allows you to manage your fuel consumption via spritmonitor.de.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published