{"action":"created","issue":{"url":"https://api.github.com/repos/ccrisan/motioneye/issues/214","repository_url":"https://api.github.com/repos/ccrisan/motioneye","labels_url":"https://api.github.com/repos/ccrisan/motioneye/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/ccrisan/motioneye/issues/214/comments","events_url":"https://api.github.com/repos/ccrisan/motioneye/issues/214/events","html_url":"https://github.com/ccrisan/motioneye/issues/214","id":158005903,"number":214,"title":"Adjusting brightness from shell script","user":{"login":"stevegpage","id":16991468,"avatar_url":"https://avatars.githubusercontent.com/u/16991468?v=3","gravatar_id":"","url":"https://api.github.com/users/stevegpage","html_url":"https://github.com/stevegpage","followers_url":"https://api.github.com/users/stevegpage/followers","following_url":"https://api.github.com/users/stevegpage/following{/other_user}","gists_url":"https://api.github.com/users/stevegpage/gists{/gist_id}","starred_url":"https://api.github.com/users/stevegpage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevegpage/subscriptions","organizations_url":"https://api.github.com/users/stevegpage/orgs","repos_url":"https://api.github.com/users/stevegpage/repos","events_url":"https://api.github.com/users/stevegpage/events{/privacy}","received_events_url":"https://api.github.com/users/stevegpage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-01T21:00:24Z","updated_at":"2016-06-06T12:53:37Z","closed_at":null,"body":"I am trying to flip the brightness and contrast levels automaticaly at sunset/sunrise, as auto brightness does not work on the Pi. My plan was to run 'sed' on the thread-1.conf and restart the motioneye service but this does not seem to reload the config file changes - is there another way to achieve this?"},"comment":{"url":"https://api.github.com/repos/ccrisan/motioneye/issues/comments/223949913","html_url":"https://github.com/ccrisan/motioneye/issues/214#issuecomment-223949913","issue_url":"https://api.github.com/repos/ccrisan/motioneye/issues/214","id":223949913,"user":{"login":"stevegpage","id":16991468,"avatar_url":"https://avatars.githubusercontent.com/u/16991468?v=3","gravatar_id":"","url":"https://api.github.com/users/stevegpage","html_url":"https://github.com/stevegpage","followers_url":"https://api.github.com/users/stevegpage/followers","following_url":"https://api.github.com/users/stevegpage/following{/other_user}","gists_url":"https://api.github.com/users/stevegpage/gists{/gist_id}","starred_url":"https://api.github.com/users/stevegpage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevegpage/subscriptions","organizations_url":"https://api.github.com/users/stevegpage/orgs","repos_url":"https://api.github.com/users/stevegpage/repos","events_url":"https://api.github.com/users/stevegpage/events{/privacy}","received_events_url":"https://api.github.com/users/stevegpage/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T12:53:37Z","updated_at":"2016-06-06T12:53:37Z","body":"Thats a good idea - I did notice that after setting the auto brightness and restarting it reset things. I thought I had triggered motioned to read the config data - but could not repeat it, but now I think I can understand why. Will give this a go and see what happens this evening, thanks.\n\n--\n\nOn 6 June 2016 at 10:32:40, Dawson (notifications@github.com) wrote:\n\nHi Steve,\nI have a cron job which runs each hour throught the day and night to execute shell script which does the following:\n\nsudo perl -pi -e 's/auto_brightness off/auto_brightness on/g' /etc/motioneye/thread-1.conf\nsudo systemctl restart motioneye\nsleep 30s\nsudo perl -pi -e 's/auto_brightness on/auto_brightness off/g' /etc/motioneye/thread-1.conf\nsudo systemctl restart motioneye\n\nI'm using an rPi 3 with the noIR camera - this has so far proven to be enough to set the camera's exposure to a reasonable level each hour as the day's light conditions change. Rather than relying on dawn/dusk to change the settings, it also allows for changing meteorological conditions.\nThis works for me\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub, or mute the thread.\n\n"}}
{"actor":{"display_login":"stevegpage"}}