551

(96 replies, posted in Scripts)

Just for record:

#!/bin/bash
 
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
IFS="
"

 
BaseDir="qelectrotech-elements"
 
for d in `find $BaseDir -type d | sort`; do
  echo "processing directory $d"
  # html-Header:
  echo "<html><body>" > $d/index.html
  echo '<li><a href="../index.html">&larr;  Parent Directory </a></li><br><li><button class="spectrum-Button spectrum-Button--sizeM spectrum-Button--cta svelte-1gv5n3y cd17fc8d794774a44aa5bbe652ad93894-dom" onclick="history.back()">Back return</button></li>'  >> $d/index.html
  # Unterverzeichnisse auflisten:
  for sd in `find $d -maxdepth 1 -type d | sort`; do
    if [[ "$d" == "$sd" ]] ; then
      continue
    fi
    echo "sub-dir: $sd"
    echo "<a href=\"`basename $sd`/index.html\">`basename $sd`</a><br>" >> $d/index.html
  done
  # SVG-Dateien auflisten:
  for f in  `find $d -maxdepth 1 -name "*.svg" | sort` ; do
    echo "file: `basename $f`"
    svgdatei=`basename $f`
    elmtdatei="${svgdatei%.svg}.elmt"
    echo "<a href=\"$elmtdatei\" download>${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br><br>" >> $d/index.html
  done
  # html-Footer:
  echo "<li><a href="../index.html">&larr;  Parent Directory </a></li><br><a href="#" class="btn btn-default">Back to top ↑</a>" >> $d/index.html
  echo "</body></html>" >> $d/index.html
  echo ""
done
 
# blanks in filenames - back to original:
IFS=$OFS
# DONE!

552

(193 replies, posted in Import DXF)

Smurfeous wrote:

I have tried installing the windows executable. I unzip the file, run the program, click "install anyway" to the windows security message. When I try importing a DXF into the Element Editor it still says "Third party software required". The installation folder is empty.


QElectroTech V 0.90+c7891bc4cb0a58100c957a06d79751d3

https://qelectrotech.org/forum/viewtopi … 112#p17112

achim wrote:

Hi Joel

C:\Users\"user"\Application Data\qet\binary
I think you have to create the folder by yourself

Achim

Voir peut-etre ici: https://qelectrotech.org/forum/viewtopi … 256#p16256

https://qelectrotech.org/forum/viewtopi … 344#p19344

Bonjour,

non! on ne peux pas inverser les lignes( lettres)/colonnes(chiffres) des folios, c'est codé en dur dans le code, ça ne gène en rien un électricien qui sait lire un schéma:

https://forum-photovoltaique.fr/viewtop … e7dfa9c383
https://forum.gce-electronics.com/t/qel … px/3962/85

Control + mouse permet un déplacement fin
de même
ALT + moving keys permet aussi un déplacement aussi fin, voir plus. Suivant le réglage de la grille dans la page contrôle.

Bonjour,

https://download.qelectrotech.org/qet/forum_img_2/grille_clavier_config.png

Hello Tiz,
change element in collection police size, you need to change for these elements also the UUID/
Put these element in other directory:
see my script bash linux
https://download.qelectrotech.org/qet/s … en_uuid.sh

After you re drad and dropt this element un menu appair chose owervrite all elements placed by the news.

Other workatound it 's to edit XML .qet file.Please backup your projects before try.

558

(36 replies, posted in Bar Fourre-tout)

Ou dans la collection-contrib
https://github.com/qelectrotech/qelectr … nt-contrib


https://download.qelectrotech.org/qet/e … index.html

Cordialement,
Laurent

559

(36 replies, posted in Bar Fourre-tout)

Bonjour dans la collection officielle:
https://download.qelectrotech.org/qet/e … index.html

560

(193 replies, posted in Import DXF)

Hello Hamish,

thank you for your support.

I think your MAC is an Intel processor so x86_64, now Apple is releasing an Apple silicon chip "M1, M2, M3" it's like your smartphone an ARM64 chip so the code compiled on X86_64 doesn't work directly but emulated with roseta 2 the code can work more slowly with sometimes bugs, on the other hand the code compiled on arm64 environment can't work on an intel processor...


