{"action":"created","issue":{"url":"https://api.github.com/repos/emoncms/emoncms/issues/787","repository_url":"https://api.github.com/repos/emoncms/emoncms","labels_url":"https://api.github.com/repos/emoncms/emoncms/issues/787/labels{/name}","comments_url":"https://api.github.com/repos/emoncms/emoncms/issues/787/comments","events_url":"https://api.github.com/repos/emoncms/emoncms/issues/787/events","html_url":"https://github.com/emoncms/emoncms/issues/787","id":294447781,"node_id":"MDU6SXNzdWUyOTQ0NDc3ODE=","number":787,"title":"Unit field in the feeds table","user":{"login":"pb66","id":5606042,"node_id":"MDQ6VXNlcjU2MDYwNDI=","avatar_url":"https://avatars3.githubusercontent.com/u/5606042?v=4","gravatar_id":"","url":"https://api.github.com/users/pb66","html_url":"https://github.com/pb66","followers_url":"https://api.github.com/users/pb66/followers","following_url":"https://api.github.com/users/pb66/following{/other_user}","gists_url":"https://api.github.com/users/pb66/gists{/gist_id}","starred_url":"https://api.github.com/users/pb66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb66/subscriptions","organizations_url":"https://api.github.com/users/pb66/orgs","repos_url":"https://api.github.com/users/pb66/repos","events_url":"https://api.github.com/users/pb66/events{/privacy}","received_events_url":"https://api.github.com/users/pb66/received_events","type":"User","site_admin":false},"labels":[{"id":16536279,"node_id":"MDU6TGFiZWwxNjUzNjI3OQ==","url":"https://api.github.com/repos/emoncms/emoncms/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-02-05T16:07:49Z","updated_at":"2018-06-18T07:34:13Z","closed_at":null,"author_association":"COLLABORATOR","body":"Could we consider adding a user defined unit field to the feeds table? A simple smallish text field would suffice, this would allow the correct units to be displayed throughout emoncms, on the graphs page and in dashboard widgets. \r\n\r\nThis has come up before, but I raised this issue as I was reviewing the changes to the datapoint hover over in [emoncms/graphs PR#20](https://github.com/emoncms/graph/pull/20), it would be nice to see the units in the hover-over, without hardcoding to \"w\" or \"kWh\" as has been done elsewhere.\r\n\r\nIt would also add so much value to the data being saved, currently we rely on assumption (eg energy must be kWh and power must be watts), memory or ugly feed name that contain a hint. If the unit was held in a field of the feed table it could also be queried via api or even included in some of the fuller api responses.\r\n\r\n(PS - This data could easily be pre-filled via the device module)"},"comment":{"url":"https://api.github.com/repos/emoncms/emoncms/issues/comments/397966492","html_url":"https://github.com/emoncms/emoncms/issues/787#issuecomment-397966492","issue_url":"https://api.github.com/repos/emoncms/emoncms/issues/787","id":397966492,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzk2NjQ5Mg==","user":{"login":"emrysr","id":1466013,"node_id":"MDQ6VXNlcjE0NjYwMTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1466013?v=4","gravatar_id":"","url":"https://api.github.com/users/emrysr","html_url":"https://github.com/emrysr","followers_url":"https://api.github.com/users/emrysr/followers","following_url":"https://api.github.com/users/emrysr/following{/other_user}","gists_url":"https://api.github.com/users/emrysr/gists{/gist_id}","starred_url":"https://api.github.com/users/emrysr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emrysr/subscriptions","organizations_url":"https://api.github.com/users/emrysr/orgs","repos_url":"https://api.github.com/users/emrysr/repos","events_url":"https://api.github.com/users/emrysr/events{/privacy}","received_events_url":"https://api.github.com/users/emrysr/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T07:34:13Z","updated_at":"2018-06-18T07:34:13Z","author_association":"COLLABORATOR","body":"thanks for all the detail. I'll refer to your screenshots this when I next look at this."}}
{"actor":{"display_login":"emrysr"}}