Giter Club home page Giter Club logo

plot-tracker's Introduction

Plot Tracker

CodeQL

screenshot of plot-tracker.app website dashboard

  1. Create a plot-tracker.app account.
  2. Create a new API Key
  3. Create a new Farm Key
  4. Create your config.yml
  5. Update log_file
  6. Update api_key
  7. Update farm_key

I've done my best to keep the code simple and easy to understand. It's all in the main.go file.

Example Config

log_file: "/home/CHANGE_ME/.chia/mainnet/log/debug.log"
api_key: "1234"
farm_key: "56789"

Screenshot

screenshot of how to create keys on plot-tracker.app

plot-tracker's People

Contributors

dependabot[bot] avatar levidurfee avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

plot-tracker's Issues

Panic / Crash

Jun 25 00:29:47 pt[26554]: 2021/06/25 00:29:47 200 OK
Jun 25 00:29:53 pt[26554]: panic: Post "https://plot-tracker.app/api/v1/counter": unexpected EOF
Jun 25 00:29:53 pt[26554]: goroutine 62217 [running]:
Jun 25 00:29:53 pt[26554]: main.LogData.Send(0x2e, 0x0, 0x0, 0x3f537f38c5436b90, 0xc000273110, 0xc00020a052, 0x64, 0x7e)
Jun 25 00:29:53 pt[26554]:         /home/levi/Projects/github.com/levidurfee/plot-tracker/main.go:153 +0xa1c
Jun 25 00:29:53 pt[26554]: created by main.main
Jun 25 00:29:53 pt[26554]:         /home/levi/Projects/github.com/levidurfee/plot-tracker/main.go:265 +0x725
Jun 25 00:29:53 systemd[1]: pt.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 25 00:29:53 systemd[1]: pt.service: Failed with result 'exit-code'.

Should be able to recover from this.

Send last log date

Send the timestamp of each log and keep it as the last log entry. This should help prevent any duplicate counts. It'll check if the new logs are greater than or equal to the new log.

Eligibility History

Instead of sending an array of boolean values consider sending how many plots were eligible for each signage point.

We can still easily use how many plots were eligible as a boolean value by modifying the conditional to check if the value is greater than zero.

let current = [true, false, true, true, false];
let new_way = [2   , 0    , 1   , 3   , 0];

We can use this data to show a heat map of the 100 most recent signage points.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.