USB networking and an on-device scraper (ScreenScraper)

Abierto
#135 7 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

The proposal spans USB gadget modes, System Settings, a C++ ScreenScraper client, Puppy gamelist.xml support, and CI secrets; it does not name source files or tests. Start by checking the roadmap and the existing USB configuration and Puppy media handling. The author offers to split this into separate changes; done criteria for each part need to be agreed with maintainers.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

USB Networking is on the roadmap, so I tried it on my A33. The data port can become a CDC NCM network adapter, which Windows 10 and 11, macOS, Linux and Android drive with no driver to install. The PC shares its connection with it, or an Android phone does through its Ethernet tethering, with the console on the phone's OTG adapter, and udhcpc on the console takes the address. The A33's USB controller has five endpoints each way, so serial, MTP and NCM don't fit together. It works as a mode instead: Files (serial and MTP, the default) or Network (serial and NCM), switched from System Settings. In the default mode the gadget is the same as today, so it shouldn't bring back the tty trouble from #9.

With the internet there, I wrote a small scraper that runs on the console. It asks ScreenScraper about each game by its CRC and size, writes gamelist.xml plus a gamelist..xml with the descriptions in the interface's language, and downloads the picture, and a video if the user wants one, into media/. It's a small C++ program with no libraries that calls curl, so the image only gains libcurl, curl and the CA bundle, about 750 KB. Each user types their own free ScreenScraper account in System Settings. It's working on my console.

ScreenScraper also requires developer credentials for each piece of software. I asked for them for goodluckOS on their forum and they were granted: https://www.screenscraper.fr/forumsujet.php?frub=12&fsuj=26271

They go in at build time from SS_DEVID and SS_DEVPASSWORD, so the CI would need them as secrets. Would you rather request your own developer account for the project, or use the one I got?

Puppy on main only shows icons/.png, so the scraper also needs Puppy to read gamelist.xml. If you're interested, I can split it into small PRs: USB networking first, then gamelist support in Puppy, then the scraper.

Lenguaje dominante
C++
Estrellas
54
Forks
8
Merge medio
16 d 19 h
PR fusionados (30 d)
4

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CodeZombie/goodluckOS

Todos los issues de CodeZombie/goodluckOS

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.