8000 GitHub - wilfredallyn/pyasic_tools: An interactive dashboard for visualizing pyasic data · GitHub
[go: up one dir, main page]

Skip to content

About

An interactive dashboard for visualizing pyasic data

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

pyasic_tools

An interactive dashboard for visualizing pyasic data.


Live Demo

pyasic.tools


Installation

poetry install


Dashboard

If you have saved miner data to SQLite, you can analyze it with interactive python visualizations in a plotly dash app.

  • python pyasic_tools/app.py examples/change_power.db
  • Go to http://localhost:8050/ in your browser
  • Currently, provides basic functionality of the Braiins OS+ dashboard with overall status, hashrate, and temperature
  • More visualizations planned in future
Status

status

Hashrate

hashrate

Temperature

temperature


Saving Data

Miner data can be saved to a SQLite database or CSV file. Data is preprocessed as a pandas dataframe where dicts for hashboard/fan data are flattened.

import asyncio
from pyasic import get_miner
from pyasic_tools.db import write_data

if __name__ == "__main__":
    miner = await get_miner(ip="192.168.1.75")  # update ip address
    asyncio.run(
        write_data(
            miner=miner,
            data_file="miner_data.db",  # Use .csv extension to save as CSV file
            sleep_mins=1,  # Number of minutes to wait between writes
        )
    )

Alternatively, you can use the command python pyasic_tools/db/save_data.py 192.168.1.75 miner_data.db 1


Example Notebooks


About

An interactive dashboard for visualizing pyasic data

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0