Commit graph

15 commits

Author SHA1 Message Date
bunnie
536ad89010 format apps/mtxcli
somehow, this was missed.
2024-01-15 00:46:06 +08:00
nworbnhoj
7c64863ef8 Rename "Matrix chat" to "Matrix cli" 2023-07-29 06:54:11 +10:00
Jean-Pierre De Jesus DIAZ
2af737b57e
xous-rs: move LANG variable to locales
This change is made with the intention of making the xous-rs crate a bit
more freestanding without depending on the xtask build system.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 18:23:12 +02:00
Jean-Pierre De Jesus DIAZ
3e2eb63663
imports: remove com_rs-ref
The crate just re-exports the com_rs crate. This patch changes usages of
com_rs-ref to use com_rs directly.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-05-02 14:33:17 +02:00
Tom Marble
168b1a7f5c
mtxcli: chat room updates asynchronously
Added more predefined scalar messages
Checks WiFi status
Spawns separate thread for client_sync (reading the network)
Most all log messages are now INFO (to be shown by default)

Closes #300

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-19 21:59:50 -06:00
Tom Marble
277d014f39 Updates for #287
Allows a variable to be set to the EMPTY string
- by not setting a value `/set myvar`

During initialization now verifies that PDDB is mounted.

Added warnings for PDDB not mounted and WiFi not connected.
- the WiFi check is not yet implemented

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
Tom Marble
e9f21396aa Completes fix for #287
Adds migrations framework
Delays mtxcli initialization until first user input, because we know:
- PDDB is mounted
- Timer is stable
- User actually using mtxcli
Adds send_async_msg scalar_async_msg
- basis for automatically updating chatroom

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
Tom Marble
c213dfb745 WIP: Fix mtxcli excessive memory usage #287
Adds migrations framework
- Migration for v0.9.11-0120: update the filter

Filter
- narrow filter to only the fields and events for the current room

Introduces "read only" variables (e.g. __version).

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
Tom Marble
a042deb462 WIP #287: Adds /heap command to mtxcli
Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00
bunnie
8d42feb051 increase heap for mtxcli; add memory usage reporting 2022-12-28 19:48:40 +08:00
Tom Marble
e55c7495b1
Updates the mtxcli app (#254)
* Updates the mtxcli app

mtxcli:
- Simple chat now functional!
- All strings use translations
- Updates the README
- updates mtxcli to handle PDDB existence check

Adds *.pyc to .gitignore

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-26 12:16:09 -05:00
Tom Marble
8d810dcc51
Adds mtxcli commands using the PDDB (#246)
* Adds mtxcli commands using the PDDB

/get key -- shows value of key (from the PDDB)
/set key value -- sets value of key (in the PDDB)
/unset key -- removes key (from the PDDB)
/status -- shows status of the connection

Updates .gitignore for PDDB in hosted mode
2022-10-19 12:50:00 -05:00
Tom Marble
90bcd989f7
Reverts quit operation 2022-10-18 13:31:31 -05:00
Tom Marble
cf02c3c3b6
Adds GAM DefaultApp opcode
NOTE: action on DefaultApp is not yet implemented: this
should allow the GAM to choose which application is safe
as a default (for other applications to "quit" by switching to it).
Proposed default application is "shellchat".

Updates mtxcli commands
- removes audio command
- adds help and quit commands
2022-10-18 11:54:27 -05:00
Tom Marble
21908e9d01 Adds app mtxcli
Initial version of mtxcli is simply a copy of repl with the
requisite manifest changes to make the app unique.

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-12 13:51:44 -05:00