Need Data Please: Need Blue Iris Data

Posted on
Sat Mar 17, 2018 2:47 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Need Data Please: Need Blue Iris Data

Can someone with Blue Iris do some data dumps of the things required for that plugin? I don't have this and want to support native camera integration with HomeKit. For instance, with SecuritySpy, there's a server and then each camera is it's own device. I don't know if Blue Iris works this way but I know that it's a popular solution so I would like to support it if possible.

Thank you.

Code to use for each device:
Code: Select all
indigo.server.log(unicode(indigo.devices[DEVICE_ID]))

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sat Mar 17, 2018 4:22 pm
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Need Data Please: Need Blue Iris Data

Hope this is what you require

Code: Select all
17 Mar 2018, 22:14:49
   Script                          address : Blue Iris Server Device
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : BlueIrisServer
displayStateId : deviceState
displayStateImageSel : SensorOn
displayStateValRaw : Cpu :34% MemFree :1.44G
displayStateValUi : Cpu :34% MemFree :1.44G
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 1630730552
globalProps : MetaProps : (dict)
     com.GlennNZ.indigoplugin.BlueIris : (dict)
          address : Blue Iris Server Device (string)
id : 1521099460
lastChanged : 2018-03-17 22:12:52
lastSuccessfulComm : 2018-03-17 22:12:52
model : BlueIris Server
name : Blue Iris Server Device
ownerProps : com.GlennNZ.indigoplugin.BlueIris : (dict)
     address : Blue Iris Server Device (string)
pluginId : com.GlennNZ.indigoplugin.BlueIris
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
     admin : true (bool)
     alerts : 111 (string)
     audio : true (bool)
     clips : true (bool)
     clipsInfo : Clips: 1055 files, 0.97T/0.98T; C: +27.3G, \HP_DS1 +839.6G (string)
     cpu : 34 (integer)
     cxns : 0 (integer)
     deviceIsOnline : true (bool)
     deviceIsOnline.ui : Online (string)
     deviceLastUpdated : Sat Mar 17 22:12:51 2018 (string)
     deviceState : Cpu :34% MemFree :1.44G (string)
     deviceTimestamp : 1521324771.91 (string)
     diskallocated : 6144 (integer)
     diskfree : 29066 (integer)
     diskname : c: (string)
     disktotal : 60954 (integer)
     diskused : 5071 (integer)
     latitude : 54.881607 (real)
     lock : 0 (string)
     longitude : -1.818482 (real)
     mem : 807.1M (string)
     memfree : 1.44G (string)
     memload : 57% (string)
     profile : -1 (string)
     schedule : Default (string)
     signal : 1 (string)
     systemName : Highsteads (string)
     tzone : 0 (string)
     uptime : 2:16:46:32 (string)
     user : Indigo (string)
     version : 4.7.2.0 (string)
     warnings : 5 (string)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : False
version : None

17 Mar 2018, 22:16:56
   Action Group                    Device
   Script                          address : BlueIris Camera Front_Door
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : BlueIrisCamera
displayStateId : Motion
displayStateImageSel : MotionSensor
displayStateValRaw : False
displayStateValUi : False
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 1630730552
globalProps : MetaProps : (dict)
     com.GlennNZ.indigoplugin.BlueIris : (dict)
          address : BlueIris Camera Front_Door (string)
          animateGif : true (bool)
          gifcompression : 200 (integer)
          giftime : 10 (integer)
          gifwidth : 600 (integer)
          saveimage : true (bool)
          widthimage : 1920 (integer)
id : 190503306
lastChanged : 2018-03-17 22:16:15
lastSuccessfulComm : 2018-03-17 22:16:15
model : BlueIris Camera
name : BlueIris Camera Front_Door
ownerProps : com.GlennNZ.indigoplugin.BlueIris : (dict)
     address : BlueIris Camera Front_Door (string)
     animateGif : true (bool)
     gifcompression : 200 (integer)
     giftime : 10 (integer)
     gifwidth : 600 (integer)
     saveimage : true (bool)
     widthimage : 1920 (integer)
pluginId : com.GlennNZ.indigoplugin.BlueIris
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
     CameraPaused : 0 (integer)
     FPS : 15.1 (real)
     ManRecLimit : 0 (integer)
     Motion : false (bool)
     Motion.ui : False (string)
     MotionDetection : true (bool)
     PluginTriggeringEnabled : true (bool)
     PtzCycle : false (bool)
     active : true (bool)
     alertutc : 1521324097 (integer)
     audio : false (bool)
     color : 8151097 (integer)
     deviceIsOnline : true (bool)
     deviceIsOnline.ui : Online (string)
     deviceLastUpdated : Sat Mar 17 22:16:14 2018 (string)
     deviceTimestamp :  (string)
     error :  (string)
     height : 1520 (integer)
     hidden : false (bool)
     isAlerting : false (bool)
     isEnabled : true (bool)
     isManRec : false (bool)
     isMotion : false (bool)
     isNoSignal : false (bool)
     isOnline : true (bool)
     isPaused : false (bool)
     isRecording : true (bool)
     isTriggered : false (bool)
     isYellow : false (bool)
     lastMotionTriggerType : MOTION_A (string)
     lastalert : 13977535 (integer)
     nAlerts : 37 (integer)
     nClips : 6 (integer)
     nNoSignal : 0 (integer)
     nTriggers : 62 (integer)
     newalerts : 111 (integer)
     optionDisplay : Front_Door (string)
     optionValue : Front_Door (string)
     pause : 0 (integer)
     profile : -1 (integer)
     ptz : true (bool)
     timeLastMotion : Sat Mar 17 22:01:38 2018 (string)
     type : 4 (integer)
     webcast : true (bool)
     width : 2688 (integer)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : False
version : None

17 Mar 2018, 22:18:15
   Action Group                    Device
   Script                          address : BlueIris Camera Living_Room
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : BlueIrisCamera
displayStateId : Motion
displayStateImageSel : SensorOff
displayStateValRaw : False
displayStateValUi : Disabled
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 1630730552
globalProps : MetaProps : (dict)
     com.GlennNZ.indigoplugin.BlueIris : (dict)
          address : BlueIris Camera Living_Room (string)
          animateGif : true (bool)
          gifcompression : 150 (integer)
          giftime : 10 (integer)
          gifwidth : 800 (integer)
          saveimage : true (bool)
          widthimage : 1920 (integer)
id : 278157178
lastChanged : 2018-03-17 22:16:16
lastSuccessfulComm : 2018-03-17 22:16:16
model : BlueIris Camera
name : BlueIris Camera Living_Room
ownerProps : com.GlennNZ.indigoplugin.BlueIris : (dict)
     address : BlueIris Camera Living_Room (string)
     animateGif : true (bool)
     gifcompression : 150 (integer)
     giftime : 10 (integer)
     gifwidth : 800 (integer)
     saveimage : true (bool)
     widthimage : 1920 (integer)
pluginId : com.GlennNZ.indigoplugin.BlueIris
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
     CameraPaused : -1 (integer)
     FPS : 0 (real)
     ManRecLimit : 0 (integer)
     Motion : false (bool)
     Motion.ui : Disabled (string)
     MotionDetection : true (bool)
     PluginTriggeringEnabled : true (bool)
     PtzCycle : false (bool)
     active : true (bool)
     alertutc : 1519147429 (integer)
     audio : false (bool)
     color : 8151097 (integer)
     deviceIsOnline : false (bool)
     deviceIsOnline.ui : Offline (string)
     deviceLastUpdated : Sat Mar 17 22:16:14 2018 (string)
     deviceTimestamp :  (string)
     error :  (string)
     height : 1520 (integer)
     hidden : false (bool)
     isAlerting : false (bool)
     isEnabled : false (bool)
     isManRec : false (bool)
     isMotion : false (bool)
     isNoSignal : false (bool)
     isOnline : false (bool)
     isPaused : true (bool)
     isRecording : false (bool)
     isTriggered : false (bool)
     isYellow : false (bool)
     lastMotionTriggerType : MOTION_A (string)
     lastalert : -1 (integer)
     nAlerts : 0 (integer)
     nClips : 0 (integer)
     nNoSignal : 0 (integer)
     nTriggers : 0 (integer)
     newalerts : 0 (integer)
     optionDisplay : Living_Room (string)
     optionValue : Living_Room (string)
     pause : -1 (integer)
     profile : -1 (integer)
     ptz : true (bool)
     timeLastMotion : Sun Mar 11 13:32:08 2018 (string)
     type : 4 (integer)
     webcast : true (bool)
     width : 2688 (integer)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : False
