-
otdm-tools progress ver: ~ 0.14
12/28/2022 at 13:31 • 0 commentsCurrently I settle for now that oiyshTerminal tools set will be mainly in python. So It's. Work in progress. Learning more about deb stats what is going on process of installation / removing. This is eeee easy when all is going good but when there a error appiear then it's up heel. Today I'm trying to simplify process of [ pre | post ][ ins | rm]
Currently
$ otdmTools.py -h
$ otdmTools.py -h . . o o O O oiyshTerminal - tools O O o o . .ver 0.14-1920 configuration file loading from [/data/data/com.termux/files/home/.otdm/config.json]... chkClipBoard .... ..... loading: 78 Help. You can run it: otdmTools.py 'JSONstr' Usage: otdmTools.py -testCurl 1 Usage: otdmTools.py -testCurl 1 Will run test of config files, connection to grafana, node-red. Can run like all commands with -debug 1 to debug. Table: src what dir dest status g ds i file * nr flows i file * g ds i strInp TODO g ds rm * Usege: otdmTools.py -import grafana -impW ds -iFile /tmp/dsMysql-ot.json -file ./log1.log Import to grafana datasource from file "/tmp/dsMysql-ot.json" and result of a operation will be in ./log1.log. U can use "--" as a output to get it as a strout. Usage: otdmTools.py -debug 1 -rm "grafana" -rmW "ds" -by "EtRiTNkgk" Delete datasource with uid "EtRiTNkgk" from grafana / datasources. Return 0 if all correct. 1 if error. args: -testExit 11 - exit app with code 11 -return0 1 - test. exeIt returns 0 it imitate that it not detect argument -testConfLoad 1 - test. loads config file or test loadconfig function -testEcho "abc" - test. echos as print "abc" args from args array: -v - Prints version of oiyshTerminal - tools. now is ver: 0.14-1920 -debug - debuging enable disable by 1 or 0 -testDialog - Test of dialog function. -forceHost - owerrits host ip address -addNote - It use .otdm/cliper.json -lastNote - [n] Returns last notes. n = 1 by def. -tasks - [pathTo.otdm_file] Run tasks list from array list of tasks. -mkInjFil - It convert reagular export json files to injection ready. [grafana-ds|node-flow] - possible arguments for now. -if [inFile] - path to input file with json -of [outFile] - path to output file with injection ready json -injToJ "{}" - inject/overrites keys and vals to main export file. -extract - [gdsInjRes] Set what to decode then different aproche will be taken to the file source. -if [pathto.json] - path to file to work with. -mkbp - Make backups. Have some options. what to backup? [gds|gdsuid|gdsid|gdsname|gdhs|gdhuid|gdhid|gdhname] g - for grafana or [flows|fid|fname] for Node-red [*] to make all and seperate. -by - if not (s) then value of what to backup -rm - Will remove something.. depends on arguments. -rm - remowe in what? [node-red|grafana] -rmW - remowe what? if node-red [flow] if grafana [ds,dash] -by - it's in: if node-red by id of a flow if grafana uid - -export - Export data from [grafana|node-red] args need to set! -file "path" - to storage. If set to "--" will print. -expW "ds" - export what? if export is to grafana select:[ds|dsByName|hsByUid|dashs|dashByName|dashByUid] if export is to node-red select:[flow|flows] -import - iport data from file to [grafana|node-red] args need to set! -iFile - file path to json to work with -iStr - string / json input to work with this or -iFile -impW - import what? if importing is to grafana select:[ds|dashs] if importing is to node-red select:[flow] -testCurl - test curl get to grafana and node-red. -testEcho2 - test. it\'s a test function to echo from acts arry. -testAll - Run all test defined in test section. . . o o O O oiyshTerminal - tools O O o o . . END ver 0.14-1920
-
Small step for otdm-tools big step for oiyshTerminal :P
12/26/2022 at 11:00 • 0 commentsotdm - it's a short from "oiyshTerminal Debian Manager".
now in version 0.10 - in current moment still not in repository. work in progress...
I'm trying to get to a point that dpkg will install you things in oiyshTerminal.
This short video is showing operation on grafana / datasources. It's injecting new data source to it.
And it's removing it by uid.Automation in bash layer, dependencies, root access in installation process, smooth connection to grafana, Node-red, ....
This is big :)
More coming soon.
More about oiyshTerminal: https://github.com/yOyOeK1/oiyshTerminal/wiki -
Otdm - deb to do Node-red?
12/22/2022 at 19:36 • 0 commentsI'm experimenting with a idea of making more automation in processes of installing flows. There is couple of topic on forum. But this is something differnt?
otdm - oiyshTerminal deb Manager
ok.
deb as a standard is a known thing. If you have simple flow it's yyy easy to make some script to make some injections to instance.
but if you need dependency's to your flow example python, opencv, not only npm stuff .... why not use something tested?
deb is used for years. by adding one word. you will ask to install on system what you need.
flowfrom beginning if you have a system on this thinking process you have a one command:
$ apt install myTurboFlowExample
and if you don't have Node-red it will install it also nodejs if it's not coming as a p rebuild to your distro.with that in mined
-
. ./run.sh - installation DONE
12/21/2022 at 17:45 • 0 commentsSo run.sh is in new version now. With steps I took to build stateMachine I know that there is a "dialog" app in linux :) nice one. Some Semu UI. It's not so scary for all when they see windows and buttons.
So easy way to get:
ssh :2222
mosquitto :10883
mysqld :3306
grafana :3000
nodeRed :1880bridge mqtt and mysql
on the android :)
Starting installation screen:
Installation DONE!
You can see on screenshot end of installation. All puzzles are working! wow.Someone for testing?
All info at: https://github.com/yOyOeK1/oiyshTerminal/wiki/installer
-
State Machine as a installer. So lets start....
12/19/2022 at 00:21 • 0 commentsState machine as a installer for oiyshTerminal. u good?
I already created a installer. But it's yym brutal. This new finding for me "dialog" will give me from start a semi "UI" it even react to touch! nice.
For now it's a bigger test.
Really raw idea what is what.
welcome screen done :P main menu (basic) done, checker in (basic)
I can make a backup and update of yss.
tbc...
-
Moving to jquery mobile... ufff
12/15/2022 at 17:43 • 0 commentsLong coding sessions. Now I think is done. All yss_calibration pages are using jqm or day don't crash :) Also rotation system now is working and scaling svg to proper size of view. :) Ui is now touch friendly. More to be done in ui section bat that later :P