1/10/2024 - I have linked a slightly newer version, still out of date, but I need to test newer versions to make sure there is no configuration changes.
readBufferSize, runOnPublish, runOnPublishRestart, runOnRead, runOnReadRestart
| $hex = "ff00aa55005a4343494320202020204441432020202020202055535220202020202020535553522020202020204543484f20202020204e323032363037303420303132303530202020202030313031202020202055aa00ff" | |
| $frame = for ($i=0; $i -lt $hex.Length; $i+=2) { [Convert]::ToByte($hex.Substring($i,2), 16) } | |
| $sw = [Diagnostics.Stopwatch]::StartNew() | |
| $c = New-Object Net.Sockets.TcpClient | |
| $c.Connect("10.101.240.5", 4518) | |
| $s = $c.GetStream() | |
| $s.Write($frame, 0, $frame.Length) | |
| Write-Host "Sent ECHO at $($sw.ElapsedMilliseconds) ms" | |
| Start-Sleep -Milliseconds 500 | |
| if ($s.DataAvailable) { |
| $sw = [System.Diagnostics.Stopwatch]::StartNew() | |
| $client = New-Object System.Net.Sockets.TcpClient | |
| try { | |
| $client.Connect("10.101.240.5", 4518) | |
| Write-Host "Connected at $($sw.ElapsedMilliseconds) ms" | |
| $stream = $client.GetStream() | |
| $stream.ReadTimeout = 15000 | |
| $buf = New-Object byte[] 4096 | |
| try { | |
| $n = $stream.Read($buf, 0, $buf.Length) |
| version: "3.8" | |
| services: | |
| big-coder: | |
| image: vllm/vllm-openai:latest | |
| container_name: big-coder | |
| restart: unless-stopped | |
| runtime: nvidia | |
| environment: | |
| - CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-0,1} |
| /** | |
| * bc-check-onvif.js | |
| * | |
| * This script reports: | |
| * - MyRuleDetector rules (e.g. People Detect, Vehicle Detect, Dog Cat Detect) | |
| * - RuleEngine events such as CellMotionDetector/Motion | |
| * - VideoSource events such as MotionAlarm | |
| * | |
| * Usage: | |
| * node bc-check-onvif.js <ip> <port> <username> <password> |
| { | |
| "openapi": "3.1.0", | |
| "info": { | |
| "version": "0.3.6", | |
| "title": "Bluecherry Server API", | |
| "description": "The Bluecherry Server API allows users to use software to create custom integrations with Bluecherry DVR", | |
| "contact": { | |
| "name": "Bluecherry Team", | |
| "email": "support@bluecherrydvr.com", | |
| "url": "https://github.com/bluecherrydvr/" |
| import requests | |
| import time | |
| import sys | |
| from datetime import datetime | |
| from bs4 import BeautifulSoup | |
| # API credentials | |
| INTERCOM_API_KEY = 'INTERCOM_API_KEY' # Found on Intercom developer hub | |
| CHATWOOT_API_KEY = 'CHATWOOT_API_KEY' # Can NOT be a SuperAdmin account, has to be an admin account. | |
| CHATWOOT_HOST = 'https://support.bluecherrydvr.com' # Just the base URL, script does the rest and will add paths |
| XML example: | |
| ```xml | |
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <event version="2.0" uid="6276" type="a-u-G" how="h-g-i-g-o" time="2024-08-11T21:09:06.000+00:00" start="2024-08-11T21:09:06.000+00:00" icon="f7f71666-8b28-4b57-9fbb-e38e61d33b79/Service/firebrigade.png" stale="2024-08-13T18:12:06.712Z"> | |
| <point lat="38.713837" lon="-91.714066" hae="200.4" ce="9999999.0" le="9999999.0"/> | |
| <detail> | |
| <contact callsign="BRUSH 1106"/> | |
| <usericon iconsetpath="6d781afb-89a6-4c07-b2b9-a89748b6a38f/Service/firebrigade.png"/> | |
| <remarks>No Address</remarks> |
| # Bluecherry configuration file | |
| # Used to be sure we don't use configurations not suitable for us | |
| version = "1.0"; | |
| bluecherry: | |
| { | |
| db: | |
| { | |
| # 0 = sqlite, 1 = pgsql, 2 = mysql |
| #!/bin/bash | |
| subdomain=$1 | |
| email=$2 | |
| token=$3 | |
| if [ "$#" -ne 3 ]; then | |
| echo "Invalid or missing arguments" | |
| exit 1 | |
| fi |