Skip to content

Commit

Permalink
Merge pull request #54 from hummingbot/feat/update-video
Browse files Browse the repository at this point in the history
(feat) update main readme
  • Loading branch information
fengtality authored Aug 3, 2023
2 parents c6412b1 + b972efb commit 4104f9c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

st.write("Watch this video to understand how the dashboard works! 🦅")
c1, c2, c3 = st.columns([1, 6, 1])
with c2:
st.video("https://youtu.be/l6PWbN2pDK8")
st.write("If you want to contribute, post your idea in #dev-channel of [hummingbot discord](https://discord.gg/CjxZtkrH)")
st.write("---")
with c2:
st.video("https://youtu.be/2q9HSyIPuf4")
st.write("Please give us feedback in the **#dashboard** channel of the [Hummingbot Discord](https://discord.gg/hummingbot)! 🙏")
20 changes: 19 additions & 1 deletion pages/bot_orchestration/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
Deploy and manage Hummingbot instances
### Description

This page helps you deploy and manage Hummingbot instances:

- Starting and stopping Hummingbot Broker
- Creating, starting and stopping bot instances
- Managing strategy and script files that instances run
- Fetching status of running instances

### Maintainers

This page is maintained by Hummingbot Foundation as a template other pages:

* [cardosfede](https://github.com/cardosfede)
* [fengtality](https://github.com/fengtality)

### Wiki

See the [wiki](https://github.com/hummingbot/dashboard/wiki/%F0%9F%90%99-Bot-Orchestration) for more information.
14 changes: 7 additions & 7 deletions pages/bot_orchestration/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,22 @@ def get_grid_positions(n_cards: int, cols: int = 3, card_width: int = 4, card_he
with mui.Paper(elevation=3, style={"padding": "2rem"}, spacing=[2, 2], container=True):
with mui.Grid(container=True, spacing=4):
with mui.Grid(item=True, xs=12):
mui.Typography("🚀 Set up a new bot", variant="h3")
mui.Typography("🚀 Create Bot", variant="h4")
with mui.Grid(item=True, xs=8):
mui.TextField(label="Bot Name", variant="outlined", onChange=lazy(sync("new_bot_name")),
sx={"width": "100%"})
with mui.Grid(item=True, xs=4):
with mui.Button(onClick=launch_new_bot):
mui.icon.AddCircleOutline()
mui.Typography("Create new bot!")
mui.Typography("Create")
with mui.Grid(item=True, xs=6):
with mui.Paper(elevation=3, style={"padding": "2rem"}, spacing=[2, 2], container=True):
with mui.Grid(container=True, spacing=4):
with mui.Grid(item=True, xs=12):
mui.Typography("🐙 Hummingbot Broker", variant="h3")
mui.Typography("🐙 Manage Broker", variant="h4")
with mui.Grid(item=True, xs=8):
mui.Typography("To control and monitor your bots you need to launch the Hummingbot Broker."
"This component will send the commands to the running bots.")
mui.Typography("To control and monitor your bots you need to launch Hummingbot Broker."
"This component enables two-way communication with bots.")
with mui.Grid(item=True, xs=4):
button_text = "Stop Broker" if st.session_state.is_broker_running else "Start Broker"
color = "error" if st.session_state.is_broker_running else "success"
Expand All @@ -156,7 +156,7 @@ def get_grid_positions(n_cards: int, cols: int = 3, card_width: int = 4, card_he

with elements("active_instances_board"):
with mui.Paper(elevation=3, style={"padding": "2rem"}, spacing=[2, 2], container=True):
mui.Typography("🦅 Active Instances", variant="h3")
mui.Typography("🦅 Active Bots", variant="h4")
if st.session_state.is_broker_running:
quantity_of_active_bots = len(st.session_state.active_bots)
if quantity_of_active_bots > 0:
Expand All @@ -182,7 +182,7 @@ def get_grid_positions(n_cards: int, cols: int = 3, card_width: int = 4, card_he
st.session_state.exited_bots[exited_instance] = ExitedBotCard(exited_instances_board, x, y,
CARD_WIDTH, 1)
with mui.Paper(elevation=3, style={"padding": "2rem"}, spacing=[2, 2], container=True):
mui.Typography("💤 Stopped Instances", variant="h3")
mui.Typography("💤 Stopped Bots", variant="h4")
with exited_instances_board():
for bot, card in st.session_state.exited_bots.items():
card(bot)
Expand Down

0 comments on commit 4104f9c

Please sign in to comment.