Compare commits

..

9 Commits
0.7.0 ... 0.8.0

Author SHA1 Message Date
Mark Qvist
34e0bde0b4 Updated versions 2025-07-13 15:15:03 +02:00
markqvist
334559a4b6 Merge pull request #77 from tothedaring/patch-1
Update NomadNetworkApp.py
2025-07-13 15:03:50 +02:00
markqvist
cbca0d67b7 Merge pull request #78 from LinuxinaBit/patch-1
Fix Guide description on authenticating users
2025-07-13 15:03:17 +02:00
markqvist
5b0146325e Merge pull request #80 from Erethon/micronparsing-crash
micronparser: Fix a parsing bug
2025-07-13 12:19:46 +02:00
Dionysis Grigoropoulos
b2f48d5853 micronparser: Fix a parsing bug 2025-06-25 23:51:18 +03:00
Linux in a Bit
f0c3b898ae Update Guide.py - Authenticating Users section 2025-05-29 16:50:53 -05:00
tothedaring
bf4b9e55ae added explanation of CUPS variables and added example for reciept printer 2025-05-25 16:01:23 -04:00
tothedaring
2d87214cd0 Update NomadNetworkApp.py
Update line 1271 (line 253 in config file) to reflect current CUPS options and removing deprecated options per issue 4010 (https://github.com/apple/cups/issues/4010)
2025-05-23 14:35:41 -04:00
Mark Qvist
a20b4c9bc3 Added funding 2025-05-17 10:26:59 +02:00
6 changed files with 36 additions and 8 deletions

3
FUNDING.yml Normal file
View File

@@ -0,0 +1,3 @@
liberapay: Reticulum
ko_fi: markqvist
custom: "https://unsigned.io/donate"

View File

@@ -1259,16 +1259,38 @@ print_messages = No
print_command = lp
# You can specify what printer to use
# print_command = lp -d PRINTER_NAME
# print_command = lp -d [PRINTER_NAME]
# Or specify more advanced options. This
# example works well for small thermal-
# roll printers.
# print_command = lp -d PRINTER_NAME -o cpi=16 -o lpi=8
# roll printers:
# print_command = lp -d [PRINTER_NAME] -o cpi=16 -o lpi=8
# This one is more suitable for full-sheet
# printers.
# print_command = lp -d PRINTER_NAME -o page-left=36 -o page-top=36 -o page-right=36 -o page-bottom=36
# printers. It will print a QR code at the center of any media
# your printer will accept, print in portrait mode, and move the message to
# the top of the print queue:
# print_command = lp -d [PRINTER_NAME] -o job-priority=100 -o media=Custom.75x75mm -o orientation-requested=3
# But you can modify the size to fit your needs.
# The custom media option accepts millimeters, centimeters, and
# inches in a width by length format like so:
# -o media=Custom.[WIDTH]x[LENGTH][mm,cm,in]
#
# The job priority option accepts 1-100, though you can remove it
# entirely if you aren't concerned with a print queue:
# -o job-priority=[1-100]
#
# Finally, the orientation option allows for 90 degree rotations beginning with 3, so:
# -o orientation-requested=4 (landscape, 90 degrees)
# -o orientation-requested=5 (reverse portrait, 180 degrees)
#
# Here is the full command with the recommended customizable variables:
# print_command = lp -d [PRINTER_NAME] -o job-priority=[N] -o media=[MEDIA_SIZE] -o orientation-requested=[N] -o sides=one-sided
# For example, here's a configuration for USB thermal printer that uses the POS-58 PPD driver
# with rolls 47.98x209.9mm in size:
# print_command = lp -d [PRINTER_NAME] -o job-priority=100 -o media=custom_47.98x209.9mm_47.98x209.9mm -o sides=one-sided
'''.splitlines()

View File

@@ -1 +1 @@
__version__ = "0.7.0"
__version__ = "0.8.0"

View File

@@ -345,7 +345,7 @@ By default, you can find the examples in `!~/.nomadnetwork/examples`!. If you bu
Sometimes, you don't want everyone to be able to view certain pages or execute certain scripts. In such cases, you can use `*authentication`* to control who gets to run certain requests.
To enable authentication for any page, simply add a new file to your pages directory with ".allowed" added to the file-name of the page. If your page is named "secret_page.mu", just add a file named "secret_page.allowed".
To enable authentication for any page, simply add a new file to your pages directory with ".allowed" added to the file-name of the page. If your page is named "secret_page.mu", just add a file named "secret_page.mu.allowed".
For each user allowed to access the page, add a line to this file, containing the hash of that users primary identity. Users can find their own identity hash in the `![ Network ]`! part of the program, under `!Local Peer Info`!. If you want to allow access for three different users, your file would look like this:

View File

@@ -148,6 +148,9 @@ def parse_line(line, state, url_delegate):
elif first_char == "-":
if len(line) == 2:
divider_char = line[1]
# Control characters don't make sense here and otherwise crash nomadnet
if ord(divider_char) < 32:
divider_char = "\u2500"
else:
divider_char = "\u2500"
if state["depth"] == 0:

View File

@@ -30,6 +30,6 @@ setuptools.setup(
entry_points= {
'console_scripts': ['nomadnet=nomadnet.nomadnet:main']
},
install_requires=["rns>=0.9.6", "lxmf>=0.7.1", "urwid>=2.6.16", "qrcode"],
install_requires=["rns>=1.0.0", "lxmf>=0.8.0", "urwid>=2.6.16", "qrcode"],
python_requires=">=3.7",
)