diff --git a/MistWX-i2Me/Config.cs b/MistWX-i2Me/Config.cs index c669240..35b8e57 100644 --- a/MistWX-i2Me/Config.cs +++ b/MistWX-i2Me/Config.cs @@ -485,6 +485,10 @@ public class Config [XmlAnyElement("CheckAlertTimeComment")] public XmlComment CheckAlertTimeComment { get { return new XmlDocument().CreateComment("Sets how long should i2ME wait before grabbing alerts."); } set { } } [XmlElement] public int CheckAlertTimeSeconds { get; set; } = 600; // Defaults to 10 minutes + + [XmlAnyElement("DirectSendComment")] + public XmlComment DirectSendComment { get { return new XmlDocument().CreateComment("Should i2ME directly send Headline/BulletinCrawls records instead of the default BERecord? This is NOT the option if you're aiming for accuracy, but it does help with getting alerts for international locations or having your i2 display a unknown alert as a headline/bulletin."); } set { } } + [XmlElement] public bool DirectSend { get; set; } = false; } [XmlRoot("LocalConfig")] diff --git a/MistWX-i2Me/TimedTasks.cs b/MistWX-i2Me/TimedTasks.cs index 3498234..c216a82 100644 --- a/MistWX-i2Me/TimedTasks.cs +++ b/MistWX-i2Me/TimedTasks.cs @@ -55,9 +55,14 @@ public class TimedTasks serializer.Serialize(sw, bulletinRecord, ns); sw.Close(); } - //sender.SendFile(recordPath, "storeData(QGROUP=__BERecord__,Feed=BERecord)"); - sender.SendFile(await new Headlines().MakeRecord(bulletinRecord), "storeData(QGROUP=__Headline__,Feed=Headline)"); - await new BulletinCrawlsGen().MakeRecord(bulletinRecord, sender); + if (Config.config.AConfig.DirectSend) + { + sender.SendFile(await new Headlines().MakeRecord(bulletinRecord), "storeData(QGROUP=__Headline__,Feed=Headline)"); + await new BulletinCrawlsGen().MakeRecord(bulletinRecord, sender); + } else + { + sender.SendFile(recordPath, "storeData(QGROUP=__BERecord__,Feed=BERecord)"); + } } await Task.Delay(checkInterval * 1000);