Soyuz Add motion detections, timezones, ntp servers#86
Open
USRView wants to merge 10 commits intorosteleset:mainfrom
Open
Soyuz Add motion detections, timezones, ntp servers#86USRView wants to merge 10 commits intorosteleset:mainfrom
USRView wants to merge 10 commits intorosteleset:mainfrom
Conversation
Author
|
Add motion detections, timezones, ntp servers |
subs1stem
requested changes
May 13, 2025
Collaborator
There was a problem hiding this comment.
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:2301992032025613@192.168.13.19>;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:ic2301992032025613@skd.my-gis.ru: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:ic2301992032025613@skd.my-gis.ru: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:ic2301992032025613@skd.my-gis.ru: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
| 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]); |
Collaborator
There was a problem hiding this comment.
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); |
Collaborator
There was a problem hiding this comment.
PHP Fatal error: Uncaught Error: Call to undefined method hw\ip\camera\soyuz\soyuz::convertResponseToArray()
Collaborator
There was a problem hiding this comment.
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
Author
|
Все пофиксил |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add motion detections, timezones, ntp servers