Kyle Isom 225399690e | ||
---|---|---|
nomad | ||
.gitignore | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go | ||
storage.go |
README.md
nomadlink
nomadlink is a tool for syncing a Nomad RSS feed to pnut.
The original version was running as a cronjob on a Raspberry Pi. I've modified it to run on a gokrazy instance.
Previous version instruction
Raspberry Pi setup
-
Install mercurial:
sudo apt install mercurial
-
Fetch the repository and
cd
to the directory:hg clone https://hg.sr.ht/~kisom/nlink && cd nlink
-
Make the config directory:
mkdir -p ~/.config/nomadlink
-
Create a new Pnut dev app from the Pnut developer page.
-
Copy the
creds.json
file to~/.config/nomadlink/creds.json
and fill it out with the correct details from the Pnut dev page. -
Run
go build
. -
Verify the build works by running
./nlink -i -m
. This will create the database and mark all the posts you currently have on nomad as already posted. -
Copy
nlink
to/usr/local/bin
:sudo cp nlink /usr/local/bin/
-
Edit your crontab (
crontab -e
) and add the following line:
*/15 * * * * /usr/local/bin/nlink -c /home/$USER/.config/nomadlink/creds.json -d /home/$USER/.config/nomadlink/nomadlink.db
- Eventually, posts should start showing up.
Optional
- Install postfix and set it up as a local site.
sudo apt install postfix bsd-mailx