NebraLtd / hm-miner

Helium Miner Container
https://nebra.io/hnt
MIT License
16 stars 16 forks source link

Eliminate usage of gen-region.sh #46

Open marvinmarnold opened 3 years ago

marvinmarnold commented 3 years ago

Services can now retrieve the region from the miner directly via hm_pyhelper.miner_json_rpc.get_region. There is no longer a need for gen-region.sh to write the region to file.

Acceptance criteria

shawaj commented 3 years ago

IIRC config at some point used it for outputting diagnostics info.

Other than that I think just UPnP

https://github.com/NebraLtd/hm-upnp/blob/56722295754eddc65496c3f08f0cb35e76ad0586/configureUpnp.py#L6-L22

shawaj commented 3 years ago

TBH the UPnP container is probably best to be deprecated in favour of hm-watchdog when we implement that IMO

Or we could stick the UPnP stuff in hm-config as that already has host networking set up in docker compose

shawaj commented 3 years ago

Diagnostics:

https://github.com/NebraLtd/hm-diag/blob/357372f7128ea1dcdade8dbb01f1554db2dfbff8/hw_diag/tasks.py#L67-L75

shawaj commented 2 years ago

Only problem with this, is that JSON RPC is unreliable...

https://github.com/NebraLtd/hm-diag/issues/195