Skip to content

Commit

Permalink
changes hardcoded listmonk list ID to the list ID from the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-van-Barlingen committed Jul 31, 2024
1 parent b3e4fa6 commit c2dc44c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
rss2newsletter:
image: rss2newsletter
image: robertvanbarlingen/rss2newsletter
container_name: rss2newsletter
restart: unless-stopped
volumes:
Expand Down
2 changes: 1 addition & 1 deletion rss2newsletter
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class rss2newsletter:
json_data = {
"name": name,
"subject": name,
"lists": [1],
"lists": [int(self.config["LISTMONK"]["LIST_ID"])],
"content_type": "richtext",
"body": body,
"messenger": "email",
Expand Down
14 changes: 7 additions & 7 deletions rss2newsletter.conf
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[FEED]
# Full URL to your website's feed
URL = YOUR_FEED_URL
URL = https://edgeofdusk.com/newsletter/rss.xml

# How often to check for new feed entries in seconds
POLL_INTERVAL = 300
POLL_INTERVAL = 30

# rss2newsletter uses this file to keep track of new feed entries
PROCESSED_ENTRIES_FILE = processed_entries.txt


[LISTMONK]
# Full URL to listmonk server
URL = http://localhost:9000
URL = https://listmonk.edgeofdusk.com

# Credentials
USERNAME = YOUR_USERNAME
PASSWORD = YOUR_PASSWORD
USERNAME = robert
PASSWORD = MmIhr4THeBCh5fUv

# The ID of your "rss2newsletter" list (create this list in listmonk)
LIST_ID = 1
LIST_ID = 3

# Use this for testing, campaigns will be created but no emails will be sent out (one is true, zero is false)
DRY_RUN = 1
DRY_RUN = 0


[NEWSLETTER]
Expand Down

0 comments on commit c2dc44c

Please sign in to comment.