{"id":15306735,"url":"https://github.com/t0mer/redalert-windows-service","last_synced_at":"2026-05-04T06:32:07.027Z","repository":{"id":36362541,"uuid":"223805518","full_name":"t0mer/Redalert-Windows-Service","owner":"t0mer","description":"Redalert Windows service is a service that listen to redalerts and publishes it using Mqtt or Telegram bot","archived":false,"fork":false,"pushed_at":"2022-10-19T06:23:17.000Z","size":5392,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T20:45:40.448Z","etag":null,"topics":["csharp","home-automation","mosquitto","mqtt","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t0mer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-24T20:28:01.000Z","updated_at":"2022-09-23T12:50:25.000Z","dependencies_parsed_at":"2023-01-17T01:32:45.903Z","dependency_job_id":null,"html_url":"https://github.com/t0mer/Redalert-Windows-Service","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/t0mer%2FRedalert-Windows-Service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2FRedalert-Windows-Service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2FRedalert-Windows-Service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2FRedalert-Windows-Service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t0mer","download_url":"https://codeload.github.com/t0mer/Redalert-Windows-Service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245892593,"owners_count":20689521,"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":["csharp","home-automation","mosquitto","mqtt","telegram","telegram-bot"],"created_at":"2024-10-01T08:07:11.102Z","updated_at":"2026-05-04T06:32:06.987Z","avatar_url":"https://github.com/t0mer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Red Alert Windows Service\n__________________________________________\n\nc# based windows service that reads json from [Oref Website](https://www.oref.org.il/) and publishes it over MQTT Protocol and/or Telegram Bot.\n\n## Installation\nIn order to install the service download the code and compile it. than move the binary files as listed below in to a new folder under Program Files:\n - RedAlert.exe\n - RedAlert.exe.config\n - Newtonsoft.Json.dll\n - M2Mqtt.Net.dll\n And run the following command from Command line (Make sure to run as admin):\n```\n c:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319 \"c:\\Program Files\\RedAlert\\RedAlert.exe\"\n```\n\n## Service configuration\n### RedAlert.exe.config\nIn order to use this service, some configuration need to be done.\nOpen RedAlert.exe.config in any text editor and edit the required settings as follows:\n```xml\n \u003cappSettings\u003e\n    \u003c!--General Settings--\u003e\n    \u003cadd key=\"IsDebugMode\" value=\"false\"/\u003e\n    \n    \u003c!--Select Alert Region or * for any--\u003e\n    \u003cadd key=\"City\" value=\"\"/\u003e\n    \n    \u003c!--Telegrem Bot Settings--\u003e\n    \u003cadd key=\"IsTelegramEnabled\" value=\"true\"/\u003e\n    \u003cadd key=\"telegramApi\" value=\"\"/\u003e\n    \u003cadd key=\"channelId\" value=\"orefredalert\"/\u003e\n    \u003cadd key=\"telegramApiUrl\" value=\"https://api.telegram.org/bot{0}/sendMessage?chat_id={1}\u0026amp;text={2}\"/\u003e\n    \n    \u003c!--Mqtt Settings--\u003e\n    \u003cadd key=\"IsMqttEnabled\" value=\"true\"/\u003e\n    \u003cadd key=\"MqttHost\" value=\"\"/\u003e\n    \u003cadd key=\"MqttUser\" value=\"\"/\u003e\n    \u003cadd key=\"MqttPass\" value=\"\"/\u003e\n\n    \u003c!--UDP Settings--\u003e\n    \u003cadd key=\"IsUdpEnabled\" value=\"\"/\u003e\n    \u003cadd key=\"UdpAddress\" value=\"\"/\u003e\n    \u003cadd key=\"UdpPort\" value=\"\"/\u003e\n   \n    \n    \n  \u003c/appSettings\u003e\n```\n[How to create Telgram Bot](https://techblog.co.il/2019/11/%D7%A9%D7%9C%D7%99%D7%97%D7%AA-%D7%94%D7%95%D7%93%D7%A2%D7%95%D7%AA-%D7%9C%D7%A2%D7%A8%D7%95%D7%A5-%D7%98%D7%9C%D7%92%D7%A8%D7%9D-%D7%91%D7%93%D7%A8%D7%9A-%D7%94%D7%A7%D7%9C%D7%94/)\n\n## Usage\n### Adding Sensor in Home-Assistant\n#### Get full json (including date and id)\n```yaml\n  - platform: mqtt\n    name: \"Red Alert\"\n    state_topic: \"/redalert/\"\n    # unit_of_measurement: '%'\n    icon: fas:broadcast-tower\n    value_template: \"{{ value_json }}\"\n    qos: 1\n```\n\n#### Get json with alert areas only\n```yaml\n  - platform: mqtt\n    name: \"Red Alert\"\n    state_topic: \"/redalert/\"\n    # unit_of_measurement: '%'\n    icon: fas:broadcast-tower\n    value_template: \"{{ value_json.data }}\"\n    qos: 1\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft0mer%2Fredalert-windows-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft0mer%2Fredalert-windows-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft0mer%2Fredalert-windows-service/lists"}