# Build a Bitcoin traffic light with balenaCloud

**URL:** <https://forums.balena.io/t/build-a-bitcoin-traffic-light-with-balenacloud/340832>\
**Category:** Discussions\
**Created:** [July 23, 2021, 4:53pm UTC](https://forums.balena.io/t/build-a-bitcoin-traffic-light-with-balenacloud/340832 "2021-07-23T16:53:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewnhem](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/andrewnhem/32/4284_2.png) [@andrewnhem](https://forums.balena.io/u/andrewnhem)\
**Post date:** [July 23, 2021, 4:53pm UTC](https://forums.balena.io/t/build-a-bitcoin-traffic-light-with-balenacloud/340832/1 "2021-07-23T16:53:34Z")

</div>

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

> **[Build a Bitcoin traffic light with balenaCloud](https://www.balena.io/blog/build-a-bitcoin-traffic-light-with-balenacloud/)**
>
> Follow along and build your own as we hack a traffic light to make a cool Bitcoin value indicator for your desk or office using a Raspberry Pi and balenaCloud. Bitcoin (₿) was initially released at the beginning of January 2009 by an unknown...

---

<div class="post-metadata">

**Author:** ![robertreid](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertreid/32/7025_2.png) [@robertreid](https://forums.balena.io/u/robertreid)\
**Post date:** [November 14, 2021, 5:44am UTC](https://forums.balena.io/t/build-a-bitcoin-traffic-light-with-balenacloud/340832/2 "2021-11-14T05:44:12Z")

</div>

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:

```auto
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'

```

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [November 15, 2021, 12:05pm UTC](https://forums.balena.io/t/build-a-bitcoin-traffic-light-with-balenacloud/340832/3 "2021-11-15T12:05:35Z")

</div>

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](https://github.com/balena-io-playground/balena-btc-price-tracker/issues/1) and feel free to PR the project as well 🙂
