inertia186 / radiator

Hive Ruby API Client
https://hive.blog/hive-139531/@inertia/radiator-v0-4-8-hive-ruby-api-client-eclipse-update
Other
50 stars 22 forks source link

How to read posting bandwidth % #20

Closed wakproductions closed 6 years ago

wakproductions commented 6 years ago

Hi Anthony,

Terrific gem! I am using this to help content creators on other platforms establish a presence on Steemit! This is such a useful tool for the community.

I am trying to understand how the bandwidth works. On steemd.com, the bandwidth for my account has been fluctuating wildly in the %. Sometimes the figure is in the hundreds of Kb, and other times it says I have like 20Mb of bandwidth. I don't understand how it's calculating that.

When I do a query using the get_account_bandwidth API call, it gives me output like this:

[114] pry(main)> a = api.get_account_bandwidth('zolnareport', 'post')
=> {"result"=>nil, "id"=>8}
[115] pry(main)> a = api.get_account_bandwidth('zolnareport', 'forum')
=> {"result"=>
  {"id"=>434010,
   "account"=>"zolnareport",
   "type"=>"forum",
   "average_bandwidth"=>"119606514378",
   "lifetime_bandwidth"=>"240016000000",
   "last_bandwidth_update"=>"2018-01-07T17:00:24"},
 "id"=>9}
[116] pry(main)> a = api.get_account_bandwidth('zolnareport', 'market')
=> {"result"=>nil, "id"=>10}

Could you please direct me to a resource that could explain how to calculate remaining bandwidth as a % so that I can set up my system to only post during times when I have available bandwidth?

inertia186 commented 6 years ago

Hopefully, documentation for stuff like this will improve over time:

https://developers.steem.io/apidefinitions.html#apidefinitions-witness-api https://developers.steem.io/apidefinitions.html#condenser_apiget_account_bandwidth