On This Day in History plugin for TRMNL
This plugin displays the latest entries from the onthisday.com Web page. The Python code contained here needs to scrape the page and is used to generate plugin data.
- Start at usetrmnl.com/plugins
- Find "Private Plugin" and click.
- Click on "Add New".
- Give it a name, select the refresh rate (once a day is sufficient) and select "Webhook" for the strategy. Click "Save" at the top right.
- Note the Plugin UUID.
- Download the
onthisdayinhistory.py
code from this repo and change the line belo 53AB w to have the plugin UUID noted above.
PLUGIN_UUID = "<YOUR PLUGIN UUID>"
- Copy HTML from the ".html" files in this repo and paste the contents in for the four views.
- Run
onthisdayinhistory.py
and it should push data to the TRML plugin. Force a refresh to see if the data populates.
Set up the onthisdayinhistory.py
Python program to run once a day to push new data to TRMNL.