jay448
(Jay448)
July 9, 2018, 1:53pm
7
Also off topic but I was looking for a dutch way to do it. I am using this app on my phone to get the cheapest gas prices around my position: https://directlease.nl/tankservice/
Maybe there is a way to gather the data from here for a bit more option than just shell.
jay448
(Jay448)
July 9, 2018, 1:54pm
8
Good job on quiting smoking OP.
Nice how you added it to Home Assistant
1 Like
metbril
(Robert 🇳🇱🇪🇺)
July 9, 2018, 6:06pm
9
OFFTOPIC
I checked that. The website has an api call for getting all stations with lat/lon . But from that you can only get to the station prices from a png image . That is of no use.
I tried mitmproxy to sniff the app, but that uses https/ssl traffic, so SSL certificates were invalid and therefor I was unable to read which api calls are made.
Perhaps someone with more technical skills can reverse-engineer the iOS app.
I was also thinking of scraping from
https://www.unitedconsumers.com/tanken/informatie/brandstof-prijzen.asp
or
https://www.unitedconsumers.com/tanken/informatie/brandstof-prijzen/euro95
but I was having a hard time getting the filter right.
@jay448 @Bob_NL I suggest we start a new topic to continue this discussion.
Update: this discussion continues over here:
Hi,
A little while ago someone created a way of showing German gas priceses for their favorite gas station.
Sadly enough I don’t live in Germany but in the Netherlands and I would like to have a way for Home Assistant to show me where I can get the cheapest gas around my home.
This topic was discussed in another topic quite briefly and we mentioned starting a new topic for it so here we are. I will include the previous conversation about this topic below. Right now I am albe to monitor Shell …
@jones sorry ask you but i dont understand. 1.65 tage
is what??
Google: translate tage to English
German: tage
English: days
Google: translate Nichtraucher to English
German: Nichtraucher
English: non smoking
i believe its actualy nonsmoker
Thanks. It would be nice if we could improve the translator
1 Like
jones
July 10, 2018, 9:48am
14
Right! My Homeassistant is a weird mix between German and Englisch. Sorry about that.
mine is even more wierd.
i got mostly dutch, but its also partly german and partly english
1 Like
Thank you jones! I have never smoked but did implement the Tankerkönig. Works flawlessly! Great stuff!
1 Like
@GraysonPeddie yes tage is days, but 1.65 is what? 1= one day and .65???
hmm, that isnt that hard to understand.
1.65 days is 1.65* 24 hours
so .65 is 15 hours and 10 minutes
1 day and 15.6 hours. 0.6 hour is 36 minutes.
oops, i calculated wrong. thx for correcting
1 Like
Thanks for your explanation.
phiwa
(Philipp)
December 11, 2018, 6:50pm
22
I get the warning
Template sensor xxxxx has no entity ids configured to track nor were we able to extract the entities to track from the value template(s). This entity will only be able to be updated manually.
I read some posts for this problem:
always an ongoing process I find as your knowledge increases…
but how can I change my config to avoid the warning`?
- platform: template
sensors:
zusammen_tage:
value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("08.01.2012", "%d.%m.%Y")) ) / 86400 ) | round(2) }}'
friendly_name: 'Tage zusammen'
unit_of_measurement: "Tage"
jones
December 11, 2018, 7:04pm
23
Look here. You have to add an entity to update the sensor. Use sensor.date like in the official docs: https://www.home-assistant.io/components/sensor.template/#working-without-entities
1 Like
elRadix
(elRadix)
December 11, 2018, 7:43pm
24
what does the daily report report switch do? can you share it also
jones
December 11, 2018, 7:59pm
25
Daily report triggers a xmpp notification every morning. Looks like this: https://twitter.com/_HailEris/status/1016643765057064960
Just wanted to say congrats. It is almost a year for me and I feel great.
1 Like