<commit_before># camera-polyglot

This is the Camera Poly for the ISY Polyglot interface.  
(c) JimBoCA aka <NAME>
MIT license. 

This node server is intended to support any type of camera.  Currently the following are supported:

1.Foscam MJPEG
  This is any Foscam Camera MJPEG camera.  This should be any camera that uses this interface http://www.foscam.es/descarga/ipcam_cgi_sdk.pdf which includes the non-HD Smarthome INSTEON cameras that are rebranded Foscam's.
  * See README_foscam.md for more information
  * All the params are documented in the pdf mentioned above, if you have questions about them, please read that document first.
  * The 'IR LED' only has a set option, and does not display the status because it seems there is no way to get the status of this from the camera that I can find.  If you know how, please tell me!
  * The 'Network LED Mode' is the led_mode from the camera which is defined as:
    * led_mode=0 : LED indicates network connection
    * led_mode=1 : LED indicates connected network type 
    * led_mode=2 : LED deactivated except during camera boot

2. FoscamHD2 (H.264)
   Any Camera that uses the interface [[Foscam IPCamera CGI User Guide][docs/Foscam%20IPCamera%20CGI%20User%20Guide-V1.0.4.pdf]]
   To use the Goto preset control you must defined presets named "1", "2", "3", ... on the camera.  I would like to support using the preset names defined on the camera but that would require creating the profile.zip on the fly which is possible, but hasn't been done yet.
   Tested with:
   Camera Model | System Version
   ------------ | --------------
   FI9828P V2   | 172.16.17.32
   FI9826P V2   | 1.5.3.19

# Requirements

1. Currently you must be running at least the unstable-rc version of polyglot.  You must grab the uncompiled version as instructed here:  https://github.com/UniversalDevicesInc/Polyglot/wiki/Polyglot-README#to-run-the-python-module-non-compiled-version Then also switch to the unstable-rc branch before running polyglot with `git checkout unstable-rc` when in the checked out Polyglot directory.  But, if you are using another node server you pulled down from github, it may not yet be compatible so check with the Author before switching to this version!
2. This has only been tested on the ISY 5.0.2 Firmware.
3. Install required python modules as instructed in Install Step #1

# Install

Install:

1. Pull the camera-polyglot into Polyglot
  * `cd polyglot/config/node_servers`
  * `git clone https://github.com/jimboca/camera-polyglot.git`
  * `cd camera-polyglot`
  * `sudo pip install -r requirements.txt`
2. From the polyglot web page: http://your.pi.ip:8080
  * Refresh the page<commit_msg>#13 Remove references to python camera libarary which is not used, added note about using presets on FoscamHD2 cameras<commit_after># camera-polyglot

This is the Camera Poly for the ISY Polyglot interface.  
(c) JimBoCA aka <NAME>
MIT license. 

This node server is intended to support any type of camera.  Currently the following are supported:

1. Foscam MJPEG
  This is any Foscam Camera MJPEG camera.  This should be any camera that uses this interface  [Foscam IP Camera CGI](docs/ipcam_cgi_sdk.pdf) which includes the non-HD Smarthome INSTEON cameras that are rebranded Foscam's.
  * See README_foscam.md for more information
  * All the params are documented in the pdf mentioned above, if you have questions about them, please read that document first.
  * The 'IR LED' only has a set option, and does not display the status because it seems there is no way to get the status of this from the camera that I can find.  If you know how, please tell me!
  * The 'Network LED Mode' is the led_mode from the camera which is defined as:
    * led_mode=0 : LED indicates network connection
    * led_mode=1 : LED indicates connected network type 
    * led_mode=2 : LED deactivated except during camera boot

2. FoscamHD2 (H.264)
   Any Camera that uses the interface [Foscam IPCamera CGI User Guide](docs/Foscam%20IPCamera%20CGI%20User%20Guide-V1.0.4.pdf)
   To use the Goto preset control you must defined presets named "1", "2", "3", ... on the camera.  I would like to support using the preset names defined on the camera but that would require creating the profile.zip on the fly which is possible, but hasn't been done yet.

   Tested with:
   
   Camera Model | System Version
   ------------ | --------------
   FI9828P V2   | 172.16.17.32
   FI9826P V2   | 172.16.58.3

# Requirements

1. Currently you must be running at least the unstable-rc version of polyglot.  You must grab the uncompiled version as instructed here:  https://github.com/UniversalDevicesInc/Polyglot/wiki/Polyglot-README#to-run-the-python-module-non-compiled-version Then also switch to the unstable-rc branch before running polyglot with `git checkout unstable-rc` when in the checked out Polyglot directory.  But, if you are using another node server you pulled down from github, it may not yet be compatible so check with the Author before switching to this version!
2. This has only been tested on the ISY 5.0.2 Firmware.
3. Install required python modules as instructed in Install Step #1

# Install

Install:

1. Pull the camera-polyglot into Polyglot
  * `cd polyglot/config/node_servers`
  * `git clone https://github.com/jimboca/camera-polyglot.git`
  * `cd camera-polyglot`
  * `sudo pip install -r requirements.txt`
2. From the polyglot web page: http://your.pi.ip:8080
  * Refresh the page
{'fraction_non_alphanumeric': 0.07258064516129033, 'fraction_numerical': 0.02309384164222874, 'mean_word_length': 3.6801029159519727, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3558939', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1586, 'n_words': 747}