| 
				
					
						 | 
			||
|---|---|---|
| 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
cdto 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.jsonfile to~/.config/nomadlink/creds.jsonand 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
nlinkto/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