So use https://download.qelectrotech.org/qet/b … .0/osx_64/ on Intel Mac.

Best regards
Laurent

561

(130 replies, posted in Bar Fourre-tout)

Nice tip, thanks.

Importing and exporting files in UserLAnd:
https://github.com/CypherpunkArmory/Use … n-UserLAnd
Running Linux apps on Android without rooting your phone:
Printing with CUPS does not immediately work either.
https://www.linux-magazine.com/Issues/2 … (offset)/3

563

(130 replies, posted in Bar Fourre-tout)

The electrical horn wouldn't be a problem with us, we've got quite a few in our shop, but you'd have to fiddle with it and add a battery...

I love your bike, which is very well organised. Unfortunately, that's not possible in our site, where we'd need around 25 of them for each electrician and mechanic guys, and the factory is several hectares in size and has several floors...

That's why I carry more than ten kilos of tools with me... like a cowboys or special force, and I walk an average of ten kilometres per 8-hour shift...

Unfortunately I'm now broken all over, and I'll have to make do with a desk job...
I'm no longer healthy enough to work 5x8 after 35 years in 4x8 and 5x8, or to be on the front line.



I have seriously been considering getting one of these Impact Train Horns,

lol nomicons/smiley-green

564

(96 replies, posted in Scripts)

Added automatic download element file when you click on *.elmt link text.

- echo "<a href=\"$elmtdatei\">${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br>" >> $d/index.html
+echo "<a href=\"$elmtdatei\" download>${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br>" >> $d/index.html

Added return to history back button:

echo '<li><a href="../index.html">Parent Directory </a></li><br><br><li><button class="spectrum-Button spectrum-Button--sizeM spectrum-Button--cta svelte-1gv5n3y cd17fc8d794774a44aa5bbe652ad93894-dom" onclick="history.back()">Back return</button></li><br>'  > $d/index.html

Bonjour,

tu dois facilement importer une feuille de calcul Libreoffice, comme dans cette video.

566

(96 replies, posted in Scripts)

Added the back button to the parent directory, to make navigation easier.


<a href="../index.html">Parent Directory </a><br>
#!/bin/bash
 
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
IFS="
"

 
BaseDir="qelectrotech-elements"
 
for d in `find $BaseDir -type d | sort`; do
  echo "processing directory $d"
  # html-Header:
  echo "<html><body>" > $d/index.html
  echo "<a href="../index.html">Parent Directory </a><br>"  > $d/index.html
  # Unterverzeichnisse auflisten:
  for sd in `find $d -maxdepth 1 -type d | sort`; do
    if [[ "$d" == "$sd" ]] ; then
      continue
    fi
    echo "sub-dir: $sd"
    echo "<a href=\"`basename $sd`/index.html\">`basename $sd`</a><br>" >> $d/index.html
  done
  # SVG-Dateien auflisten:
  for f in  `find $d -maxdepth 1 -name "*.svg" | sort` ; do
    echo "file: `basename $f`"
    svgdatei=`basename $f`
    elmtdatei="${svgdatei%.svg}.elmt"
    echo "<a href=\"$elmtdatei\">${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br>" >> $d/index.html
  done
  # html-Footer:
  echo "</body></html>" >> $d/index.html
  echo ""
done
 
# blanks in filenames - back to original:
IFS=$OFS
# DONE!

Edit: changed to

echo "<li><a href="../index.html">Parent Directory </a></li>"  > $d/index.html

567

(96 replies, posted in Scripts)

Benchmark scripts on my Debian workstation
8340 elements dans 1110 categories (soit 9450 fichiers)

Clean my local git repository:

cd qelectrotech-elements/
git clean -d -x -f
cd ..

Convert *.elmt to *.SVG:

time ./toSVG.sh

real    0m55,232s

Add index.html pages in all directory:

time ./toHTMLsh

real    0m47,843s

Ssh sync to remote:

