{"id":26358285,"url":"https://github.com/spoje-net/pohoda-client-checker","last_synced_at":"2025-03-16T14:27:36.232Z","repository":{"id":202612151,"uuid":"707587772","full_name":"Spoje-NET/pohoda-client-checker","owner":"Spoje-NET","description":"Check connection to Stormware mServer","archived":false,"fork":false,"pushed_at":"2025-01-02T11:19:52.000Z","size":396,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-02T11:31:47.538Z","etag":null,"topics":["checker","mserver","pohoda"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spoje-NET.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-20T08:23:28.000Z","updated_at":"2025-01-02T11:04:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a9cceef-328c-491f-befb-23be0a994ef6","html_url":"https://github.com/Spoje-NET/pohoda-client-checker","commit_stats":null,"previous_names":["spoje-net/pohoda-client-config","spoje-net/pohoda-client-checker"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fpohoda-client-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fpohoda-client-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fpohoda-client-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fpohoda-client-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spoje-NET","download_url":"https://codeload.github.com/Spoje-NET/pohoda-client-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243881123,"owners_count":20362901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["checker","mserver","pohoda"],"created_at":"2025-03-16T14:27:35.758Z","updated_at":"2025-03-16T14:27:36.224Z","avatar_url":"https://github.com/Spoje-NET.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pohoda Client Checker\n=====================\n\n![ Pohoda Client Config logo]( pohoda-client-checker.svg?raw=true)\n\nCheck mServer availbility\n\n\n![Connection OK](connection-success.png?raw=true)\n\n```json\n{\n   \"message\":\"Response from POHODA mServer\",\n   \"name\":\"novak\",\n   \"server\":\"http:\\/\\/SE-APP01-NEW:10010\",\n   \"status\":\"idle\",\n   \"processing\":\"0\"\n}\n```\n\nExample of unsuccessfull test\n\n```\n\"/usr/bin/php\" \"/home/vitex/Projects/Spoje/pohoda-client-checker/src/pohoda-checker.php\"\n01/02/2025 10:43:18 ⚙ ❲mPohoda Check⦒mServer\\Client❳ mPohoda Check EaseCore 1.45.0 (PHP 8.3.6) mServer http://api@10.11.25.23:10010 PHPmServer vdev-main\n{\n    \"message\": \"Failed to connect to 10.11.25.23 port 10010 after 133252 ms: Couldn't connect to server\",\n    \"diag\": {\n        \"url\": \"http:\\/\\/10.11.25.23:10010\\/status\",\n        \"content_type\": null,\n        \"http_code\": 0,\n        \"header_size\": 0,\n        \"request_size\": 0,\n        \"filetime\": -1,\n        \"ssl_verify_result\": 0,\n        \"redirect_count\": 0,\n        \"total_time\": 133.252747,\n        \"namelookup_time\": 3.9e-5,\n        \"connect_time\": 0,\n        \"pretransfer_time\": 0,\n        \"size_upload\": 0,\n        \"size_download\": 0,\n        \"speed_download\": 0,\n        \"speed_upload\": 0,\n        \"download_content_length\": -1,\n        \"upload_content_length\": -1,\n        \"starttransfer_time\": 0,\n        \"redirect_time\": 0,\n        \"redirect_url\": \"\",\n        \"primary_ip\": \"\",\n        \"certinfo\": [],\n        \"primary_port\": 0,\n        \"local_ip\": \"\",\n        \"local_port\": 0,\n        \"http_version\": 0,\n        \"protocol\": 0,\n        \"ssl_verifyresult\": 0,\n        \"scheme\": \"\",\n        \"appconnect_time_us\": 0,\n        \"connect_time_us\": 0,\n        \"namelookup_time_us\": 39,\n        \"pretransfer_time_us\": 0,\n        \"redirect_time_us\": 0,\n        \"starttransfer_time_us\": 0,\n        \"total_time_us\": 133252747,\n        \"effective_method\": \"POST\",\n        \"capath\": \"\\/etc\\/ssl\\/certs\",\n        \"cainfo\": \"\\/etc\\/ssl\\/certs\\/ca-certificates.crt\",\n        \"when\": \"0.12675300 1735814732\"\n    },\n    \"status\": false\n}01/02/2025 10:45:32 🌼 ❲mPohoda Check⦒mServer\\Client❳ Saving result to php://stdout\nDone.\n01/02/2025 10:45:32 💀 ❲mPohoda Check⦒mServer\\Client❳ 0: Curl Error (HTTP 0): Failed to connect to 10.11.25.23 port 10010 after 133252 ms: Couldn't connect to server\n01/02/2025 10:45:32 💀 ❲mPohoda Check⦒mServer\\Client❳ Connection problem\n01/02/2025 10:45:32 💀 ❲mPohoda Check⦒mServer\\Client❳ No XML response\n\n```\n\n![Connection Problem](connection-problem.png?raw=true)\n\n```json\n{\n   \"status\":false,\n   \"message\":\"Failed to connect to 10.11.25.23 port 10011 after 130261 ms: Couldn't connect to server\"\n}\n```\n\nPohoda transaction report\n-------------------------\n\n\n\n```json\n{\n    \"source\": \"Pohoda\\\\BankProbe\",\n    \"account\": \"6465656645\",\n    \"in\": {\n        \"27\": 629.2,\n        \"28\": 629.2,\n        \"29\": 968,\n        \"30\": 1452,\n        \"31\": 4840,\n        \"32\": 484,\n        \"33\": 2613.6,\n        \"34\": 1282.6,\n        \"35\": 968\n    },\n    \"out\": {\n        \"22\": 41805.55,\n        \"24\": 41805.55,\n        \"25\": 41805.55,\n        \"26\": 41805.55,\n        \"36\": 99,\n        \"37\": 1669.56,\n        \"38\": 15.84\n    },\n    \"in_total\": 9,\n    \"out_total\": 7,\n    \"in_sum_total\": 13866.6,\n    \"out_sum_total\": 169006.6,\n    \"iban\": \"xxxx\",\n    \"from\": \"2024-09-01\",\n    \"to\": \"2024-09-30\"\n}\n```\n\nConfiguration\n-------------\n\nFirst command parameter is path to .env file. \nIf no file is provided use invironment variables instead.\n\n```env\nEASE_LOGGER=console\nPOHODA_URL=http://mserver.intranet:10010\nPOHODA_USERNAME=somelogin\nPOHODA_PASSWORD=somepass\nPOHODA_ICO=12345678\nPOHODA_TIMEOUT=60\nPOHODA_COMPRESS=false\nPOHODA_DEBUG=true\nREPORT_SCOPE=yesterday\n```\n\nScopes\n------\n\n * `yesterday`\n * `two_days_ago`\n * `last_week`\n * `current_month`\n * `last_month`\n * `last_two_months`\n * `previous_month`\n * `two_months_ago`\n * `this_year`\n * `January`  // 1\n * `February` // 2\n * `March`    // 3\n * `April`    // 4\n * `May`      // 5\n * `June`     // 6\n * `July`     // 7\n * `August`   // 8\n * `September`// 9\n * `October`  // 10\n * `November` // 11\n * `December` // 12\n\n\nSee also:\n\n* [PHP Pohoda Connector](https://github.com/VitexSoftware/PHP-Pohoda-Connector) library\n* [PohodaCTL](https://github.com/Spoje-NET/pohodactl)\n\nMultiFlexi\n----------\n\n**Pohoda Client Checker** is ready for run as [MultiFlexi](https://multiflexi.eu) application.\nSee the full list of ready-to-run applications within the MultiFlexi platform on the [application list page](https://www.multiflexi.eu/apps.php).\n\n[![MultiFlexi App](https://github.com/VitexSoftware/MultiFlexi/blob/main/doc/multiflexi-app.svg)](https://www.multiflexi.eu/apps.php)\n\nInstallation\n------------\n\n\n```shell\nsudo apt install lsb-release wget apt-transport-https bzip2\n\n\nwget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg\necho \"deb [signed-by=/etc/apt/trusted.gpg.d/vitexsoftware.gpg]  https://repo.vitexsoftware.com  $(lsb_release -sc) main\" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list\nsudo apt update\n\nsudo apt install pohoda-client-checker\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoje-net%2Fpohoda-client-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspoje-net%2Fpohoda-client-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoje-net%2Fpohoda-client-checker/lists"}