URL request for receiving news at address:
If there is no news for the selected language, news for the default language is read - en (English).
If you don't need news in the default language in the absence of news in the selected language, then add the LocalNewsOnly parameter, for example:
If there is no news, then the http request returns the text "no news".
The command for adding news has the format:
news [-text <news text> | -file <filename with news>] -lang <language code>
<language code> has the following format: en - English, ru - Russian, fr - French, etc.
If you do not specify the -lang parameter, then news will be added for the default language - English. News text can be added directly from the command or from a file of your choice.
Examples of commands:
News is added from the command for the Russian language:
news -text "пример новостей" -lang ru
News is added from a file for the default language - English:
news -file /home/news.txt
To enable sending news in the settings file of the <appname> -node.cfg node, you need to write the following line: