Build a Bitcoin traffic light with balenaCloud

Please use the thread below to discuss the related blog post:

Hi. I know this project is old but it seems interesting. Would you have time to help me sort this out? I am trying to build > push and it fails. Here is the output:

23:28:01 helium /Users/robertreid/balena-btc-price-tracker
$ git remote add balena [gh_robertreid@git.balena-cloud.com](mailto:gh_robertreid@git.balena-cloud.com):gh_robertreid/balena-btc-price-tracker.git

23:29:51 helium /Users/robertreid/balena-btc-price-tracker
$ git push balena master
The authenticity of host 'git.balena-cloud.com (3.224.47.37)' can't be established.
ECDSA key fingerprint is SHA256:NfwmqnKId5cx1RWpebbEuuM87bCJbdyhzRnqFES9Nnw.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'git.balena-cloud.com,3.224.47.37' (ECDSA) to the list of known hosts.
Enumerating objects: 33, done.
Counting objects: 100% (33/33), done.
Delta compression using up to 4 threads.
Compressing objects: 100% (32/32), done.
Writing objects: 100% (33/33), 1.60 MiB 14.92 MiB/s, done.
Total 33 (delta 6), reused 0 (delta 0)

[Info] Starting build for balena-btc-price-tracker, user gh_robertreid
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1881134/devices
[Info] Building on arm01
[Info] Pulling previous images for caching purposes...
[Success] Successfully pulled cache images
[main] Step 1/6 : FROM resin/rpi-raspbian:latest
[main] # Executing 1 build trigger
[main] Using cache
[main] ---> 5323cc9bb782
[main] Step 2/6 : ENV INITSYSTEM on
[main] Using cache
[main] ---> e1373d87b128
[main] Step 3/6 : RUN apt-get update && apt-get install -yq python3-dev python3-pip python3-rpi.gpio vim wget && apt-get clean && rm -rf /var/lib/apt/lists/*
[main] ---> Running in a5f1e840dbac
[main] Ign [http://archive.raspbian.org](http://archive.raspbian.org/) jessie InRelease
[main] Get:1 [http://archive.raspberrypi.org](http://archive.raspberrypi.org/) jessie InRelease [22.9 kB]
[main] Ign [http://archive.raspbian.org](http://archive.raspbian.org/) jessie Release.gpg
[main] Ign [http://archive.raspbian.org](http://archive.raspbian.org/) jessie Release
[main] Get:2 [http://archive.raspberrypi.org](http://archive.raspberrypi.org/) jessie/main armhf Packages [170 kB]
[main] Err [http://archive.raspbian.org](http://archive.raspbian.org/) jessie/main armhf Packages
[main] 404 Not Found
[main] Err [http://archive.raspbian.org](http://archive.raspbian.org/) jessie/contrib armhf Packages
[main] 404 Not Found
[main] Err [http://archive.raspbian.org](http://archive.raspbian.org/) jessie/non-free armhf Packages
[main] 404 Not Found
[main] Err [http://archive.raspbian.org](http://archive.raspbian.org/) jessie/rpi armhf Packages
[main] 404 Not Found
[main] Err [http://archive.raspbian.org](http://archive.raspbian.org/) jessie/firmware armhf Packages
[main] 404 Not Found
[main] Fetched 193 kB in 5s (33.1 kB/s)
[main] W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/main/binary-armhf/Packages 404 Not Found
[main] W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/contrib/binary-armhf/Packages 404 Not Found
[main] W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/non-free/binary-armhf/Packages 404 Not Found
[main] W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/rpi/binary-armhf/Packages 404 Not Found
[main] W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/firmware/binary-armhf/Packages 404 Not Found
[main] E: Some index files failed to download. They have been ignored, or old ones used instead.
[main]
[main] Removing intermediate container a5f1e840dbac
[main] The command '/bin/sh -c apt-get update && apt-get install -yq python3-dev python3-pip python3-rpi.gpio vim wget && apt-get clean && rm -rf /var/lib/apt/lists/ <em>' returned a non-zero code: 100
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: The command '/bin/sh -c apt-get update && apt-get install -yq python3-dev python3-pip python3-rpi.gpio vim wget && apt-get clean && rm -rf /var/lib/apt/lists/</em> ' returned a non-zero code: 100
[Info] Built on arm01
[Error] Not deploying release.

remote: error: hook declined to update refs/heads/master
To git.balena-cloud.com:gh_robertreid/balena-btc-price-tracker.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '[gh_robertreid@git.balena-cloud.com](mailto:gh_robertreid@git.balena-cloud.com):gh_robertreid/balena-btc-price-tracker.git'

Hey @robertreid looks like some of these libraries on the project are deprecated (3 years old). Let me take a look and try to ressurect this during the week.

I see your issue and feel free to PR the project as well :slight_smile: