New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release v2.3.0 #163
Release v2.3.0 #163
Conversation
Reverse merge for v2.2.2 from master to dev
* NeoPixelsLightStrip Added ability to interface with NeoPixels RGB LEDs. This will allow changing of Color, Brightness and State(On/Off) of the NeoPixels attached to the RPi. This accessory uses all available HomeKit Lightbulb API services (Hue, Saturation, Brightness). This commit requires the installation of rpi_ws281x library. The procedure is outlined in # https://learn.adafruit.com/neopixels-on-raspberry-pi/software. * Added check for RGB Tuple length to prevent crash from accessing outside bounds.
We need to call end_headers to flush the headers to the stream and this is done as part of end_response.
Look at camera_main.py for a quick start. * First steps in supporting a camera accessory. * Documentation; value serialization/deserialization * Commit progress * Various changes - iOS can negotiate sessions Running python3 cam.py and adding the camera in the Home app - iOS can negotiate stream config with HAP python, which then starts ffmpeg. Remaining issue is that the Home app gets stuck at "Loading..." * Code structure and documentation improvements. * Unit tests, ability to insert custom start stream command * Address flake8 warnings, disable some * Fix a bug in stop_stream, coding style * flake8 is now green * Polish camera_main.py, add test_camera.py * Add more camera tests * Fix lints
This change adds three methods that users can implement to plug custom logic for starting a stream, i.e. if only changing the start_stream_cmd does not fit. Added more tests.
* Spelling fix - executor * Updated changelog
Working camera #53 Probably missing edge cases, but can start/stop stream multiple times.
* Char - ignore duplicate values (client_update_value) * Added testcase * Updated logbook * Fix method name
The default Camera.start method now starts a process and redirects stdout to subprocess.DEVNULL and stderr to a subprocess.PIP. Also, on Camera.stop, the process is terminated (was killed) with a timeout of 2 seconds. If this expires, the process is killed. The stderr of the process is logged before the terminate. This change also documents how a camera accessory can be set up in the README.
Codecov Report
@@ Coverage Diff @@
## master #163 +/- ##
==========================================
+ Coverage 52.08% 58.14% +6.05%
==========================================
Files 15 16 +1
Lines 1342 1639 +297
Branches 138 165 +27
==========================================
+ Hits 699 953 +254
- Misses 628 652 +24
- Partials 15 34 +19
|
Something might have gone wrong with this merge, maybe squash merge instead of a normal one? |
Highlights:
set_characteristic