You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Migrated provider `nsw` from API v1 to v2 in order to support new region Tasmania (Australia)](https://github.com/fewieden/MMM-Fuel/issues/68#issuecomment-916505199)
Copy file name to clipboardexpand all lines: README.md
+22-2
Original file line number
Diff line number
Diff line change
@@ -56,14 +56,15 @@ Gas Station Price Module for MagicMirror<sup>2</sup>
56
56
|`width`|`600`| Width of the map in pixel. |
57
57
|`colored`|`false`| Boolean to show the gas stations map colored or not. |
58
58
|`shortenText`|`false`| Integer of characters to be shown for name and address. Default shows all. |
59
-
|`showAddress`|`true`| Boolean to show the gas stations address. |
59
+
|`showAddress`|`true`| Boolean to show the gas station's address. |
60
60
|`showOpenOnly`|`false`| Boolean to show only open gas stations or all. |
61
61
|`showDistance`|`true`| Boolean to show the distance to your specified position. |
62
62
|`showBrand`|`false`| Boolean to show the brand instead of the name. |
63
63
|`iconHeader`|`true`| Boolean to display the car icon in the header. |
64
64
|`rotate`|`true`| Boolean to enable/disable rotation between sort by price and distance. |
65
65
|`rotateInterval`|`60000` (1 min) | How fast the sorting should be switched between byPrice and byDistance. |
66
66
|`updateInterval`|`900000` (15 mins) | How often should the data be fetched. **If your value is to small, you risk to get banned from the API provider. I suggest a minimum of 15mins**|
67
+
|`fade`|`true`| Boolean to fade out the list of gas stations. |
67
68
68
69
## Global config
69
70
@@ -85,6 +86,7 @@ or your API access will be suspended.
85
86
|`api_key`| REQUIRED | Get an API key for free access to the data of [tankerkoenig.de](https://creativecommons.tankerkoenig.de/#register). |
86
87
|`types`|`["diesel"]`| Valid options are `diesel`, `e5` and `e10`. |
87
88
|`radius`|`5`| Valid range is 0-25. Set to 0 to disable. Not required if `stationIds` are provided. |
89
+
|`showAddressCity`|`true`| Boolean to show the gas station's city. |
88
90
|`stationIds`|`[]`| Optional array of fuel station ids to fetch instead of the radius. You can only specify a maximum of 10 and you can find the ids [here](https://creativecommons.tankerkoenig.de/TankstellenFinder/index.html). Using radius and station ids in parallel will result in more API calls. If you run into issues increase the `updateInterval`. |
89
91
|`excludeStationIds`|`[]`| Optional array of fuel station ids to exclude from the radius. This is useful e.g. if you got a non public or truck exclusive station in the radius. You can find the ids [here](https://creativecommons.tankerkoenig.de/TankstellenFinder/index.html).|
90
92
@@ -98,6 +100,7 @@ No API key required.
98
100
|`types`|`["diesel"]`| Valid options are `diesel`, `e5` and `gas`. |
99
101
|`radius`|`5`| Valid range not tested yet. |
100
102
|`max`|`5`| The API provider returns maximum of 5 valid datasets. |
103
+
|`showAddressCity`|`true`| Boolean to show the gas station's city. |
101
104
|`showBrand`|`false`| The API provider does not return brand information. |
102
105
103
106
### autoblog (USA only)
@@ -116,7 +119,24 @@ No API key required. The displayed distance is not based on your coordinates but
116
119
|`showOpenOnly`|`false`| Not supported |
117
120
|`showBrand`|`false`| Not supported |
118
121
119
-
### nsw (Australia NSW only)
122
+
### gasbuddy (USA and Canada only)
123
+
124
+
No API key required. The displayed distance is not based on your coordinates but on the zip code.
125
+
126
+
|**Option**|**Default**|**Description**|
127
+
| --- | --- | --- |
128
+
|`provider`|`"tankerkoenig"`| Make sure you set it to `"gasbuddy"`. |
129
+
|`zip`| REQUIRED | The zip code of your address, e.g. `"12345"`|
130
+
|`types`|`["regular"]`| Valid options are `regular`, `midgrade`, `premium`, `diesel`, `e85`, and `unl88`. |
131
+
|`showDistance`|`false`| Not supported |
132
+
|`radius`|`5`| Not supported |
133
+
|`lat`|`undefined`| Not supported |
134
+
|`lng`|`undefined`| Not supported |
135
+
|`open`|`false`| Not supported |
136
+
|`showOpenOnly`|`false`| Not supported |
137
+
|`showBrand`|`false`| Not supported |
138
+
139
+
### nsw (Australia NSW and TAS only)
120
140
121
141
This provider gives no information if the gas stations are open or closed.
122
142
Config options should be set accordingly `open`: false and `showOpenOnly`: false.
0 commit comments