Custom News Feed is a QGIS plugin that lets you display a feed of articles containing a title, date, text, image and link. The information to display is managed in a JSON-file, that can be provided locally or via url. Custom News Feed plugin is helpful if you want to distriubte news articles organisation-wide. News entries can be marked as read, so that they disappear. For news articles this can be done by clicking the related button. Pinned Messages can be shortened/extended by clicking onto the message field itself. News articles can have a start- and/or an end-publishing date. A pinned message needs to have such entries.
Install Custom News Feed directly in QGIS by using the Plugins menu.
The Custom News Feed plugin is licensed under the GPL-3.0 license. Copyright © 2022 GeoWerkstatt GmbH
The JSON-file used to display your custom news has the following properties.
"PanelTitle" : string (mandatory),
"PanelTitleFeed" : string (mandatory),
"PanelTitleFeedRepository" : string (mandatory),
"ReadButtonLabel" : string (mandatory),
"ReadAllButtonLabel" : string (mandatory),
"NewsArticles": array of objects [
{
"Title":string (mandatory),
"Date": string (mandatody),
"Text":string (mandatory),
"LinkUrl":string (optional),
"LinkTitle": string (optional),
"ImageUrl": url (optional),
"StartPublishingDate": iso.datetime (like "2023-05-12T06:00:00.000Z", optional),
"EndPublishingDate": iso.datetime (like "2023-05-12T06:00:00.000Z", optional)
},
{
...
}
],
"LinkSectionTitle" : string (mandatory),
"Links": [
{
"Url":url (optional)
"LinkTitle": string (optional)
},
],
Message which will be displayed at the top of the news articles in green (low importance), yellow (medium importance) or red (high importance)
"PinnedMessage": {
"Text": string (optional),
"Importance": 'high', 'medium' or 'low' (optional),
"StartPublishingDate": iso.datetime (like "2023-05-12T06:00:00.000Z", optional),
"EndPublishingDate": iso.datetime (like "2023-05-12T06:00:00.000Z", optional)
}
"PathToConfigurationFileLabel": string (optional),
"OpenPanelOnNewsCheckBoxLabel": string (optional),
"NewsRefreshInterval": 60
}
A valid entry in this file overwrites the configuration coming from the settings dialog:
[pythonplugins]
# path to the news feed json-file. This setting wins - in the case it exists - against the plugin setting.
customnewsfeedpath=//share/folder/sample_news.json
# possible values: 0: don't open panel if there are new news/ 2: open panel if there are new news
open_on_news=0|2
- Open the OSGeo4W shell and run
pip3 install debugpy
- In QGIS > Settings > Options - System append the Environment variables with
QGIS_PLUGIN_USE_DEBUGGER=debugpy
andQGIS_PLUGINPATH={YourLocalPluginDirectory}
- Install the QGIS plugin Plugin Reloader to enable reloading the plugin without restarting QGIS
- Restart QGIS for the changes to take effect and open the plugin
- Start the debugger in VS Code with the launch configuration Python: Remote Attach