{"action":"created","issue":{"url":"https://api.github.com/repos/weewx/weewx/issues/53","labels_url":"https://api.github.com/repos/weewx/weewx/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/weewx/weewx/issues/53/comments","events_url":"https://api.github.com/repos/weewx/weewx/issues/53/events","html_url":"https://github.com/weewx/weewx/pull/53","id":96483524,"number":53,"title":"Implement $span tag","user":{"login":"gjr80","id":10717563,"avatar_url":"https://avatars.githubusercontent.com/u/10717563?v=3","gravatar_id":"","url":"https://api.github.com/users/gjr80","html_url":"https://github.com/gjr80","followers_url":"https://api.github.com/users/gjr80/followers","following_url":"https://api.github.com/users/gjr80/following{/other_user}","gists_url":"https://api.github.com/users/gjr80/gists{/gist_id}","starred_url":"https://api.github.com/users/gjr80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjr80/subscriptions","organizations_url":"https://api.github.com/users/gjr80/orgs","repos_url":"https://api.github.com/users/gjr80/repos","events_url":"https://api.github.com/users/gjr80/events{/privacy}","received_events_url":"https://api.github.com/users/gjr80/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-22T06:16:51Z","updated_at":"2015-07-26T21:28:41Z","closed_at":"2015-07-26T15:14:32Z","pull_request":{"url":"https://api.github.com/repos/weewx/weewx/pulls/53","html_url":"https://github.com/weewx/weewx/pull/53","diff_url":"https://github.com/weewx/weewx/pull/53.diff","patch_url":"https://github.com/weewx/weewx/pull/53.patch"},"body":"Implemented $span tag to give stats over some timespan immediately before time of report. Length of timespan is set by parameters $time_delta (in seconds), $hour_delta (in hours), $day_delta (in days) and $week_delta (in weeks) (I know this is slightly different to what you suggested Tom but since these additional parameters are well defined and easily implemented it seemed right to add them - I guess they may or may not be publicised). Parameters are additive. Unsure what $span should return when all parameters are 0 (ie timespan is zero length); current record or None?. Have implemented current record but it is easy enought to change."},"comment":{"url":"https://api.github.com/repos/weewx/weewx/issues/comments/125041970","html_url":"https://github.com/weewx/weewx/pull/53#issuecomment-125041970","issue_url":"https://api.github.com/repos/weewx/weewx/issues/53","id":125041970,"user":{"login":"gjr80","id":10717563,"avatar_url":"https://avatars.githubusercontent.com/u/10717563?v=3","gravatar_id":"","url":"https://api.github.com/users/gjr80","html_url":"https://github.com/gjr80","followers_url":"https://api.github.com/users/gjr80/followers","following_url":"https://api.github.com/users/gjr80/following{/other_user}","gists_url":"https://api.github.com/users/gjr80/gists{/gist_id}","starred_url":"https://api.github.com/users/gjr80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjr80/subscriptions","organizations_url":"https://api.github.com/users/gjr80/orgs","repos_url":"https://api.github.com/users/gjr80/repos","events_url":"https://api.github.com/users/gjr80/events{/privacy}","received_events_url":"https://api.github.com/users/gjr80/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T21:28:41Z","updated_at":"2015-07-26T21:28:41Z","body":"Happy to put some words in the docs, realise it's just HTML but is there any particular app or method for editing it?"}}