# hackPod


## Spotify on ipod
https://www.youtube.com/watch?v=ZxdhG1OhVng
https://www.youtube.com/watch?v=q0pUPab7Rms&t=0s
https://github.com/dupontgu/retro-ipod-spotify-client
https://hackaday.io/project/177034-spot-spotify-in-a-4th-gen-ipod-2004
http://rsflightronics.com/spotifypod
## Seedsigner
https://www.youtube.com/watch?v=1c5SR8v8l1M
## Wallet
## Cam via 3.5mm jack hole?
https://datasheets.raspberrypi.com/camera/camera-module-2-mechanical-drawing.pdf
https://www.arducam.com/arducam-introduces-8mp-imx219-auto-focus-wide-angle-zero-distortion-and-spy-camera-to-the-nvidia-jetson-nano/
https://www.thingiverse.com/thing:4960837
## Rockbox
rockbox https://www.youtube.com/watch?v=02ZQRkr66qs
## Other ideas
Remote IR Control (via remote control thingie next to 3.5 mm audio jack?)
https://learn.adafruit.com/ir-sensor
https://www.adafruit.com/product/387
Chromecasting
https://github.com/skorokithakis/catt
Put.io
to screen (NIET DOEN, ipod = "remote")
https://elinux.org/Omxplayer
https://github.com/notro/fbtft/wiki/Framebuffer-use
to chromecast
https://github.com/cenkalti/putio.py
Syncing
https://github.com/putdotio/putio-sync/releases/tag/v2.0.46
VOIP / SIP Phone
https://github.com/pjsip/pjproject/tree/master/pjsip-apps/src/pygui
QR Code capture / show
Boarding pass etc
Loyalty cards (delhaize)
## Settings
Screen brightness
Sleep timer
BT Connect
Chromecast connect
Wifi
## Create a wifi hotspot
## Voice recognition
https://cmusphinx.github.io/
## How to develop
Running rpi lite on linux through docker
https://github.com/lukechilds/dockerpi
```docker run -it -v $HOME/.dockerpi:/sdcard lukechilds/dockerpi```
https://github.com/dupontgu/retro-ipod-spotify-client
```sudo curl -sL https://raw.githubusercontent.com/dtcooper/raspotify/0.31.8.1/install.sh | sh```
## Hardware
SD Card
https://www.mediamarkt.be/nl/product/_samsung-geheugenkaart-microsd-evo-plus-2021-512-gb-v30-mb-mc512ka-eu-1978240.html
---
on boot drive
wpa_supplicant.conf file
```
country=US # Your 2-digit country code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="Starlink TB8"
psk="LoveTheLapp!"
}
```
## Finding Wifi networks
https://maskaravivek.medium.com/python-script-to-configure-wifi-on-raspberry-pi-without-reboot-3af07368b3c2
## BananaPi M2 Zero headless install
Download image `Armbian_22.11.0-trunk_Bananapim2zero_bullseye_edge_6.0.9.img.xz` (for example from [here](https://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO)).
Write the image to the SD card then rename `/boot/armbian_first_run_template.txt` to `/boot/armbian_first_run.txt` and change the wifi settings according to your network. For some reason it did not connect to my wifi router, but it worked with an ad-hoc network I created on my laptop.
Also change this section:
```
#Networking:
# Change default network settings
# Set to 1 to apply any network related settings below
FR_net_change_defaults=1
```
Then I could find the IP address of it with either using the `arp -a` command or with `nmap -sn <network>` where `<network>` is the subnet of the wifi (e.g. `192.168.1.1/24`).
After that it is possible to log in as `root` with password `1234` and then it needs to be changed immediately and a new user is created with sudo rights.
## Linux Wifi Hotspot
https://github.com/lakinduakash/linux-wifi-hotspot
WIFI SETTINGS
Disable (bool)
Wifi Hotspot > goto a screen showing on off switch and when switched on you see a qr code
(randomize name and password)
[list of available networks]

Purple: VCC
White: GND
Green: DIN
Orange: CLK
Yellow: CS
Blue: DC > 24
Brown: RST > 25
Gray: BL
On the PI:
Blue: 5V
Red: GPIO 18
Geel: GPIO 24
Zwart: GPIO 25
Orange: GPIO 8
Wit: GPIO 10
Groen: GPIO 11
Wit/Streep: Ground
cmake -DST7789=ON
-DGPIO_TFT_DATA_CONTROL=24
-DGPIO_TFT_RESET_PIN=25
-DSPI_BUS_CLOCK_DIVISOR=30
-DSTATISTICS=0 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DUSE_DMA_TRANSFERS=OFF ..