co8 / hds Goto Github PK
View Code? Open in Web Editor NEWHDS - Hotspot Discord Status
HDS - Hotspot Discord Status
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.
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'
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!
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?
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'
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.
hds-0.5.5.2$ python3 hds.py report
gives me:
01:53 05/20/22 Hotspot API Error: JSON format
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
Is monitoring multiple hotspots an option? When I list more than 1 hotspot in the config file I get an error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.