Skip to content

v0.0.9 - no source found issue. #24

@wasauce

Description

@wasauce

Hi @spalt -

Thank you for reviving your work! I greatly appreciate it.

I have attempted to get v0.0.9 working but I am running into an issue -- of No source found (see the images).

What works:

  1. Download and install the app
  2. Download the config.txt and use that to load the flickr userid and key.
  3. Restart the device - and when EO1 loads - I get the this "No source found" issue.

Image
Image


I wrote a little script to help me test that my userid and key are functional (see below). and I get

✓ API key works (flickr.test.echo)
✓ User OK: username='igdgwsuk63', nsid='199592339@N03'
✓ Public photos query OK (total=29)

export FLICKR_API_KEY="your_real_key"
export FLICKR_USER_ID="12345678@N00" # NSID form is best
python flickr_check.py

import json
import sys
import urllib.parse
import urllib.request
import os

FLICKR_API_KEY = os.getenv("FLICKR_API_KEY", "YOUR_API_KEY_HERE")
FLICKR_USER_ID = os.getenv("FLICKR_USER_ID", "YOUR_USER_ID_HERE")  # e.g., "12345678@N00"

ENDPOINT = "https://api.flickr.com/services/rest/"

def flickr_get(method: str, **params):
    q = {
        "method": method,
        "api_key": FLICKR_API_KEY,
        "format": "json",
        "nojsoncallback": "1",
        **params,
    }
    url = ENDPOINT + "?" + urllib.parse.urlencode(q)
    with urllib.request.urlopen(url, timeout=10) as resp:
        data = json.load(resp)
    return data

def require_ok(resp, what):
    if resp.get("stat") != "ok":
        code = resp.get("code")
        msg = resp.get("message")
        raise SystemExit(f"{what} failed (code {code}): {msg}")

def main():
    if not FLICKR_API_KEY or "YOUR_API_KEY_HERE" in FLICKR_API_KEY:
        raise SystemExit("Set FLICKR_API_KEY (env var) or put your key in the script.")

    # 1) Basic key test
    echo = flickr_get("flickr.test.echo", test="ping")
    require_ok(echo, "flickr.test.echo")
    print("✓ API key works (flickr.test.echo)")

    # 2) Check user_id is valid/visible
    if not FLICKR_USER_ID or "YOUR_USER_ID_HERE" in FLICKR_USER_ID:
        print("! Skipping user check: set FLICKR_USER_ID to test your user as well.")
    else:
        info = flickr_get("flickr.people.getInfo", user_id=FLICKR_USER_ID)
        require_ok(info, "flickr.people.getInfo")
        username = info["person"]["username"]["_content"]
        nsid = info["person"]["nsid"]
        print(f"✓ User OK: username='{username}', nsid='{nsid}'")

        # 3) Pull a single public photo (if any)
        photos = flickr_get("flickr.people.getPublicPhotos", user_id=FLICKR_USER_ID, per_page=1, page=1)
        require_ok(photos, "flickr.people.getPublicPhotos")
        total = int(photos["photos"]["total"])
        print(f"✓ Public photos query OK (total={total})")

if __name__ == "__main__":
    main()

Do you have any suggestions or thoughts on what I am doing wrong? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions