SNApP (System Nonsuch ApP)

Moderator: Forum moderators

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP_1.4.sfs

Selecting images to view will not close ffplay media streams.

ascii text files will be opened with xdg-open.

Updated bluetoothctl icon definitions, ... audio-headset, audio-headphones

I added a SCENE keyword which launches wifi connection and stream player. NEWSCENE creates a script as $HOME/.scene ...
The idea is that when you have a usage you can create a scene with keyword NEWSCENE in SSID field. This creates the script with wifi profile, DNS, bluetooth audio device and media stream/file that was playing at time of creation, which in my reckoning would constitute a scene. To launch script, type SCENE in SSID field and click ~ACTION~ button.... or click on the file $HOME/.scene ...

S.N.ApP_1.4.sfs
(376 KiB) Downloaded 86 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Today I tried SCENE, and yesterday's bluetooth device, wifi connection and network radio all sprang into life! Wonderful!! Therefore I would like to add, screen brightness, volume level and webpage to open. Not only that but also the possibility of saving a variety of scenes, with custom names. So for the library in the dark of winter you can use a bt headphone, dimmer screen, backlight keyboard etc and call it LIBRARY. For doing stuff in the back garden in the day you might have a bt loudspeaker, bright screen, and keyboard back-light off. Could have a power saver scene, and a gaming scene.

For keyboard backlight I want to write a script which uses the light to signal morse code messages, or just simple animated brightness maybe following music rhythm!

I really need to get to grips with DBus ... and python.

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Previously it was possible to play media and net radio streams with mpg123, but that ability was lost ... I cannot play anything with mpg123 after upgrade. Now a simple keyword PLAYER in SSID field, and name of player in USer IDentity field, 'vlc', 'mpg123' etc so any media player can now be used along with arguments.

NEWSCENE now creates custom named .scene files by typing name in User Identity field, with keyword NEWSCENE typed in SSID field. To call a particular scene, type SCENE in SSID field, and scene name in User Identity field, eg. 'vanlifesony'. That will evaluate vanlifesony.scene with bluetooth device, wifi, and media stream.

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

A small improvement in the selectables list when listing media, is before there was SEL as the first entry. Selecting this opened a file selector for directory selection, if canelled root directory contents would be added to list. Now there are two entries at start of list, SELD and SELF, select directory and select file. This is for adding contents of a media directory or contents of a playlist. But could be a text file for reading! Cancel will cancel without adding anything.

stemsee

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Small improvement in netlistradio function. Selecting a station in list shows current stream title in viewer. Doubleclick connects station. This means you can listen to one station while browsing whats playing on other stations. without connecting.

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

I'm posting S:N:ApP-1.5 here with the previso that I lost track a little bit, since 1.4.

So double click required to begin stream/media.

S.N.ApP_1.5.sfs
(380 KiB) Downloaded 84 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Added keywords HOTSPOT, HOTSTOP, HOTLAN, HOTBRIDGE ... for use with create_ap hotspot and lan creator. To create a hotspot with the same wifi card as internet connected, then type hotspot name in BSSID field, password in User Password, and interface in Interface field.
When bridging interfaces is desired; enter in interface field for eg 'wlan0 eth0' ... plus name in BSSID field and Password in User PAssword field ... etc

This is 1.6 ,three bugs were found and fixed.

S.N.ApP_1.6.sfs
(380 KiB) Downloaded 90 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

SNApP-1.7 has a savefile creation function. Also adjusted some timings for radio stream info, and a couple text edits in help. Oh, and also updated scene to include screen and keyboard backlight brightness, volume (these should be set with in-app tools first as values get saved in /root/hiddden.files),, and contents of viewer which should be constructed in a list of 'executable file' for example 'evince /root/Downloads/some.pdf', calling SCENE will cause settings to be applied and files to be opened etc.

And that's about it folks!

S.N.ApP_1.7.sfs
(380 KiB) Downloaded 87 times

stemsee

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Here is an sfs of network radio lists as compiled by fredx181 (I stole them from his radio app!). A lot of links don't work, so the lists need updating ... big time!

netradiolists.sfs
(200 KiB) Downloaded 79 times

snapp-1.8 - gui opens blank, not at interfaces. But all the functions are listed. just select one and execute.

This fixes a bug for the tray menu when ap scanning. Also after scanning double clicking an ap in selectables will connect an available profile with same SSID or BSSID if profile is available.

S.N.ApP_1.8.sfs
(368 KiB) Downloaded 84 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

snapp-1.9 I have added basic xrandr cli commands to rotate screen/s, or change relative positions of two displays. These commands are in help commands. They could be added as an independent function with icons in list view ... might be a good idea.

Last edited by stemsee on Thu Feb 03, 2022 11:13 am, edited 1 time in total.
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP-1.9 only difference to 1.8 is xrandr commands added to commandlist.

S.N.ApP_1.9.sfs
(368 KiB) Downloaded 101 times
jamesbond
Posts: 717
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 402 times

Re: SNApP (Simpler Network ApP)

Post by jamesbond »

SNAPP 1.9 is now on Fatdog's contributed SFS repo.

Attachments
xscreenshot-20220203T114316.png
xscreenshot-20220203T114316.png (55.73 KiB) Viewed 4338 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

:thumbup2:

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP-2.0 - Now it is possible to view and edit the text in files which are got from cat command. Just type path and filename in Profiles field.

There is a line of code missing in the wifi scan function which causes the wpa_cli scan to use p2p-dev-wlan0 or some such device instead of wlan0. It's just that /var/run/wpa_supplicant/wlan0 exists at time of scanning with wpa_cli.

Anyways sorted now.

S.N.ApP_2.0.sfs
(368 KiB) Downloaded 102 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP-2.1 Adds

1) *.desktop files viewer/editor and executor. Lists desktop files and shows their icons.
To execute doubleclick in Selectables list or type EXEC in SSID field and click ACTION button.
To edit/save/create new, type EDIT in SSID field and path with name in Profiles field: edit in viewer.

2) list and view colors and their names along with hex codes

3) list and view icons in /usr/share/pixmaps and subdirectories, and /usr/share/icons and /root/.config/snapp/icons

S.N.ApP_2.1.sfs
(404 KiB) Downloaded 95 times

reuploaded

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Here is S.N.ApP_2.2

Improvements to:

1) iconsfn ... uses find in /usr/share/pixmaps to list icons of the types icn ico bmp svg png xpm
2) desktopfiles were listed until such files as contained X-Window-Icon entry would mess everything up....fixed, but not all icons show ... because not in yad path or extension missing.
3) coloursfn - when selected hex code can be copied from ssid field
4) Commands - now lists all functions, for easy selection for Execute
5) xrandr commands also appear in Commands list, instead of help
6) savefile creator can also create swapfiles

cheers
stemsee
reuploaded

S.N.ApP_2.2.sfs
(412 KiB) Downloaded 95 times
snappscrn.png
snappscrn.png (265.9 KiB) Viewed 4211 times
Last edited by stemsee on Sun Apr 10, 2022 9:04 pm, edited 1 time in total.
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

jamesbond wrote: Thu Feb 03, 2022 1:47 am

SNAPP 1.9 is now on Fatdog's contributed SFS repo.

Hi Jamesbond

Please update sfs-manager version of snapp tp S.N.ApP_2.2

cheers
stemsee

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

here is 2.3 with improvements.

1) fixes tray icon info for data used, and AP/MAC details.
2) statusfn does not suddenly rewrite the text viewer field 10 seconds after opening the main

S.N.ApP_2.3.sfs
(404 KiB) Downloaded 98 times

gui.
3) A few typos corrected too.

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

I want to add a function which generates all ascii codes and characters as a list for selection. I don't want to format lists manually just generate them programmatically.

step
Posts: 546
Joined: Thu Aug 13, 2020 9:55 am
Has thanked: 57 times
Been thanked: 198 times
Contact:

Re: SNApP (Simpler Network ApP)

Post by step »

I'm not sure if you're asking for options but here are a few https://unix.stackexchange.com/question ... ars-in-cli

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Thanks @step it's a very good setting off point. Especially this line

Code: Select all

awk 'BEGIN {for (i = 32; i < 127; i++) printf "%3d \0x%02x %c\n", i, i, i}'

easy to use format.

I notice the range i=10240; i < 10495 are the braille encodings.

asciifn implemented as

Code: Select all

function asciifn (){
	awk 'BEGIN {for (i = $1; i < $2; i++) printf "%3d 0x%02x %c\n", i, i, i}' | listformatfn
}; export -f asciifn

This function requires two arguments $1, $2, start and end values corresponding to ascii numbers. The IPA (International Phonetic Alphabet) has been assigned the range 101 - 528, so Execute

Code: Select all

asciifn 101 528

Normal alphabet 32 - 127
Braille 10240 10495

Morse is not so easy it seems to require either a dictionary list and/or binary conversion.

Letters Morse Phonetic How to pronounce
A · – Alpha AL FAH
B – · · · Bravo BRAH VOE
C – · – · Charlie CHAR LEE
D – · · Delta DELL TAH
E · Echo ECK OH
F · · – · Foxtrot FOKS TROT
G – – · Golf GOLF
H · · · · Hotel HO TELL
I · · India IN DEE AH
J · – – – Juliet JEW LEE ETT
K – · – Kilo KEY LOH
L · – · · Lima LEE MAH
M – – Mike MIKE
N – · November NO VEM BER
O – – – Oscar OSS CAH
P · – – · Papa PAH PAH
Q – – · – Quebec KEH BECK
R · – · Romeo ROW ME OH
S · · · Sierra SEE AIR RAH
T – Tango TANG GO
U · · – Uniform YOU NEE FORM
V · · · – Victor VIK TAH
W · – – Whiskey WISS KEY
X – · · – X-ray ECKS RAY
Y – · – – Yankee YANG KEY
Z – – · · Zulu ZOO LOO
0 – – – – – Zero ZE RO
1 · – – – – One WUN
2 · · – – – Two TOO
3 · · · – – Three TREE
4 · · · · – Four FOWER
5 · · · · · Five FIFE
6 – · · · · Six SIX
7 – – · · · Seven SEV EN
8 – – – · · Eight AIT
9 – – – – · Nine NIN ER
Period · – · – · –
Comma – – · · – –

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

I am implementing tray menu option 'Preferences' This is to set font, soundcard, bluetooth sound device. However setting --fontname for the main gui and plugs has no effect! Not sure why.

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP_2.4

added ascii lookup function. just add start and end ascii numbers to view a range of ascii code and characters.
added morsefn reference morse code and pronunciations
restored default connection at startup
a couple of typos.

S.N.ApP_2.4.sfs
(408 KiB) Downloaded 96 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP_2.5

1) Data Limit GUI has data meter reset. Also by setting data limit to zero turns data limit off.
2) Data Limit has better integration with traffic and tray menu update.
3) Tooltip now shows external IP. And ssid and Mac from the get go.
4) scenes now have their own directory in /root/.config/snapp/scenes.
5) default.scene if found will be used at app start up, or default WiFi profile will be connected.
6) scenes are more selectively created in variable blocks.
7) Bluetooth connection to audio device does not start bmixd.
8) other improvements.

S.N.ApP_2.5.sfs
(408 KiB) Downloaded 92 times
Last edited by stemsee on Wed May 11, 2022 12:43 pm, edited 1 time in total.
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

Next release will probably include surfshark server lists and openvpn connection! User must already have credentials.

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

I was able to create a scene file which automated ap connection, VPN connection, wifi connection , apps start up, and then created a hotspot using the VPN tun0 virtual adapter. And then my android connected to that hotspot. That pc is also connected to the androids' hotspot which gets internet through data connection. The tun0 hotspot is VPN.

I ran the interfaces function and there were listed lo, wlan0, tun0, tun1, ap0 .... !

Cool...😉

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP_2.6.sfs

Openvpn cli connection to surfshark VPN servers. Fetches server lists and credential files and saves them in /etc/openvpn
On selecting a server in snapp, previous server connection is closed then a terminal opened for user to manually input Auth username (not user id email) and Auth Password (not login password). To get these credentials go to surfer shark website, login and search for openvpn manual login for Linux.

To get external IP, after starting openvpn or changing servers, run either interfaces function or limitrtxfn (tray menu data limit set). This is. A once only check for external IP using

Code: Select all

curl https://icanhazip.com >/etc/exip

So on snapp startup last exip is shown in tray tooltip even if no connection. This is a reminder of last used server.

HOTSPOT function/Keyword, now requires two interfaces arguments in iFace field, separated by one space, 'wlan0 wlan1' or 'wlan1 wlan1' etc. Same as HOTBRIDGE.

Scene files are now listed along with profiles in profiles field. Keyword is SCENE to run a scene file.

Help updated.

S.N.ApP_2.6.sfs
(372 KiB) Downloaded 88 times
User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP_2.7.sfs

Corrected an unzip command in openvpn.
Added DNS info to tooltips.
Found a misspelled function call.
Fixed a logical test in traffic function.
List profiles first then scenes second.

S.N.ApP_2.7.sfs
(372 KiB) Downloaded 98 times
Clarity
Posts: 3844
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1633 times
Been thanked: 527 times

Re: SNApP (Simpler Network ApP)

Post by Clarity »

Many VERY nice features. Hope this lands in WoofCE builds and starts to show up in PUPs of the future.

User avatar
stemsee
Posts: 780
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 132 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP_2.8

Key words that function in SSID field press ACTION button

REPLACE or EDIT replaces file in profiles field.
APPEND adds to file in profiles field

For those to work profiles now have full path .

FILE opens a yad file selector to show file in Viewer.

Updated helpfn
Other related small improvements.

S.N.ApP_2.8.sfs
(400 KiB) Downloaded 90 times
Post Reply

Return to “Network”