-
Notifications
You must be signed in to change notification settings - Fork 24
Soyuz Add motion detections, timezones, ntp servers #86
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
base: main
Are you sure you want to change the base?
Conversation
|
Add motion detections, timezones, ntp servers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing of some messages failed:
SOYUZ syslog server running on UDP port 45460 || NAT is false || mode: debug
13.05.2025, 14:33:58 || 192.168.13.19 || reg: sip:domain.com:5060 (prio 0): Register: Operation timed out
13.05.2025, 14:33:58 || 192.168.13.19 || New Baresip EVENT: {"event":true,"type":"REGISTER_FAIL","class":"register","accountaor":"sip:domain.com:5060","param":"Operation timed out"}
Parse message failed: <131>May 13 11:34:47 skdsingle[905]: Unauthorized request. IP:192.168.13.60
REQUEST:GET /ping? HTTP/1.1
Host: 192.168.13.19:8088
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0
Parse message failed: <131>May 13 11:34:47 skdsingle[905]: Unauthorized request. IP:192.168.13.60
REQUEST:GET /GP_update?time= HTTP/1.1
Host: 192.168.13.19:8088
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome
Parse message failed: <131>May 13 11:34:47 skdsingle[905]: Unauthorized request. IP:192.168.13.60
REQUEST:GET /GP_update?time= HTTP/1.1
Host: 192.168.13.19:8088
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome
Parse message failed: <131>May 13 11:34:48 skdsingle[905]: Unauthorized request. IP:192.168.13.60
REQUEST:GET /GP_update?time= HTTP/1.1
Host: 192.168.13.19:8088
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome
Parse message failed: <131>May 13 11:34:48 skdsingle[905]: Unauthorized request. IP:192.168.13.60
REQUEST:GET /ping? HTTP/1.1
Host: 192.168.13.19:8088
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0
Parse message failed: <14>May 13 11:35:12 : password for 'api' changed
13.05.2025, 14:35:15 || 192.168.13.19 || SEND TO BARESIP MESSAGE: {"command":"uadelall"}
13.05.2025, 14:35:15 || 192.168.13.19 || New Baresip EVENT: {"event":true,"type":"UNREGISTERING","class":"register","accountaor":"sip:domain.com:5060"}
13.05.2025, 14:35:15 || 192.168.13.19 || New Baresip RESPONSE: {"response":true,"ok":true,"data":"\n--- User Agents (0) ---\n\n"}
13.05.2025, 14:35:15 || 192.168.13.19 || SEND TO BARESIP MESSAGE: {"command":"uanew","params":"<sip:[email protected]>;auth_pass=none;regint=0;answermode=manual"}
...
...
...
13.05.2025, 14:51:22 || 192.168.13.19 || New Baresip EVENT: {"event":true,"type":"REGISTER_OK","class":"register","accountaor":"sip:[email protected]:10750","param":"200 OK"}
13.05.2025, 14:52:15 || 192.168.13.19 || New Baresip EVENT: {"event":true,"type":"REGISTER_OK","class":"register","accountaor":"sip:[email protected]:10750","param":"200 OK"}
Parse message failed: <131>May 13 11:52:31 skdsingle[2080]: Unauthorized request. IP:192.168.13.60
REQUEST:GET /GP_update?time= HTTP/1.1
Host: 192.168.13.19:8088
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
13.05.2025, 14:53:08 || 192.168.13.19 || New Baresip EVENT: {"event":true,"type":"REGISTER_OK","class":"register","accountaor":"sip:[email protected]:10750","param":"200 OK"}
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
Parse message failed: <3>May 13 11:53:46 kernel: goke-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
server/hw/ip/common/soyuz/soyuz.php
Outdated
| public function configureNtp(string $server, int $port = 123, string $timezone = 'Europe/Moscow'): void | ||
| { | ||
| $this->apiCall('/v2/system/tz', 'PUT', ['tz' => $timezone]); | ||
| $this->apiCall('/v2/system/ntp', 'PUT', ['ntp'=>[$server]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP Fatal error: During class fetch: Uncaught ParseError: Unclosed '[' does not match ')'
| protected function getMotionDetectionConfig(): array | ||
| { | ||
| $rawParams = $this->apiCall('/v2/camera/md', 'GET', []); | ||
| $params = $this->convertResponseToArray($rawParams); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP Fatal error: Uncaught Error: Call to undefined method hw\ip\camera\soyuz\soyuz::convertResponseToArray()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subs1stem@prodesk:~/Devel/rbt/server$ php cli.php --autoconfigure-device=domophone --id=11 --first-time
PHP Warning: Undefined array key "capacity" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 456
PHP Warning: Undefined array key "matrix" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 495
PHP Warning: foreach() argument must be of type array|object, null given in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 497
PHP Warning: Undefined array key "matrix" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 495
PHP Warning: foreach() argument must be of type array|object, null given in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 497
PHP Warning: Undefined array key "matrix" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 495
PHP Warning: foreach() argument must be of type array|object, null given in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 497
PHP Warning: Undefined array key "capacity" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 456
PHP Warning: Undefined array key "" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 616
Reconfiguring dtmf... Done!
Reconfiguring eventServer... Done!
Reconfiguring sip... Done!
Reconfiguring apartments... 1... 11... 12... 112... Done!
Reconfiguring rfids... 0000003375EACE... 00000000000001... 00000000000002... 00000000000003... 00000000000004... 00000000000005... 00000000000006... 00000000000007... 00000000000008... 00000000000009... Done!
Reconfiguring cmsModel... PHP Warning: Undefined array key "matrix" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 495
PHP Warning: foreach() argument must be of type array|object, null given in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 497
PHP Warning: Undefined array key "matrix" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 495
PHP Warning: foreach() argument must be of type array|object, null given in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 497
PHP Warning: Undefined array key "matrix" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 495
PHP Warning: foreach() argument must be of type array|object, null given in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 497
PHP Warning: Undefined array key "capacity" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 456
PHP Warning: Undefined array key "" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 616
PHP Warning: Undefined array key "capacity" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 456
PHP Warning: Undefined array key "" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 328
PHP Warning: Undefined array key "capacity" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 456
PHP Warning: Undefined array key "" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 98
Done!
Reconfiguring matrix... PHP Warning: Undefined array key "capacity" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 456
PHP Warning: Undefined array key "" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 328
PHP Warning: Undefined array key "capacity" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 456
PHP Warning: Undefined array key "" in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 98
Done!
Reconfiguring ntp... Done!
Reconfiguring tickerText... Done!
PHP Warning: Trying to access array offset on false in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/soyuz/soyuz.php on line 464
PHP Fatal error: Uncaught TypeError: hw\SmartConfigurator\ConfigurationBuilder\DomophoneConfigurationBuilder::addDtmf(): Argument #1 ($code1) must be of type string, null given, called in /home/subs1stem/Devel/rbt/server/hw/ip/domophone/domophone.php on line 25 and defined in /home/subs1stem/Devel/rbt/server/hw/SmartConfigurator/ConfigurationBuilder/DomophoneConfigurationBuilder.php:103
Stack trace:
#0 /home/subs1stem/Devel/rbt/server/hw/ip/domophone/domophone.php(25): hw\SmartConfigurator\ConfigurationBuilder\DomophoneConfigurationBuilder->addDtmf()
#1 /home/subs1stem/Devel/rbt/server/hw/SmartConfigurator/SmartConfigurator.php(159): hw\ip\domophone\domophone->getCurrentConfig()
#2 /home/subs1stem/Devel/rbt/server/hw/SmartConfigurator/SmartConfigurator.php(80): hw\SmartConfigurator\SmartConfigurator->loadDeviceConfig()
#3 /home/subs1stem/Devel/rbt/server/hw/autoconfigure_device.php(64): hw\SmartConfigurator\SmartConfigurator->makeConfiguration()
#4 /home/subs1stem/Devel/rbt/server/cli/autoconfig.php(35): autoconfigure_device()
#5 /home/subs1stem/Devel/rbt/server/cli.php(98): cli\autoconfig->exec()
#6 /home/subs1stem/Devel/rbt/server/cli.php(475): cli()
#7 {main}
thrown in /home/subs1stem/Devel/rbt/server/hw/SmartConfigurator/ConfigurationBuilder/DomophoneConfigurationBuilder.php on line 103add protected function convertResponseToArray
|
Все пофиксил |
Add motion detections, timezones, ntp servers