version : None


CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Sat Mar 17, 2018 4:27 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

Thanks Clive!

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sat Mar 17, 2018 4:30 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

I don't see anything in the devices that indicate the IP address of the cameras or anything that would point me to the server itself. Is that stored elsewhere, like in the plugin prefs?

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sat Mar 17, 2018 4:36 pm
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Need Data Please: Need Blue Iris Data

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<Prefs type="dict">
   <Httpserverport type="string">4556</Httpserverport>
   <ImageTimeout type="integer">10</ImageTimeout>
   <ServerTimeout type="integer">5</ServerTimeout>
   <advanced type="bool">true</advanced>
   <configMenuPollInterval type="string">300</configMenuPollInterval>
   <configMenuServerTimeout type="string">15</configMenuServerTimeout>
   <configUpdaterForceUpdate type="bool">false</configUpdaterForceUpdate>
   <configUpdaterInterval type="integer">24</configUpdaterInterval>
   <debugextra type="bool">false</debugextra>
   <debuggif type="bool">false</debuggif>
   <debugimage type="bool">false</debugimage>
   <debugother type="bool">false</debugother>
   <debugserver type="bool">false</debugserver>
   <debugtriggers type="bool">false</debugtriggers>
   <directory type="string">/Users/indigo/Documents/Indigo-BlueIris/</directory>
   <generateCameras type="string"></generateCameras>
   <infoLabel0 type="string"></infoLabel0>
   <loginOK type="string">true</loginOK>
   <loginServer type="string"></loginServer>
   <openStore type="bool">true</openStore>
   <sep224 type="string"></sep224>
   <sep233 type="string"></sep233>
   <sep235 type="string"></sep235>
   <sep23ab5 type="string"></sep23ab5>
   <sep2aa24 type="string"></sep2aa24>
   <sep2aa33 type="string"></sep2aa33>
   <sep4 type="string"></sep4>
   <sep6 type="string"></sep6>
   <sep7 type="string"></sep7>
   <sep9 type="string"></sep9>
   <sepnew44 type="string"></sepnew44>
   <serverip type="string">192.168.100.33</serverip>
   <serverpassword type="string">password</serverpassword>
   <serverport type="string">3333</serverport>
   <serverusername type="string">username</serverusername>
   <showDebugInfo type="bool">false</showDebugInfo>
   <showDebugLevel type="string"></showDebugLevel>
   <space0 type="string"></space0>
   <space1 type="string"></space1>
   <space10 type="string"></space10>
   <space11 type="string"></space11>
   <space2 type="string"></space2>
   <spacea2 type="string"></spacea2>
   <updateFrequency type="string">24</updateFrequency>
   <updaterEmail type="string"></updaterEmail>
   <updaterEmailsEnabled type="bool">false</updaterEmailsEnabled>
</Prefs>

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Sun Mar 18, 2018 9:55 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

Is the device address always "Blue Iris Camera <cameraname>"? I need to know so I can make sure that I can always grab that last bit to get the camera name for the URL.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sun Mar 18, 2018 10:16 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Need Data Please: Need Blue Iris Data

I think you need the value from the state optionValue which is equivalent to the Blue Iris short name that is used in URLs :)

Posted on
Sun Mar 18, 2018 10:22 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

autolog wrote:
I think you need the value from the state optionValue which is equivalent to the Blue Iris short name that is used in URLs :)

That's what I was going to go with but got spooked by the "option" word, meaning to me that it was something that the user had the power to change in the plugin and, thusly, break the URL.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sun Mar 18, 2018 11:26 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

