{"action":"created","issue":{"url":"https://api.github.com/repos/cyoung/stratux/issues/129","labels_url":"https://api.github.com/repos/cyoung/stratux/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/cyoung/stratux/issues/129/comments","events_url":"https://api.github.com/repos/cyoung/stratux/issues/129/events","html_url":"https://github.com/cyoung/stratux/issues/129","id":118851221,"number":129,"title":"Question on /getSituation","user":{"login":"Bagarre","id":347181,"avatar_url":"https://avatars.githubusercontent.com/u/347181?v=3","gravatar_id":"","url":"https://api.github.com/users/Bagarre","html_url":"https://github.com/Bagarre","followers_url":"https://api.github.com/users/Bagarre/followers","following_url":"https://api.github.com/users/Bagarre/following{/other_user}","gists_url":"https://api.github.com/users/Bagarre/gists{/gist_id}","starred_url":"https://api.github.com/users/Bagarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bagarre/subscriptions","organizations_url":"https://api.github.com/users/Bagarre/orgs","repos_url":"https://api.github.com/users/Bagarre/repos","events_url":"https://api.github.com/users/Bagarre/events{/privacy}","received_events_url":"https://api.github.com/users/Bagarre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-25T14:45:01Z","updated_at":"2015-11-25T15:39:09Z","closed_at":null,"body":"I made a pretty simple EFIS to run on a Raspberry Pi and a 3.5\" hat.\r\nhttps://github.com/Bagarre/Pi2D2\r\nIt's been a fun project so far.\r\n\r\nIt's currently runs on the same Pi that my Stratux is on and I'm naively making ajax calls to  /getSituation about 10 times a second to update the screen. <- Not ideal.\r\n\r\nIs there a better way on the Pi to get this data? "},"comment":{"url":"https://api.github.com/repos/cyoung/stratux/issues/comments/159643907","html_url":"https://github.com/cyoung/stratux/issues/129#issuecomment-159643907","issue_url":"https://api.github.com/repos/cyoung/stratux/issues/129","id":159643907,"user":{"login":"bradanlane","id":14001599,"avatar_url":"https://avatars.githubusercontent.com/u/14001599?v=3","gravatar_id":"","url":"https://api.github.com/users/bradanlane","html_url":"https://github.com/bradanlane","followers_url":"https://api.github.com/users/bradanlane/followers","following_url":"https://api.github.com/users/bradanlane/following{/other_user}","gists_url":"https://api.github.com/users/bradanlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bradanlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradanlane/subscriptions","organizations_url":"https://api.github.com/users/bradanlane/orgs","repos_url":"https://api.github.com/users/bradanlane/repos","events_url":"https://api.github.com/users/bradanlane/events{/privacy}","received_events_url":"https://api.github.com/users/bradanlane/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T15:39:09Z","updated_at":"2015-11-25T15:39:09Z","body":"An easy way to get a \"ball park\" idea is to start up Stratux, let it get running and stable, and monitor the CPU (\"top\" command from an ssh terminal) for 30 seconds. \n\nThen call \"getSituation()\" 1/sec, 10/sec, and 100/sec - running each test for 30 seconds and see what effect there is on the CPU. \n\nThe AJAX interface has some extra overhead that a websocket avoids so the impact on CPU in the test should be slightly worse than what a websocket interface would generate. "}}