This commit is contained in:
Chris Barry 2021-05-23 09:11:01 -04:00
parent bf7ae5e299
commit 03e783b524
6 changed files with 29 additions and 10 deletions

View File

@ -1,2 +1,2 @@
# piblur
A little app for raspberry pi to talk to Newsblur
# pi-miniflux
A little app for raspberry pi to talk to miniflux

Binary file not shown.

View File

@ -6,14 +6,13 @@ import os
from datetime import datetime
from io import BytesIO
import base64
import miniflux
load_dotenv()
API_PREFIX = 'https://www.newsblur.com/'
USER_NAME = os.getenv('USERNAME')
PASSWORD = os.getenv('PASSWORD')
FEED_ID = os.getenv('FEED_ID')
API_KEY = os.getenv('API_KEY')
CATEGORY_ID = os.getenv('CATEGORY_ID')
ICON_GUTTER_WIDTH = 40
SPACING = 4

21
poetry.lock generated
View File

@ -61,6 +61,22 @@ type = "legacy"
url = "https://www.piwheels.org/simple"
reference = "piwheels"
[[package]]
name = "miniflux"
version = "0.0.13"
description = "Client library for Miniflux API"
category = "main"
optional = false
python-versions = ">=3.6"
[package.dependencies]
requests = "*"
[package.source]
type = "legacy"
url = "https://www.piwheels.org/simple"
reference = "piwheels"
[[package]]
name = "numpy"
version = "1.19.4"
@ -191,7 +207,7 @@ reference = "piwheels"
[metadata]
lock-version = "1.1"
python-versions = "^3.7"
content-hash = "9a861464dbde2c51311a5d1a1c816a395f1ef3f19f9232459298ecad5b633f8e"
content-hash = "ed8821d2bcf18772fb01906b5afb4b48bc125189b3eebdcbbe5537c9ece0b2fa"
[metadata.files]
certifi = [
@ -206,6 +222,9 @@ idna = [
inky = [
{file = "inky-1.1.1-py3-none-any.whl", hash = "sha256:911a31bc87f658a8a5f6928deff1894234946d9ef8c423602300b855dacf0783"},
]
miniflux = [
{file = "miniflux-0.0.13-py2.py3-none-any.whl", hash = "sha256:283529347d7a84551eea43862a99107f291f1b251bf3bda00e65e926df90317d"},
]
numpy = [
{file = "numpy-1.19.4-cp37-cp37m-linux_armv6l.whl", hash = "sha256:5ddd1dfa2be066595c1993165b4cae84b9866b12339d0c903db7f21a094324a3"},
{file = "numpy-1.19.4-cp37-cp37m-linux_armv7l.whl", hash = "sha256:5ddd1dfa2be066595c1993165b4cae84b9866b12339d0c903db7f21a094324a3"},

View File

@ -1,15 +1,15 @@
[tool.poetry]
name = "pi-blur"
name = "pi-miniflux"
version = "0.1.0"
description = ""
authors = ["Chris Barry <chris@greatjones.co>"]
authors = ["Chris Barry <me@chrisb.xyz>"]
[[tool.poetry.source]]
name = "piwheels"
url = "https://www.piwheels.org/simple/"
[tool.poetry.scripts]
start = "pi_blur.__main__:main"
start = "pi_miniflux.__main__:main"
[tool.poetry.dependencies]
python = "^3.7"
@ -18,6 +18,7 @@ python-dotenv = "^0.15.0"
pillow = "^8.0.1"
inky = "^1.1.1"
"rpi.gpio" = "^0.7.0"
miniflux = "^0.0.13"
[tool.poetry.dev-dependencies]