Beta 19.5 is released (click to download) which adds experimental Blue Iris support and enhances SecuritySpy support.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sun Mar 18, 2018 1:03 pm
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Need Data Please: Need Blue Iris Data

Not sure if you need this here or Github.

HomeKit Bridge HomeKit Bridge is loaded and ready to use

18 Mar 2018, 18:41:30
SQL Logger creating table device_history_1284831656 for "new device"
HomeKit Bridge Server 'new device' has changed ports or users, validating config
HomeKit Bridge NEW DEVICE
HomeKit Bridge Server 'new device' has no devices to publish to HomeKit, the server won't be started since there is nothing to serve
SQL Logger adding column "onoffstate_ui" to table device_history_1284831656 ("new device")
HomeKit Bridge HomeKit server 'Blue Iris' is not currently running, the configuration has been saved and will be used the next time this server starts

18 Mar 2018, 18:42:33
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4377: 'list' object has no attribute 'childNodes'
CODE: biServerIp = self._getElementValueByTagName(prefs, u"serverip", required=False, default=u"")

HomeKit Bridge Error Unable to build server configuration for 'Blue Iris'.
HomeKit Bridge HomeKit server 'Blue Iris' is not currently running, the configuration has been saved and will be used the next time this server starts


CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Sun Mar 18, 2018 3:59 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

Thanks for the feedback! Git's probably a better place to do this on the next update but as I said, it'll likely take 2-3 updates to do this because I'm working blindly. I'll see if I can patch that problem and put another release out.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sun Mar 18, 2018 4:08 pm
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Need Data Please: Need Blue Iris Data

Colorado4Wheeler wrote:
Thanks for the feedback! Git's probably a better place to do this on the next update but as I said, it'll likely take 2-3 updates to do this because I'm working blindly. I'll see if I can patch that problem and put another release out.


Ok, will switch to Git for further feedback.

BTW, Ghawken on Github is GlennNZ here and as the author of the Blue Iris plugin was offering to help with adding bits to the plugin if it would help the integration.

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Sun Mar 18, 2018 4:10 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

CliveS wrote:
BTW, Ghawken on Github is GlennNZ

While I wasn't certain of that I was fairly certain that was one and the same :). I think we'll get this nailed without having to mod the plugin (fingers crossed).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sun Mar 18, 2018 4:17 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Need Data Please: Need Blue Iris Data

Ok, try the latest 19.6 build that fixes that. If it works I'll be floored but one baby step at a time. I have no way to test this other than to build-patch-build based on people's feedback.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Sun Mar 18, 2018 4:37 pm
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Need Data Please: Need Blue Iris Data

Colorado4Wheeler wrote:
Ok, try the latest 19.6 build that fixes that. If it works I'll be floored but one baby step at a time. I have no way to test this other than to build-patch-build based on people's feedback.

18 Mar 2018, 22:32:30
HomeKit Bridge Debug logging enabled

18 Mar 2018, 22:32:55
HomeKit Bridge Debug BlueIris Camera Front_Door started as a HomeKit Camera RTP Stream Management (Experimental)
HomeKit Bridge Debug Saving 'Blue Iris' configuration to /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/1284831656
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4377: list index out of range
CODE: biServerIp = self._getElementValueByTagName(prefs[0], u"serverip", required=False, default=u"")

HomeKit Bridge Error Unable to build server configuration for 'Blue Iris'.
HomeKit Bridge HomeKit server 'Blue Iris' is not currently running, the configuration has been saved and will be used the next time this server starts
HomeKit Bridge Debug Indigo device BlueIris Camera Front_Door changed and is linked to HomeKit, checking if that change impacts HomeKit
HomeKit Bridge Debug BlueIris Camera Front_Door started as a HomeKit Camera RTP Stream Management (Experimental)
HomeKit Bridge Debug Indigo device BlueIris Camera Front_Door changed and is linked to HomeKit, checking if that change impacts HomeKit
HomeKit Bridge Debug BlueIris Camera Front_Door started as a HomeKit Camera RTP Stream Management (Experimental)

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Who is online

Users browsing this forum: No registered users and 8 guests