Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/autoscatto/miatanto
crap utility for awesome3
https://github.com/autoscatto/miatanto
Last synced: 1 day ago
JSON representation
crap utility for awesome3
- Host: GitHub
- URL: https://github.com/autoscatto/miatanto
- Owner: autoscatto
- Created: 2013-02-03T20:50:32.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-29T08:52:30.000Z (over 11 years ago)
- Last Synced: 2023-03-17T02:16:16.711Z (over 1 year ago)
- Language: Lua
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Miatanto Awesome
========
crap utility for awesome 3.5---
eclipsemc.lua
-Simple vicious widget for [Eclipse Mining Consortium](https://eclipsemc.com/) user information.
The widget uses the API offered by EclipseMC to live show account status and workers data.**Install**
```sh
git clone https://github.com/autoscatto/miatanto.git
cp eclipsemc.lua $viciuswidgetsdir [mine is in ~/.config/awesome/vicious/widgets]
luarocks install luasec
luarocks install luajson (or install lua-json and lua-sec with your distro packet manager)
profit
```**Config**
register standard vicious widget, the only parameter to specify is the API key provided by EclipseMC
> es: vicious.register(eclipse, vicious.widgets.eclipsemc, "CR:${CR} UR:${UR} ER:${ER} TP:${TP} BF:${BF}", 5, APIKEY )
you can use this general account info format:
> "{CR}": confirmed reward
> "{UR}": unconfirmed reward
> "{ER}": estimated reward
> "{TP}": total payout
> "{BF}": blocks foundfor the details relating to worker (substitute *workername* with existing worker name):
> "{workername.hash_rate}": hash rate
> "{workername.round_shares}": round shares
> "{workername.reset_shares}": reset shares
> "{workername.total_shares}": total shares
> "{workername.last_activity}": last activityes: i want confirmed reward, total payout, and hash rate of my worker named *Giorgio*
vicious.register(eclipse, vicious.widgets.eclipsemc, "confimed: ${CR} payout: ${TP} Giorgio hashrate: ${Giorgio.hash_rate}", 3, APIKEY )
simple.
bfgminer.lua
-Simple vicious widget for [BFGminer](https://github.com/luke-jr/bfgminer) API interface.
**Install**
```sh
git clone https://github.com/autoscatto/miatanto.git
cp bfgminer.lua $viciuswidgetsdir [mine is in ~/.config/awesome/vicious/widgets]
luarocks install luasocket
luarocks install luajson (or install lua-json and lua-socket with your distro packet manager)
profit
```**Config**
start bfgminer with the API interface enabled
> es: bfgminer --api-listen --api-network
> or add
> "api-listen" : true,
> "api-port" : "4028",
> "api-network": true
> to ~/.bfgminer/bfgminer.confregister standard vicious widget, pass a table with host,port
> es: vicious.register(bfgminer, vicious.widgets.bfgminer, "MH/s: ${MHS av} Accepted: ${Accepted} Best Share: ${Best Share}", 3, {"127.0.0.1",4028} )
you can use this format string:
> ${Elapsed}
> ${MHS av}
> ${Found Blocks}
> ${Getworks}
> ${Accepted}
> ${Rejected}
> ${Hardware Errors}
> ${Utility}
> ${Discarded}
> ${Stale}
> ${Get Failures}
> ${Local Work}
> ${Remote Failures}
> ${Network Blocks}
> ${Total MH}
> ${Work Utility}
> ${Difficulty Accepted}
> ${Difficulty Rejected}
> ${Difficulty Stale}
> ${Best Share}the variable name is self-explanatory on the content
License
=========```
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004Copyright (C) 2013 Romain Lespinasse
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. You just DO WHAT THE FUCK YOU WANT TO.
```