Page 3 of 7

Re: SNApP (Simpler Network ApP)

Posted: Mon Dec 27, 2021 10:24 pm
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 72 times

Re: SNApP (Simpler Network ApP)

Posted: Tue Dec 28, 2021 8:35 pm
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.


Re: SNApP (Simpler Network ApP)

Posted: Fri Dec 31, 2021 8:56 am
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.


Re: SNApP (Simpler Network ApP)

Posted: Sat Jan 01, 2022 10:17 pm
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


Re: SNApP (Simpler Network ApP)

Posted: Thu Jan 06, 2022 4:13 pm
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.


Re: SNApP (Simpler Network ApP)

Posted: Fri Jan 14, 2022 8:53 pm
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 70 times

Re: SNApP (Simpler Network ApP)

Posted: Wed Jan 19, 2022 1:10 am
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 71 times

Re: SNApP (Simpler Network ApP)

Posted: Sat Jan 22, 2022 7:12 am
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 72 times

stemsee


Re: SNApP (Simpler Network ApP)

Posted: Wed Jan 26, 2022 8:14 pm
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 65 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 69 times

Re: SNApP (Simpler Network ApP)

Posted: Fri Jan 28, 2022 3:46 pm
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.


Re: SNApP (Simpler Network ApP)

Posted: Wed Feb 02, 2022 1:00 pm
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 90 times

Re: SNApP (Simpler Network ApP)

Posted: Thu Feb 03, 2022 1:47 am
by jamesbond

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


Re: SNApP (Simpler Network ApP)

Posted: Thu Feb 03, 2022 11:24 am
by stemsee

:thumbup2:


Re: SNApP (Simpler Network ApP)

Posted: Fri Feb 11, 2022 5:52 pm
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 81 times

Re: SNApP (Simpler Network ApP)

Posted: Mon Feb 21, 2022 4:25 pm
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 84 times

reuploaded


Re: SNApP (Simpler Network ApP)

Posted: Sun Apr 10, 2022 4:44 pm
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 75 times
snappscrn.png
snappscrn.png (265.9 KiB) Viewed 3541 times

Re: SNApP (Simpler Network ApP)

Posted: Sun Apr 10, 2022 5:12 pm
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


Re: SNApP (Simpler Network ApP)

Posted: Sat Apr 23, 2022 8:14 pm
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 88 times

gui.
3) A few typos corrected too.


Re: SNApP (Simpler Network ApP)

Posted: Sun May 01, 2022 4:02 pm
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.


Re: SNApP (Simpler Network ApP)

Posted: Sun May 01, 2022 8:27 pm
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


Re: SNApP (Simpler Network ApP)

Posted: Tue May 03, 2022 8:08 am
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 – – · · – –


Re: SNApP (Simpler Network ApP)

Posted: Wed May 04, 2022 11:28 am
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.


Re: SNApP (Simpler Network ApP)

Posted: Fri May 06, 2022 12:39 pm
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 79 times

Re: SNApP (Simpler Network ApP)

Posted: Tue May 10, 2022 5:54 pm
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 82 times

Re: SNApP (Simpler Network ApP)

Posted: Tue May 10, 2022 10:53 pm
by stemsee

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


Re: SNApP (Simpler Network ApP)

Posted: Wed May 11, 2022 12:38 pm
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...😉


Re: SNApP (Simpler Network ApP)

Posted: Fri May 13, 2022 10:49 am
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 76 times

Re: SNApP (Simpler Network ApP)

Posted: Sat May 14, 2022 6:00 pm
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 83 times

Re: SNApP (Simpler Network ApP)

Posted: Sat May 14, 2022 9:48 pm
by Clarity

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


Re: SNApP (Simpler Network ApP)

Posted: Fri May 20, 2022 5:12 pm
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 78 times