Commit Graph

52 Commits

Author SHA1 Message Date
lunar-mining
9a63c70658 dnet: add msg log usage to README 2023-11-14 12:58:42 +01:00
lunar-mining
54bb7ed476 dnet: fix typo on README 2023-11-13 15:39:24 +01:00
lunar-mining
b5b8179648 dnet: fix env usage in README 2023-11-13 15:10:41 +01:00
lunar-mining
cff87e6926 dnet: move python-venv from root .gitignore to bin/dnet/.gitignore 2023-11-13 13:45:16 +01:00
lunar-mining
6cd14256fc dnet: add venv activation step to README 2023-11-13 13:42:27 +01:00
lunar-mining
964e3bcc9d add bin/dnet/python-venv to .gitignore and standadize naming in dnet README 2023-11-13 13:39:56 +01:00
lunar-mining
5cc1100b6e dnet: add venv instructions to README and do minor edit 2023-11-13 13:36:13 +01:00
lunar-mining
04780f241b dnet: add README 2023-11-13 13:17:02 +01:00
lunar-mining
2b35f1cfb9 dnet: update default config 2023-11-13 12:59:38 +01:00
lunar-mining
6bf00e5d29 dnet: add additional check to prevent logic error
also remove unnecessary nesting
2023-11-12 19:02:53 +01:00
lunar-mining
adf9606dcd dnet: fix logic error due to misnamed variable
peabrain.png
2023-11-12 14:18:48 +01:00
lunar-mining
36e39736d3 dnet: add lilith support to view
we now render urls, hosts etc and the lilith spawns
2023-11-11 17:44:50 +01:00
lunar-mining
887ebff1f1 dnet: add lilith support to dnet (mostly)
* calls spawns() rpc method to retrieve lilith info
* add data to model
* renders lilith name and name of spawned network

still TODO:

* display hosts and URLs when spawned network is selected
2023-11-10 19:02:31 +01:00
y
13a18f3ca5 [dnet] Add .gitignore to prevent tracking log file 2023-11-09 15:14:20 -05:00
lunar-mining
6f3b4a715b dnet: fix KeyError due to misnamed variable 2023-11-09 15:36:44 +01:00
lunar-mining
77eb05c60d dnet: fix logic error 2023-11-09 11:40:42 +01:00
lunar-mining
a26e0c4799 dnet: refresh when new outbounds come online. add TODO for logic error 2023-11-09 10:55:28 +01:00
lunar-mining
55462ce3bc dnet: reduce LOC by adding a refresh flag that gets called on event changes. 2023-11-09 08:50:51 +01:00
lunar-mining
6fbab2b29e dnet: improve and simplify view handling
now we can more easily re-render on event changes (like nodes going
offline etc)
2023-11-08 16:37:47 +01:00
lunar-mining
7f3539704e dnet: render nodes as offline when rpc can't connect 2023-11-06 17:46:25 +01:00
lunar-mining
9c9a101996 dnet: check inbound/outbound/manual/seed exists to prevent KeyErrors 2023-11-06 17:12:51 +01:00
lunar-mining
314cfa5b56 Revert "dnet: improve view() logic and cleanup"
This reverts commit 34ffc26fa6be6a07261afadd6d0e9476f98fcecf.
2023-11-06 17:08:59 +01:00
lunar-mining
f9d4e486c9 dnet: improve view() logic and cleanup 2023-11-06 17:08:57 +01:00
y
74b197d008 [dnet] Add KeyError check
Add a check for 'inbound' key. Previously, the program would crash when
there were no connected nodes. Now the view panel correctly displays the
existing node as offline.
2023-11-01 11:31:47 -04:00
lunar-mining
0b0436131f dnet: redraw the screen on inbound (disconnect) and inbound (connect) events 2023-10-30 11:29:07 +01:00
lunar-mining
536f340aa4 dnet: render offline nodes as: node name (offline) 2023-10-30 08:14:50 +01:00
lunar-mining
52b172ece7 dnet: cleanup and add TODOs. also don't crash if a node goes offline. 2023-10-29 21:43:32 +01:00
lunar-mining
3bb75a4717 dnet: cleanup and reduce LOC
makes use of inheritance to avoid repetition widget classes and deletes
various redundant functions
2023-10-29 14:22:08 +01:00
lunar-mining
e5d0aca1f4 dnet: fix bug which caused dnet to crash on receiving unhandled mouse input 2023-10-29 08:03:32 +01:00
lunar-mining
06099510b1 dnet: remove test file 2023-10-26 21:05:09 +02:00
lunar-mining
1621456f01 dnet: fix test to work with urwid 2.2.0 2023-10-26 21:04:58 +02:00
lunar-mining
de3c4eb09f dnet: update dnet to new urwid version and fix asyncio usage
We were previously relying on idle emulation to redraw the screen. This
is no longer supported as of urwid 2.2.0 and later.

See: https://github.com/urwid/urwid/issues/665
2023-10-26 21:04:47 +02:00
lunar-mining
9039b8241d dnet: commit test script that shows breaking usage 2023-10-26 20:57:04 +02:00
lunar-mining
387897cf7b dnet: downgrade urwid version
upgrading urwid to 2.2.0 breaks dnet in two ways:

* ui is not visible unless the terminal is in focus
* the screen is not redrawing correctly- contains artifacts from previous draw.

it may have to do with this breaking change that was added to 2.2.0:

https://github.com/urwid/urwid/pull/541

but i am not sure yet, investigating.
2023-10-26 20:57:03 +02:00
lunar-mining
e211406b59 dnet: fix bug in data structures that propagated notes with duplicate node info
also clean up a bit
2023-10-26 20:57:03 +02:00
lunar-mining
128421b6c0 dnet: display manual connections 2023-10-26 20:57:03 +02:00
lunar-mining
7d2ad6f167 dnet: render inbound connections on disconnect/reconnect 2023-10-26 20:57:03 +02:00
lunar-mining
618d3911d3 dnet: fix weird queue behavior by adding a sleep
¯\_(ツ)_/¯
2023-10-26 20:57:03 +02:00
lunar-mining
0ca8a9e256 dnet: display outbound disconnect events and mutate inbound dict on disconnect/connect 2023-10-26 20:57:03 +02:00
lunar-mining
a1bdf77d0f dnet: sort outbound slots by index, not index and ID, thus improving display 2023-10-26 20:57:03 +02:00
lunar-mining
70461c52ce dnet: use default bg (enables transparency)
https://yewtu.be/watch?v=oFw_mzX5P0o&list=PL40lk--6JoDiQSc6wW67aLaSgi1oRfxBn&index=8
2023-10-26 20:56:58 +02:00
lunar-mining
523837dafd dnet: display time in H:M:S format, not Y:M:D:H:M:S:NS 2023-10-26 20:56:58 +02:00
lunar-mining
d544f981db dnet: store inbound connections in model and render in view 2023-10-26 20:56:58 +02:00
lunar-mining
98ca41b509 dnet: generalize rpc to work with remote hosts as well as localhost 2023-10-26 20:56:58 +02:00
lunar-mining
6107ddfa74 dnet: update asyncio to latest usage and minor bug fix
asyncio.get_event_loop() is deprecated since version 3.10.

instead we use the proper method: create a new event loop and then set
it as follows:

        self.ev = asyncio.new_event_loop()
        asyncio.set_event_loop(self.ev)
2023-10-26 20:56:58 +02:00
lunar-mining
373441d08a dnet: regenerate requirements in venv 2023-10-26 20:56:58 +02:00
lunar-mining
331e8f6fb5 dnet: add events to model and display on view
also includes some minor cleanups
2023-10-26 20:56:58 +02:00
lunar-mining
da5dfc10ea dnet: minor bug fix and cleanup 2023-10-26 20:56:58 +02:00
lunar-mining
c1c808ddea dnet: match on send/recv properly 2023-10-15 13:32:36 +02:00
lunar-mining
65dc17e04e dnet: cleanup and add TODOs 2023-10-14 21:51:35 +02:00