Git Product home page Git Product logo

hds's People

Contributors

co8 avatar drowningwhale avatar piotr-sinior avatar relaxpn avatar ryanho87 avatar simeononsecurity avatar turbofart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hds's Issues

Add command line arguments to filter status messages

More of a feature request than an issue! I was wondering if you would consider adding some way to filter out specific types of events - particularly 'created challenge' or 'beacon with zero witnesses' or 'challenged hotspot'.

This could be done by command line arguments or extra fields in the JSON config.

Key Error when runnning

I am getting a key error when running the code.
The error is as follows:

File "hds.py", line 922, in <module> main() File "hds.py", line 893, in main loop_activities() File "hds.py", line 637, in loop_activities poc_receipts(activity) File "hds.py", line 532, in poc_receipts "challengee" in activity["path"][0] KeyError: 'path'

API Changed since blockchain halted?

Hi Co8,

Love the app - some really great work!

I actually came across and got this setup during the outage this week - so it had not been working after I had set it up due to the API issues.

It then started to work on Nov 17th and outputted ~20 messages, but then stopped working again on Nov 18th at 4:34 AM - with no changes made by myself.

When I run the command manually now I am getting:

12:58 11/19/21 Activity API Error: Parsing JSON

Has the API results been changed do you know and it is now pending an update from you?

Or is my installation somehow just having some issues and yours / others are still working fine?

I am not familiar enough with Python to be able to diagnose myself.

Thanks in advance for your time!

traceback error

 python3 hds.py
Traceback (most recent call last):
  File "/home/===/hds/hds.py", line 912, in <module>
    main()
  File "/home/===/hds/hds.py", line 886, in main
    local_bobcat_miner_report()
  File "/home/===/hds/hds.py", line 164, in local_bobcat_miner_report
    miner_block_int = int(data["blockchain_height"])
KeyError: 'blockchain_height'

followed every step twice, unable to get past this error, any ideas?

Activity API: Bad Data , TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

First of all, thanks for you work!
I managed to run the code under debian linux with python3.7 and all requirements are met.
Sometimes i get "Activity API: Bad Data"
And i had "." in log which means no changes , but then , started printing errors, log follows, last error repeated many times.
The Hotspot is new - 11AeVjpWXZ3wVc4y4F48YxLwZeLet11hAvjxDCtcPUrDzso8trN

11:32 12/12/21 Activity API: Bad Data
...................
11:52 12/12/21 Activity API: Bad Data
Traceback (most recent call last):
File "hds.py", line 899, in
main()
File "hds.py", line 869, in main
load_hotspot_data_and_status()
File "hds.py", line 683, in load_hotspot_data_and_status
block_gap_num = int(hs["block"] - hs["height"])
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

hds.py: poc_receipts(activity) call in loop_activities()

Hi,

thanks for the script! I found a bug in hds.py row 636:

elif activity["type"] == "poc_receipts_v1" or "poc_receipts_v2":

should be something like:

elif activity["type"] == "poc_receipts_v1" or activity["type"] == "poc_receipts_v2":

...

I have created a pull request with a fix.

bobcat miner.json changes

ONLY FOR LOCAL BOBCAT REPORTS

miner.json for bobcat local integration has changed.

update hds.py >> local_bobcat_miner_report() to use new API structure of miner.json

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.