Skip to content

Commit e045425

Browse files
Update instructions
1 parent 53d6c29 commit e045425

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ Assuming you have already installed and configured HACS, follow these steps:
2727
Please note that you need to also manually update the component with newer versions in the future.
2828

2929
# Configuration
30-
(comming soon)
30+
31+
## Through the interface
32+
1. Navigate to `Settings > Devices & Services` and then click `Add Integration`
33+
2. Search for `Precos Combustiveis DGEG.PT integration`
34+
3. (Go to [dgeg](https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/ListarDadosPostos), search for the desired post and copy the `Id`)
35+
4. Enter the StationId
36+
5. Repeat the procedure as many times as desired to include other stations
3137

3238
# Legal notice
3339
All product names, trademarks and registered trademarks in (the images in) this repository, are property of their respective owners. All images in this repository are used by the project for identification purposes only.

custom_components/precoscombustiveis/translations/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"title": "PrecosCombustiveis DGEG integration",
2+
"title": "Precos Combustiveis DGEG.PT integration",
33
"config": {
44
"step": {
55
"user": {
66
"title": "Add Credentials (user)",
7-
"description": "Please type the service station ID from which you want to obtain the prices.",
7+
"description": "Please type the service station ID from which you want to obtain the prices. (Go to [dgeg](https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/ListarDadosPostos), search for the desired station and copy the `Id`)",
88
"data": {
99
"stationId": "Station Id"
1010
},

docs/urls.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
3+
GetMarcas
4+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/GetMarcas
5+
6+
GetTiposPostos
7+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/GetTiposPostos
8+
9+
GetDistritos
10+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/GetDistritos
11+
12+
GetMunicipios
13+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/GetMunicipios
14+
15+
GetTiposCombustiveis
16+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/GetTiposCombustiveis
17+
18+
ListarDadosPostos
19+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/ListarDadosPostos?qtdPorPagina=9999&pagina=1&orderDesc=
20+
21+
22+
PesquisarPostos (Braga/Barcelos)
23+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/PesquisarPostos
24+
?idDistrito=3
25+
&idsMunicipios=35
26+
&idsTiposComb=2101
27+
&qtdPorPagina=500
28+
&pagina=1
29+
30+
31+
https://precoscombustiveis.dgeg.gov.pt/api/PrecoComb/PesquisarPostos?idsTiposComb=3205&idMarca=29&idTipoPosto=2&idDistrito=3&idsMunicipios=35&qtdPorPagina=50&pagina=1
32+

0 commit comments

Comments
 (0)