{"action":"created","issue":{"url":"https://api.github.com/repos/pimatic/pimatic/issues/481","labels_url":"https://api.github.com/repos/pimatic/pimatic/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/pimatic/pimatic/issues/481/comments","events_url":"https://api.github.com/repos/pimatic/pimatic/issues/481/events","html_url":"https://github.com/pimatic/pimatic/issues/481","id":54670923,"number":481,"title":"pimatic-log-reader: Show temperature/humidity on main screen","user":{"login":"ituri","id":871297,"avatar_url":"https://avatars.githubusercontent.com/u/871297?v=3","gravatar_id":"","url":"https://api.github.com/users/ituri","html_url":"https://github.com/ituri","followers_url":"https://api.github.com/users/ituri/followers","following_url":"https://api.github.com/users/ituri/following{/other_user}","gists_url":"https://api.github.com/users/ituri/gists{/gist_id}","starred_url":"https://api.github.com/users/ituri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ituri/subscriptions","organizations_url":"https://api.github.com/users/ituri/orgs","repos_url":"https://api.github.com/users/ituri/repos","events_url":"https://api.github.com/users/ituri/events{/privacy}","received_events_url":"https://api.github.com/users/ituri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-17T18:46:40Z","updated_at":"2015-01-19T07:24:01Z","closed_at":null,"body":"Hi,\r\n\r\nI've set up pimatic-log-reader so that it reads the current temperature from a text file. In this text file, the current temperature is always on top, followed by the temperature from five minutes ago in the second line and so on. Here's what it looks like:\r\n```\r\n7.6\r\n7.6\r\n7.6\r\n7.7\r\n7.8\r\n```\r\nHere's the corresponding part of my pimatic configuration:\r\n```\r\n  \"devices\": [\r\n    {\r\n      \"id\": \"temperature-strasse-from-logfile\",\r\n      \"name\": \"Temperature-Strasse\",\r\n      \"class\": \"LogWatcher\",\r\n      \"file\": \"/home/pi/wetter/strasse.temp\",\r\n      \"attributes\": [\r\n        {\r\n          \"name\": \"temperature\",\r\n          \"type\": \"number\",\r\n          \"unit\": \"°C\"\r\n        }\r\n      ],\r\n      \"lines\": [\r\n        {\r\n          \"match\": \"(.+)\",\r\n          \"temperature\": \"$1\"\r\n        }\r\n      ]\r\n    },\r\n```\r\nWhen I click on the graph, pimatic shows me the current temperature without any problems. However, the temperature on the main screen doesn't seem to get updated. It always shows the same old temperature back from the first time that I ran this plugin. Is this a known problem?\r\nHere's a screen shot in order to show you what I mean by \"main screen\":\r\n![screen shot 2015-01-17 at 19 44 08](https://cloud.githubusercontent.com/assets/871297/5789941/7c49b768-9e81-11e4-9c1b-c905708cb671.png)\r\n\r\nCheers\r\nPhilipp\r\n\r\nP.S.: I opened this issue here since pimatic-log-reader doesn't seem to have a issue-section on github. I hope that's okay."},"comment":{"url":"https://api.github.com/repos/pimatic/pimatic/issues/comments/70454672","html_url":"https://github.com/pimatic/pimatic/issues/481#issuecomment-70454672","issue_url":"https://api.github.com/repos/pimatic/pimatic/issues/481","id":70454672,"user":{"login":"sweetpi","id":5249312,"avatar_url":"https://avatars.githubusercontent.com/u/5249312?v=3","gravatar_id":"","url":"https://api.github.com/users/sweetpi","html_url":"https://github.com/sweetpi","followers_url":"https://api.github.com/users/sweetpi/followers","following_url":"https://api.github.com/users/sweetpi/following{/other_user}","gists_url":"https://api.github.com/users/sweetpi/gists{/gist_id}","starred_url":"https://api.github.com/users/sweetpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweetpi/subscriptions","organizations_url":"https://api.github.com/users/sweetpi/orgs","repos_url":"https://api.github.com/users/sweetpi/repos","events_url":"https://api.github.com/users/sweetpi/events{/privacy}","received_events_url":"https://api.github.com/users/sweetpi/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T07:24:01Z","updated_at":"2015-01-19T07:24:01Z","body":"> P.S.: I opened this issue here since pimatic-log-reader doesn't seem to have a issue-section on github. I hope that's okay.\r\n\r\nThat's perfectly fine.\r\n\r\n> the values are rounded. I already mentioned that in issue #387 \r\n> i don't know if maybe another match would do the job ... but i guess it's a generic issue since i am also having it at the volkszaehler plugin while reading out photovoltaic data.\r\n\r\nIt's right, that the values are rounded, but the values are rounded to two decimals. So this shouldn't be the problem here. I've done a quick test with the config, but I get the correct values. @ituri How do you write the values to the log file?\r\n\r\n\r\n\r\n"}}