{"action":"created","issue":{"url":"https://api.github.com/repos/thingsboard/thingsboard/issues/826","repository_url":"https://api.github.com/repos/thingsboard/thingsboard","labels_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/826/comments","events_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/826/events","html_url":"https://github.com/thingsboard/thingsboard/issues/826","id":328465510,"node_id":"MDU6SXNzdWUzMjg0NjU1MTA=","number":826,"title":"Inconsistent Delta calculation","user":{"login":"untilbit","id":12769948,"node_id":"MDQ6VXNlcjEyNzY5OTQ4","avatar_url":"https://avatars2.githubusercontent.com/u/12769948?v=4","gravatar_id":"","url":"https://api.github.com/users/untilbit","html_url":"https://github.com/untilbit","followers_url":"https://api.github.com/users/untilbit/followers","following_url":"https://api.github.com/users/untilbit/following{/other_user}","gists_url":"https://api.github.com/users/untilbit/gists{/gist_id}","starred_url":"https://api.github.com/users/untilbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untilbit/subscriptions","organizations_url":"https://api.github.com/users/untilbit/orgs","repos_url":"https://api.github.com/users/untilbit/repos","events_url":"https://api.github.com/users/untilbit/events{/privacy}","received_events_url":"https://api.github.com/users/untilbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-06-01T10:29:11Z","updated_at":"2018-06-05T13:42:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have imported rule and dashboard from the tutorial and when i send data to device the table sometime only shows data for **counter**, other times only for **delta** and others it just works.\r\n\r\nhttps://thingsboard.io/docs/user-guide/rule-engine-2-0/tutorials/transform-telemetry-using-previous-record/\r\n\r\nTB 2.0 docker in ubuntu 16"},"comment":{"url":"https://api.github.com/repos/thingsboard/thingsboard/issues/comments/394713446","html_url":"https://github.com/thingsboard/thingsboard/issues/826#issuecomment-394713446","issue_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/826","id":394713446,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDcxMzQ0Ng==","user":{"login":"untilbit","id":12769948,"node_id":"MDQ6VXNlcjEyNzY5OTQ4","avatar_url":"https://avatars2.githubusercontent.com/u/12769948?v=4","gravatar_id":"","url":"https://api.github.com/users/untilbit","html_url":"https://github.com/untilbit","followers_url":"https://api.github.com/users/untilbit/followers","following_url":"https://api.github.com/users/untilbit/following{/other_user}","gists_url":"https://api.github.com/users/untilbit/gists{/gist_id}","starred_url":"https://api.github.com/users/untilbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untilbit/subscriptions","organizations_url":"https://api.github.com/users/untilbit/orgs","repos_url":"https://api.github.com/users/untilbit/repos","events_url":"https://api.github.com/users/untilbit/events{/privacy}","received_events_url":"https://api.github.com/users/untilbit/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T13:42:20Z","updated_at":"2018-06-05T13:42:20Z","author_association":"CONTRIBUTOR","body":"@gustavovelascoh @Tangerino Thanks very much.\r\n\r\nThis is the working script:\r\n\r\n```\r\nimport paho.mqtt.client as mqtt\r\nfrom time import sleep\r\nimport random, json\r\n\r\nTOPIC_TELEMETRY='v1/devices/me/telemetry'\r\nSMART_ENERGY_ACCESS_TOKEN=\"EzouNvJ2iyeDKleuCytL\"\r\n\r\nclient = mqtt.Client()\r\n\r\nclient.username_pw_set(SMART_ENERGY_ACCESS_TOKEN)\r\nclient.connect('mycircutor-dev-01.westeurope.cloudapp.azure.com', 1883, 1)\r\n\r\ndef publish_telemetry(name, value):\r\n    try:\r\n        data = {}\r\n        data[name] = value\r\n        client.publish(TOPIC_TELEMETRY, json.dumps(data))\r\n    except Exception as e:\r\n        print(\"publish_telemetry::\" + str(e))\r\n\r\nn = 0\r\nvalue = 0\r\nwhile n != 1000:\r\n    randomNumber = random.randrange(0, 6)\r\n    value += randomNumber\r\n    n += 1\r\n    print(value)\r\n    publish_telemetry('counter', value)\r\n    sleep(1)\r\n```"}}
{"actor":{"display_login":"untilbit"}}