Well, there is no leading zero set. Should be 14:01
I think it’s not critical. Will be part of the next release.
New plugin - [pimatic-tankerkoenig]
Well, there is no leading zero set. Should be 14:01
I think it’s not critical. Will be part of the next release.
Which api is necessary top loaded from tankerkoenig ? ioBrocker, FEHEM, HomeMatic, openHab?
Or a other think?
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
I don’t understand your question.
Ok, the problem was myself. But how can I create a variable for used in rules, for notifcations? And for using in charts?
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
No need to. The variables are already there. Have a look into the variables section. It’s enough to create a TankerkoenigDevice.
I had this plugin running for a week seemingly without problems. But after a system reboot a problem popped up. I can have the plugin installed with the TankerkoenigDevice without errors. But as soon as i make a variables device, i get this:
error [pimatic-mobile-frontend]: Client error: Unable to process binding "template: function(){return { name:'devicepage-template',foreach:devicepages} }" Message: Unable to process binding "template: function(){return { name:'device-group-template',foreach:$root.groups} }" Message: Unable to process binding "if: function(){return $root.enabledEditing() || $parent.getDevicesInGroup($data.id).length > 0 }" Message: Unable to process binding "if: function(){return !$root.isGroupCollapsed($parent,$data) }" Message: Unable to process binding "template: function(){return { name:$root.getItemTemplate,foreach:$parent.getDevicesInGroup($data.id),afterRender:$parent.afterRenderDevice} }" Message: Unable to process binding "if: function(){return jsonDataWarnings().length == 0 }" Message: Cannot read property 'length' of undefined
@saxnpaule
Oh thx, there are the variabels, now I can see there. I think, now I can use there for other things.
Thank you very much.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
@fregger I don’t think this problem is related to the tankerkoenig plugin. What happens after clearing your browser cache?
I made this observation last night but i must admit it was very late and now the problem seems to be gone. Must have done something stupid last night. Sorry
Sorry, but I have an next Question.
I have create this rule:
"id": "tanken-preis",
"name": "Tanken Preis",
"rule": "when $tanken.prices decreased then send pushover message:\"$tanken.dieselMin €\"",
"active": true,
"logging": true
Now I always get a message with the current price after one hour. Even if the price hasn’t changed.
I don’t get a message if the price has changed or decreased.
Maybe it’s a mistake in my rule or my settings. Or is there nothing else we can do right now?
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
What is $tanken.prices?
Check for dieselMin. Decreases only works for numeric attributes.
This is one of the possible variables.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
No, it holds the HTML display data for the widget. Please refer to the other ones, marked in the posting above (#5)
Ok, and thx. I will test it so. Only with $spritpreisDieselMin.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
Hi @SaxnPaule,
when starting pimatic the first value it shows is -1
instead of a real price. Is there a way to filter that out? Of course that’s not a big problem for the device itself (as it will update to the correct price very soon) but makes the 24h-graph (and all others too) useless.
Regards,
Anduril
After the latest Pimatic update 0.9.46 Tankerkoenig 0.0.4 is broken. All station names are “undefined”, states and prices are shown correct.
Are there any errors in the logfile?
Had some connection errors in the afternoon, but the last hours there are only info messages “reload prices”.
where come the names from? In the result of the API call are only the station ids.
There are two API calls you have to make.
api = "https://creativecommons.tankerkoenig.de/json/prices.php?ids={id}&apikey={apiKey}"
detailApi = "https://creativecommons.tankerkoenig.de/json/detail.php?id={id}&apikey={apiKey}"
I restarted Pimatic a second time and now all names are back again.