time rsync -e ssh -av -W --delete-after --no-owner --no-g --chmod=g+w --progress  --exclude='.*/' /home/laurent/Qet_scripts/qelectrotech-elements/qelectrotech-elements/  server:download.qelectrotech.org/qet/elements/

real    0m30,741s

568

(96 replies, posted in Scripts)

@plc-user:

good work, thanks plc-user. nomicons/wink
Preview on remote, example:
https://download.qelectrotech.org/qet/e … index.html

ps: I changed scale factor to 2.0 instead of 5.0.

569

(96 replies, posted in Scripts)

Just for the record:

diff --git a/toSVG.sh b/toSVG.sh
index 98101ca..976a899 100755
--- a/toSVG.sh
+++ b/toSVG.sh
@@ -3,9 +3,9 @@
# scales QET - Element-files in the directory from where it was called and
# all sub-dirs by the factor given here:
 
-Skalierung="1.0"
-SkalierProg="/home/ich/Projekte/c_c++/QET_ElementScaler/QET_ElementScaler"
-
+Skalierung="5.0"
+#SkalierProg="/home/ich/Projekte/c_c++/QET_ElementScaler/QET_ElementScaler"
+SkalierProg="/home/laurent/Qet_scripts/qelectrotech-elements/QET_ElementScaler"
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
@@ -16,7 +16,7 @@ for i in  `find . -name "*.elmt"` ; do
   echo "processing $i"
   # With the construct in curly brackets the file extension
   # is changed accordingly
-  "$SkalierProg" --toSVG -o "$i" > "${i%.elmt}.svg"
+  "$SkalierProg" --toSVG -o -F "$Skalierung" "$i" > "${i%.elmt}.svg"
   done
 
# blanks in filenames - back to original:
rsync -e ssh -av -W --delete-after --no-owner --no-g --chmod=g+w --progress  --exclude=''.*/ /home/laurent/Qet_scripts/qelectrotech-elements/qelectrotech-elements/  server:download.qelectrotech.org/qet/elements/
rsync -e ssh -av -W --delete-after --no-owner --no-g --chmod=g+w --progress --exclude='.*/'  /home/laurent/Qet_scripts/qelectrotech-element-contrib/qelectrotech-element-contrib/elements/   server:download.qelectrotech.org/qet/elements_contrib/

@plc-user: https://github.com/plc-user/QET_ElementScaler/pull/2

Tu as aussi un aperçu en SVG de ces éléments ici, grace au travail de Plc-user. nomicons/wink

https://download.qelectrotech.org/qet/e … b/71_rgie/
Il te suffit de parcourir les dossiers, et de cliquer sur les fichiers en SVG.


Laurent

Bonjour Pierre,
https://github.com/qelectrotech/qelectr … nt-contrib
https://download.qelectrotech.org/qet/forum_img_2/download_zip_github.png

There are still a few more things to figure out, such as if you are able to Print from this Virtual Machine, and how to transfer files on and off the Virtual Machine. It will be awhile until I start hacking away at this problem, so if anyone else wants to pick up the torch, please feel free to figure these things out.  I will update this post as progress is made.

Maybe....
1) You have network working also, try to install samba packages  to share yours files between Windows or linux machines. I think it's always installed.

2) Buy a usb adapter and key formatted in FAT 32, try to find it or mount it in your VM. Or try to found your internal SD card if you have a little shared partition in FAT32.

3) maybe you can try to print with WIFI .... If yours printers was connected to your router by cables or Wifi..

Tip: on tablet with this little screen, stack the widgets one on top of the other, in order to have more room for your diagram...


Good hacking...

573

(96 replies, posted in Scripts)

nomicons/wink

I't s only a little search on forum... nomicons/angel

Great!! nomicons/wink

@Foxtech: Wow it could be of interest to a lot of people.

I saw many many guys ask me, these guys want to launch QET on a Ipad or Android tablet..
The tablets allow you to take notes or correct a diagram in front of the electrical cabinets...

Maybe be to more easy on Ipad pro M1/M2? -> It doesn't seem very safe I think...