{"id":21305425,"url":"https://github.com/vinniko/sauep","last_synced_at":"2026-05-20T09:04:49.665Z","repository":{"id":48376125,"uuid":"298197286","full_name":"Vinniko/SAUEP","owner":"Vinniko","description":"🏭 Energy analysis and metering system for heavy industry ","archived":false,"fork":false,"pushed_at":"2021-08-12T13:38:23.000Z","size":8894,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T08:43:50.853Z","etag":null,"topics":["asp-net-core","csharp","http","net-core","rest-api","sql","tcp","tcp-server","tcp-server-client","tcp-socket","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Vinniko.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}},"created_at":"2020-09-24T07:09:27.000Z","updated_at":"2022-12-28T11:52:02.000Z","dependencies_parsed_at":"2022-08-24T14:49:53.149Z","dependency_job_id":null,"html_url":"https://github.com/Vinniko/SAUEP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FSAUEP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FSAUEP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FSAUEP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FSAUEP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vinniko","download_url":"https://codeload.github.com/Vinniko/SAUEP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243779951,"owners_count":20346784,"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":["asp-net-core","csharp","http","net-core","rest-api","sql","tcp","tcp-server","tcp-server-client","tcp-socket","wpf"],"created_at":"2024-11-21T16:17:59.283Z","updated_at":"2026-05-20T09:04:48.379Z","avatar_url":"https://github.com/Vinniko.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Electricity analysis and metering system\n---------------------------------------------------------------------------------------------\n1. Установка\n---------------------------------------------------------------------------------------------\nСклонировать репозиторий:\n\u003egit clone https://github.com/Vinniko/SAUEP.git\n\nНа сервере создать базу данных PostgreSQL, например:\n\u003esudo -i -u postgres\n\u003epsql\n\u003eCREATE DATABASE MyDatabase\n\nТеперь необходимо поднять схему данных:\n\u003epgrestore -U postgres -d MyDatabase -1 ../SAUEPDump.sql\n\nНеобходимо настроить подключение к базе данных в модeле ApiServer.\nДля этого необходимо перейти в ./SAUEP.ApiServer/Connections\nИ выполнить команду:\n\u003ecp Connection.json.example Connection.json\n\nПример заполнения: \n\u003e{\n\u003e  \"Host\": \"localhost\",\n\u003e  \"Username\": \"postgres\",\n\u003e  \"Password\": \"root\",\n\u003e  \"Database\":  \"MyDatabase\"\n\u003e}\n\nДля изменения хоста и порта под которым запускается ApiServer, перейдем в папку ./SAUEP.ApiServer/Properties/launchSettings.json\nи изменим поля: applicationUrl и sslPort.\n\nЗапуск ApiServer. \nПерейдем в папку ./SAUEP.ApiServer/ и выполним команду \n\u003edotnet publish --configuration Release\n\nПосле выполнения перейдем в папку ./bin/Release/netcoreapp3.1 и выполним команду:\n\u003edotnet SAUEP.ApiServer.dll \u0026\n\nДалее настроим TcpServer.\nНастроим подключение к базе по аналогии с ApiServer.\nПерейдем в ./SAUEP.TCPServer/Connections/Connection.json\nПример заполнения: \n\u003e{\n\u003e  \"Host\": \"localhost\",\n\u003e  \"Username\": \"postgres\",\n\u003e  \"Password\": \"root\",\n\u003e  \"Database\":  \"MyDatabase\"\n\u003e}\n\nЧтобы поменять порты и хост под которыми запускается TcpServer, необходимо открыть файл./SAUEP.TCPServer/Models/SocketModel.cs \nПример настройки:\n\u003eprivate const int _listenPort = 8005;\n\u003eprivate const int _sayPort = 8003;\n\u003eprivate string _ipAddress = \"127.0.0.1\";\n\nСоздадим релиз версию в папке ./SAUEP.TCPServer:\n\u003edotnet publish --configuration Release\n\nИ запустим сервер из папки ./SAUEP.TCPServer/bin/Release/ командой:\n\u003edotnet SAUEP.TCPServer.dll \u0026\n\nНастроим тестовую версию DeviceClient:\nНастроим подключение к базе.\nПерейдем в ./SAUEP.DeviceClient/Connections\nИ выполним команду:\n\u003ecp Connection.json.example Connection.json\n\nПример заполнения: \n\u003e{\n\u003e  \"Host\": \"localhost\",\n\u003e  \"Username\": \"postgres\",\n\u003e  \"Password\": \"root\",\n\u003e  \"Database\":  \"MyDatabase\"\n\u003e}\n\nЧтобы поменять порт и хост под которыми запускается DeviceServer, необходимо открыть ./SAUEP.DeviceClient/Configs\nИ выполнить команду:\n\u003ecp Config.json.example Config.json\n\nПосле необходимо настроить конфиг. Например:\n\u003e{ \n\u003e   \"Ip\": \"127.0.0.1\", \n\u003e   \"Port\": 8005\n\u003e}\n\nСоздадим релиз версию в папке ./SAUEP.DeviceClient:\n\u003edotnet publish --configuration Release\n\nИ запустим клиент устройств из папки ./SAUEP.DeviceClient/bin/Release/ командой:\n\u003edotnet SAUEP.DeviceClient.dll \u0026\n\nЗапустить Desktop-клиент можно только под Windows. \nНастроим подключение к ApiServer. \nОткроем файл ./Core/Connections/Connection.json и изменим ConnectionUrl на хост под которым запущен ApiServer. \nНапример:\n\u003e{\n\u003e  \"ConnectionUrl\": \"http://localhost:53773/\"\n\u003e}\n\nВ файле ./Core/Models/SocketModel.cs\nНастроим _listenPort и _ipAddress сервера:\n\u003eprivate const int _listenPort = 8003;\n\u003eprivate string _ipAddress = \"127.0.0.1\";\n\nМожно запускать SAUEP.exe\n\n---------------------------------------------------------------------------------------------\n2. Связь\n---------------------------------------------------------------------------------------------\n\n\u003cbr\u003e Email: vinnik_21@bk.ru / vinniko333@gmail.com\n\u003cbr\u003e Telegram: https://t.me/vinnik0\n\u003cbr\u003e LinkedIn: https://www.linkedin.com/in/алексей-винник-7450a5208/\n\u003cbr\u003e HeadHunter: https://spb.hh.ru/resume/f658e91bff090474030039ed1f5a4141446844\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinniko%2Fsauep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinniko%2Fsauep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinniko%2Fsauep/lists"}