cjcharles
(cjcharles)
January 24, 2018, 10:32am
6
Search for the discussion thread on the forums, that has a working link in it to Github (I think the location was changed due to ST encouraging users to tweak their ST folder structure).
Edit2, even better, use this version since then it supports video when on home Wi-Fi, and pictures at other times.
I was playing around with pstuart’s generic camera handlers and managed to combine them. If anyone is interested, it’s pasted below. I literally copied the video handler code into the photo handler and tweaked it a bit. I take no credit, except for my excellent copy and pasting.
/**
*
* Generic IP Camera
*
* Based on pstuart's Generic Video Camera and Generic Camera Device
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITION…
Edit Or if you want the original then a quick search on his Github found this:
/**
*
* Generic Camera Device v1.1.01302017
*
* Copyright 2017 patrick@patrickstuart.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
metadata {
definition (name: "Generic Camera", namespace: "pstuart", author: "patrick@patrickstuart.com") {
capability "Image Capture"
This file has been truncated. show original