Jump to content

buzzkillb

Moderators
  • Content Count

    230
  • Joined

  • Last visited

  • Days Won

    33
  • Feedback

    N/A

buzzkillb last won the day on March 13

buzzkillb had the most liked content!

Community Reputation

134 Excellent

4 Followers

About buzzkillb

  • Rank
    Senior Denarian

Personal Information

  • DNR Address
    DBuzzkiLLrF4aTeSbYGWUD9bxKhud9DSiV

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. The QT and wallpaper is in home/pi/Denarius which you probably have to chmod to execute the QT file. Or both QT and daemon are in /usr/local/bin and should work from there This all is a work in progress as it takes nearly 10 hours to do a full build and then burn the image and test it out.
  2. If someone wants to try the built image for CLI or Desktop. Torrent link or magnet below. magnet:?xt=urn:btih:70205282493A91F2DB9DE84207A2B744D0DCC621&dn=2019-03-16%20Denariian&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce 2019-03-16 Denariian.torrent
  3. this is the 2 lines I used to compile QT on Ubuntu 18.10 qmake "USE_UPNP=1" "USE_QRCODE=1" LIBS=-lboost_chrono OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro make
  4. revised steps so its a bit more obvious you may need the swap file to compile
  5. Try this OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -f makefile.unix
  6. Then to combine 2 screens for a cronjob. denarius.sh #!/bin/bash python2 stats.py sleep 200 python2 latest.py chmod +x denarius.sh crontab -e and insert */5 * * * * /home/pi/denarius.sh Seems like an easy way to scroll through different screens.
  7. Now for a block height and total supply screen. latest.py #!/usr/bin/env python # -*- coding: utf-8 -*- import urllib, json from inky import InkyPHAT inky_display = InkyPHAT("yellow") inky_display.set_border(inky_display.WHITE) from PIL import Image, ImageFont, ImageDraw print("""Inky pHAT: Denarius displays blockchain information. """) img = Image.new("P", (inky_display.WIDTH, inky_display.HEIGHT)) draw = ImageDraw.Draw(img) from font_fredoka_one import FredokaOne #font = ImageFont.truetype("/home/pi/fonts/OpenSans-SemiBold.ttf", 20) font = ImageFont.truetype(FredokaOne, 19) url = "https://www.coinexplorer.net/api/v1/D/block/latest" response = urllib.urlopen(url) data = json.loads(response.read()) height = data['result']['height'] heighttext = ("Height: " + str(height)) supply = data['result']['supplyOnBlock'] supplytext = ("Supply: " + str(supply)) stats = (heighttext + '\n' + supplytext) # Load our backdrop image img = Image.open("/home/pi/d-text-logo.png") draw = ImageDraw.Draw(img) #w, h = font.getsize(winstats) #x = (inky_display.WIDTH / 2) - (w / 2) #y = (inky_display.HEIGHT / 2) - (h / 2) draw.text((5, 55), stats, inky_display.BLACK, font) flipped = img.rotate(180) inky_display.set_image(flipped) inky_display.show()
  8. An example of how to create a directory and put files into there. Trying to keep the config as stock as possible, so FIRST_USER_NAME is staying "pi". The idea here is to put the compiled QT into a Denarius folder and also put the desktop wallpaper there. Still trying to figure out how to properly set the default wallpaper to something besides road.jpg. https://github.com/buzzkillb/denariianpi-gen/blob/master/stage4/04-denarius 00-run.sh #!/bin/sh -e install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Denarius" install -v -o 1000 -g 1000 -m 755 "${ROOTFS_DIR}/usr/local/bin/Denarius" "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Denarius/" install -v -o 1000 -g 1000 -m 644 "files/Lava-PI-2.jpg" "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Denarius/"
  9. Changed up the github to compile lite or full desktop. Both include the daemon and QT with compiled openssl 1.0.1j. Instructions added to get VNC Server working on Raspberry Pi and VNC Viewer. No monitor required. Attached video shows no denarius.conf syncing from block 0. sxeHDc5KDW.mp4
  10. Looks like the image can't be downloaded from here. Not even sure the image can wget from my github. Here is an example of flipping the screen 180 degrees on the pi zero w. #!/usr/bin/env python # -*- coding: utf-8 -*- import urllib, json from inky import InkyPHAT inky_display = InkyPHAT("yellow") inky_display.set_border(inky_display.WHITE) from PIL import Image, ImageFont, ImageDraw print("""Inky pHAT: Denarius displays blockchain information. """) img = Image.new("P", (inky_display.WIDTH, inky_display.HEIGHT)) draw = ImageDraw.Draw(img) from font_fredoka_one import FredokaOne #font = ImageFont.truetype("/home/pi/fonts/OpenSans-SemiBold.ttf", 20) font = ImageFont.truetype(FredokaOne, 20) url = "http://denarius.win/stats.json" response = urllib.urlopen(url) data = json.loads(response.read()) winpow2 = round(data['pow'],3) winpowresult = float(winpow2) * 100 winpos2 = round(data['pos'],3) winposresult = float(winpos2) * 100 winblocktime2 = round(data['blocktime'],2) winpow = ("POW " + str(winpowresult) + "%") winpos = ("POS " + str(winposresult) + "%") winblocktime = ("Blocktime: " + str(winblocktime2) + " sec") winstats = (winpow + winpos + '\n' + winblocktime) # Load our backdrop image img = Image.open("/home/pi/d-text-logo.png") draw = ImageDraw.Draw(img) #w, h = font.getsize(winstats) #x = (inky_display.WIDTH / 2) - (w / 2) #y = (inky_display.HEIGHT / 2) - (h / 2) draw.text((5, 50), winstats, inky_display.BLACK, font) flipped = img.rotate(180) inky_display.set_image(flipped) inky_display.show()
  11. I think I know what coin chart you can put on the 2nd TV. 🤑
  12. updated chaindata https://github.com/carsenk/denarius/releases/download/v3.3.7/chaindata1701122.zip
  13. Updated chaindata https://github.com/carsenk/denarius/releases/download/v3.3.7/chaindata1701122.zip
  14. Single USB and ethernet port looks perfect for a headless server. Just about ready to buy one of these!😍
  15. To change fonts I will use Denarius official font selection of Open Sans - Semibold. Go to https://github.com/google/fonts/tree/master/apache/opensans And download https://github.com/google/fonts/blob/master/apache/opensans/OpenSans-SemiBold.ttf I send files to the PI3 using winscp, and made a directory called fonts to store these. Or you could cd ~ mkdir fonts cd fonts wget https://github.com/google/fonts/blob/master/apache/opensans/OpenSans-SemiBold.ttf cd ~ If your original line looks like this font = ImageFont.truetype(FredokaOne, 20) Change to the new font. font = ImageFont.truetype("/home/pi/fonts/OpenSans-SemiBold.ttf", 20)
×
×
  • Create New...