{"action":"opened","issue":{"url":"https://api.github.com/repos/snowdd1/homebridge-knx-de/issues/49","repository_url":"https://api.github.com/repos/snowdd1/homebridge-knx-de","labels_url":"https://api.github.com/repos/snowdd1/homebridge-knx-de/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/snowdd1/homebridge-knx-de/issues/49/comments","events_url":"https://api.github.com/repos/snowdd1/homebridge-knx-de/issues/49/events","html_url":"https://github.com/snowdd1/homebridge-knx-de/issues/49","id":328123139,"node_id":"MDU6SXNzdWUzMjgxMjMxMzk=","number":49,"title":"FakeGatoHistory als Handler einbinden...","user":{"login":"ctschach","id":8994357,"node_id":"MDQ6VXNlcjg5OTQzNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8994357?v=4","gravatar_id":"","url":"https://api.github.com/users/ctschach","html_url":"https://github.com/ctschach","followers_url":"https://api.github.com/users/ctschach/followers","following_url":"https://api.github.com/users/ctschach/following{/other_user}","gists_url":"https://api.github.com/users/ctschach/gists{/gist_id}","starred_url":"https://api.github.com/users/ctschach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctschach/subscriptions","organizations_url":"https://api.github.com/users/ctschach/orgs","repos_url":"https://api.github.com/users/ctschach/repos","events_url":"https://api.github.com/users/ctschach/events{/privacy}","received_events_url":"https://api.github.com/users/ctschach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-31T12:43:40Z","updated_at":"2018-05-31T12:43:40Z","closed_at":null,"author_association":"NONE","body":"Im Moment versuche ich mich daran, FakeGatoHistory als CustomHandler einzubauen:\r\n\r\nhttps://github.com/simont77/fakegato-history\r\n\r\nMeine Idee war eigentlich ganz simpel: Ich erstelle einen CustomHandler, der den entsprechenden Wert in die History schreibt. Im meinem Fall dann einfach \"TemperatureHistory\". \r\n\r\nIn der index.js definiere ich FakeGateHistoryService als globale Variable und in der Funktion \"registry\" definiere ich FakeGateHistoryService entsprechend der Anleitung.\r\n```\r\n        // Include FakeGate History Service\r\n        FakeGatoHistoryService = require('fakegato-history')(homebridgeAPI);\r\n        globs.FakeGatoHistoryService = FakeGatoHistoryService;\r\n```\r\n\r\nIn meinem CustomHandler rufe ich dann im constuct(knxAPI) die funktion auf:\r\n`        this.loggingService = new FakeGatoHistoryService(historyType, this.accessory, {size: this.log_days*24*6, storage:'fs'});`\r\n\r\nAllerdings fällt er hier auf die Nase, weil FakeGateHistoryService nicht bekannt ist.\r\n\r\nMit ist klar, dass das sicherlich eine generelle JavaScript frage ist, dennoch wäre eine Hilfe hier total lieb :-)\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"ctschach"}}