1

(130 replies, posted in Bar Fourre-tout)

I also added a table/shelf extension on the Bike. It just sorts of wedges between the storage slot and the basket tank armor.... I mean basket cover. You can see it in the original picture stored on the far side of the bike. I did this because with the lid closed, my Bike ends up being an irresistible work surface, so I constantly have things I am working on or my tools on top of my Bike lid. However, I always need more tools out of the basket. So the extension is utilized in this situation when I just grab everything and slide it off the lid and onto the extension so I can get to more tools.

https://autumn.revolt.chat/attachments/rG3_TW9FpaPF0949eh3BNA8Mxk34g8TGg_o17AF1he

2

(130 replies, posted in Bar Fourre-tout)

The bike is suppose to have a horn on it to alert forklift drivers and anyone else. But the horns they have been buying have been coming in defective.. I have seriously been considering getting one of these Impact Train Horns, it comes with a wireless button. I would just mount the button to the steering arm and the horn under the basket and then I am set..

https://youtube.com/shorts/LUNiOottntI? … Px2UEQSqfb

The pockets on the inside of the basket are just a cut up Husky Bucket bag. In one of the pictures you will see some modified washers I used. drilled a hole in the husky bag, Then pinched it with 2 washers and some bolts so that the tension is on the washer and not the bag... kind of like a rivet ring.

https://m.media-amazon.com/images/W/MEDIAX_792452-T2/images/I/61WgCxHiiTL.jpg

Added an Issues List. The last issue, "print", I will need help with.

Original Post has been completely changed to a GUIDE.

I had found the post before and the correct wiki page a few times. But I had trouble understanding...  i looked  at it much more closely when you linked with the  reply. I still had to play around with it before I finally understood how it was supposed to work. Seems simple now, but before, i had yet to even understand the two folio numbering tabs were related.

OMG Thank You SCORPIO EIGHT ONE ZERO!!!!!!

https://autumn.revolt.chat/attachments/9yoEfZubZqJggSuH7lHwaVXtvcREUVIpRDj24GMGiV

Used two tables to give the illusion of one table.

SELECT folio AS Page FROM project_summary_view ORDER BY pos LIMIT 26 OFFSET 1

and

SELECT title FROM project_summary_view ORDER BY pos LIMIT 26 OFFSET 1

Didn't have to mess around with the broken UNION operator any more. Prefect nomicons/w00t

IS NOW A GUIDE!
IS NOW A GUIDE!
IS NOW A GUIDE!
IS NOW A GUIDE!
IS Now a.. *Takes Breath*

Below is a 2 minute video just showing that it is possible to run QET on a Android Tablet. NO-ROOT. Rooting of the device was not needed. Can be done on a stock android tablet and/or phone.

https://www.youtube.com/watch?v=qY2Vxa9Hh8Y

*Most everything has been removed from this original post, this post has now changed to a Guide since several of the issues have been solved.

                               INSTALLATION GUIDE

*$ indicates what you type in the Terminal Window. Do not include $.

  • Open Google Playstore in Andriod OS

  • Install UserLAnd - Linux on Andriod

  • Open UserLAnd

  • Start Distribution: Ubuntu

  • Select Desktop Environment: Minimal

  • Select Connection Type: Graphical

  • Select Graphic Settings that best fit your application (Probably Defaults)

  • <<WAIT FOR TERMINAL TO APPEAR>>

  • $ sudo apt update

  • $ sudo apt-get install software-properties-common

  • <<RESTART>> (Andriod: Overview Screen -> Swipe UserLAnd Closed -> Start UserLAnd -> Click Sessions Tab -> Long Click Ubuntu Session -> Stop Session -> Tap Ubuntu Session to Open)

                              https://launchpad.net/~scorpio/+archive … rotech-dev

  • $ sudo add-apt-repository ppa:scorpio/qelectrotech-dev

  • $ sudo apt update

  • $ cat <<EOF | sudo tee /etc/apt/preferences.d/40qelectrotech-devel

  • $ Package: qelectrotech*

  • $ Pin: version 0.100.*

  • $ Pin-Priority: 1001

  • $ EOF

  • $ sudo apt update

  • $ sudo apt-get install qelectrotech qelectrotech-data qelectrotech-examples qet-tb-generator pysimplegui

  • $ sudo apt-get install xfce4-session xfce4-goodies

  • <<RESTART>> (Andriod: Overview Screen -> Swipe UserLAnd Closed -> Start UserLAnd -> Click Sessions Tab -> Long Click Ubuntu Session -> Stop Session -> Tap Ubuntu Session to Open)

  • <<WAIT FOR UI TO FULLY LOAD>>

  • Enable Hotkeys
    See the above video for how hotkeys are turned on and appear in the bottom left.

  • Select Shift

  • Click in Background

  • Go To: Applications -> Graphics -> QElectroTech

*Remember your hotkeys when editing your schematics or you will get aggravated as you wonder why you are drawing lines or not able to drag elements, etc. etc. 

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. nomicons/smile

I will update this post as progress is made.

                               ISSUES LIST

As of: 12/27/2023

  • Step 7: Select Graphic Settings, Scaling Factor 1 causes a Aspect-Ratio mis-match between the resolution of the virtual machine and the resolution of the device itself in such a way that the height in the aspect ratio is higher in the virtual machine than on the device itself, ON SOME DEVICES. This causes, when fully zoomed out, the window on the virtual machine to expand out to the width causing you to have to always Pan up and down if you want to see the whole screen.

    The work around currently is to to enter desktop-top mode on the andriod device. This can currently be done using something like Samsung DEX mode, or if the andriod system is new enough, entering Developer Settings and turning on "Force Desktop Mode". Then connecting the andriod device, normally via USB-C to HDMI to a monitor or TV. Open UserLAnd in this environment and the Specified Geometry will be different when selecting the Scaling Factor. This may need to be put into the guide if an easier solution can not be found.

  • Unable to find a way to transfer files on and off the virtual machine. Obviously the environment can connect to the internet and it can even see some files and folders on the android OS, but .qet projects are hidden for some reason when using the UI's browser window. A lot more testing will need to be done to see the different ways this can be accomplished through UserLAnd.

  • Unknown if it is possible to setup a printer on this virtual machine. I don't have a printer or access to a network on my personal devices that do have a printer, so I will be unable to test this myself. If anyone wants to provide feedback on if they are able to, or the errors they get, because a lot of the errors are related to missing commands on the Ubuntu installation that we can fix, please make a reply.

It is not entirely impossible to move away from UserLAnd, the challenge and goal is to find a solution for the ARM64 android operating system where root is not required.

https://download.qelectrotech.org/qet/forum_img_2/Screenshot_20231224_055605_UserLAnd.jpg

https://autumn.revolt.chat/attachments/VhRkyMxr3FrOpOesltj5gUhQFwnTZmvEVpKXWWzJAP

In essence, this is what I was attempting to do. The Title page exists, but not in the Summary and not counted as a folio/page. Additionally, the roman numerals for Table of Contents and folio/page 1 being the actual schematic.

1. SQLite limitations are prohibiting me from making a compound select statement. An error exists when trying to incorporate math and the ORDER BY operator when in a COMPOUND SELECT query with the UNION operator. In fact this error is persistent when using UNION and ORDER BY with various other operators such as REPLACE().

2. Even if I successfully create the SQLite Query that I want, OFFSET is used to OFFSET the table output, as far as I can tell, there is no way to OFFSET the tables before you create the UNION. This means even if I get my roman numerals to appear at the top of the table, I will OFFSET them away when I want to OFFSET other parts of the table.

3. I can't figure out a way to get rid of the Table Header, so I can't even try faking it by creating more than 1 table and just have one sit on top of the other, creating the illusion of 1 table.

4. Now, I could create separate tables and keep the headers and try to build that into the aesthetic of the Summary design. I might write a query for a Table of Contents Table of more than 1 pages something like,

SELECT "I." AS Page, title FROM element_nomenclature_view WHERE pos =  '1' UNION SELECT "II." AS Page, title FROM element_nomenclature_view WHERE pos = '2'

I assume the above query would work, but in order to create the custom width columns by creating individual tables for each column, I would have to just do the above for title only, and manually create the boxes as drawings for the Page column. As an error is created if I don't pull from any specified column.

I could do something really dumb like

SELECT "I,." || date AS Page, FROM element_nomenclature_view WHERE pos = '1' UNION SELECT "II." || date AS Page, title FROM element_nomenclature_view WHERE pos = '2"

However, I would have to leave the date for the table of contents blank

5. Even if, I some how resolve all the issues above. QET does not allow me to modify the custom variables like %{folio-id} with math. Example where %{folio} = 1/30, (%{folio-id}-1) = (1-1) . Here I would be trying to get a result of 0. ((((!!!!!! If there is a way to do this, please please please let me know!!!!!!!!))))))

#5 kills the whole idea. Without a way to modify QET Custom Variables, there is no point in trying to work through the SQLite issues. My Title Blocks on each page will be incorrect even if I solve the summary issues.

I am actually going to abandon this idea all together. I do not believe this is a problem on the side of the QET team but more to do with limitations of SQLite. Trying to do compound SELECT statements while introducing math seems to break it if you do an ORDER BY. Which is strange, because ORDER BY shouldn't make a difference since ORDER BY is done to the unmodified values, not the ones I am modifying.

I have tried getting around this by using SELECT REPLACE("pos", value, value) and several other work arounds but they all break down when introducing ORDER BY. Even if I got it to work, I predict some other issues such as OFFSET modifies your resulting output and I can't see a way through SQLite to modify each table before you combine them.

Additionally, even if I found a work around, I can't make changes to QET variables. as far as I can tell, the custom variables you are allowed to set for headers don't allow you to introduce any sort of math which I would need to do with what I am attempting here.

The idea here was that for in a much larger project, I could number the Table of Contents separately with roman numerals and start page 1 with the actual schematic. Although it is close to being possible, I don't see a path forward to the finish line here.

If anyone else wants to expand upon the idea or knows of any solutions, it would be appreciated. nomicons/smile

10

(130 replies, posted in Bar Fourre-tout)

Hello Everyone,

Hopefully this is the correct place to post this, Google translate isn't the best...

My Introduction,

I am an industrial maintenance electrician in Atlanta, Georgia, USA, and have done electrical work in the same area for over 12 years now. I have done mainly commercial work, some industrial here and there but made the transition to the maintenance industrial side about a little more than a year ago.

I work for a large company of around 2,000 employees at one of their box plants in Atlanta, Georgia, USA. I am fast tracking my missing knowledge base at my new job with PLCs, electrical schematics, relay logic and more. Honestly, probably the most fun I've had in a long time.

One week, I had to quickly throw together a couple of conveyor lines with nothing but some photoeyes, relays, and a really old Allen Bradly PLC that I didn't have a way to interface with so no idea what it was doing. Managed to get that going but I wanted to make actual prints for my work even though what I threw together was only going to last maybe 6 months before being replaced. That led me to learning about AutoCAD and the sticker price shock led me to learn about QElectroTech

Since then, I have been using my conveyor line as a learning experience and been hacking away at my schematics when time permits. I have been stalking the QElectroTech IRC channel and their Revolt.chat channel for a couple weeks now. They suggested that I post my findings on a few topics that I worked on with summary and nomenclature tables which I plan to do here shortly.

I actually prefer the Euro style of prints over the American ladder logic and am using one of our electrical schematics from one of our production machines that I prefer over the others as a guide. Once I am done with these conveyor line prints, I plan to use these skills on one of our production machines that has very limited and missing prints. If I was hired on here a little sooner, I would probably be using them for 2 of our production machines that are missing their prints entirely, but they are being ripped out and replaced in less than 2 months, so no need.


https://download.qelectrotech.org/qet/forum_img_2/ride_depannage2.jpg
https://download.qelectrotech.org/qet/forum_img_2/ride_depannage1.jpg


Thanks,
-FoxTech

Just an additional note, it becomes a bit buggy when allowing it to automatically create additional folios with more than 1 table. The work around I found is to disallow this and create the tables manually and manually linking them.

I actually got really close with the following statement

SELECT "" || "I." AS Page, title from project_summary_view WHERE title = "Table of Contents" UNION SELECT pos-2, title from project_summary_view LIMIT 26 OFFSET 2

This actually returns all the rows I want, but I can't use the ORDER BY function or else it fails to return any results. The actual result without ORDER BY is very close to what I was attempting to do but it is showing the Table of Contents at the bottom. I also will have additional issues as stated above with the title blocks even if I solve this.

https://www.sqlite.org/lang_select.html#simpleselect

Section 3 Compound Select Statements, almost 3/4 of the way down that page it shows the ORDER BY being used with UNION. However, this is breaking my tables. nomicons/sad

I wanted to just add a little note to my previous posts of a good resource to pull from when writing these SELECT statements. However, I can only post 1 link per post so that is all this post is, just a link to a good resource.

Note: https://www.sqlite.org/lang_select.html is a good resource.

Tried searching this one to see if anyone had found a solution. It looks like someone might have using printf().

https://qelectrotech.org/forum/viewtopic.php?id=2464

I just created separate tables for each column but kept the rest of the statement the same and then modified the tables independently, this allows me to click and drag in order to modify the table columns and gives the illusion that it is 1 Table.

https://autumn.revolt.chat/attachments/DgjuDqy9AyJgXuive7QQbUw0bDqrFZlc0CL8HHFOuO/screenshot0002.png

Just something I figured out along the way. I don't know if it has been discussed already elsewhere.

https://autumn.revolt.chat/attachments/fiOzW9GlM6ncNhsjmLwubEGIvRd2sWNJ3yYkTCLt0O

SELECT
    diagram_position || ' - ' || position AS 'Page - Location'
        FROM element_nomenclature_view
            WHERE ( element_type = 'terminal' OR element_type = 'thumbnail' OR element_type = 'simple' OR element_sub_type = 'commutator' OR element_sub_type = 'coil' OR element_sub_type = 'protection') AND machine_manufacturer_reference !=''
                ORDER BY machine_manufacturer_reference, diagram_position, position, description, manufacturer, manufacturer_reference

Using the || to combine multiple columns into 1 and ' - ' just adding - as text with a space on either side.

So this whole idea started when I was messing with the SQL Tables for the first time in QET. I decided I wanted the Title Page of my project to be page 0 and not shown in a Table of Contents.

I originally had issues because Folio number shows the folio # / Total # of Folios. I wanted to only show the folio # and manipulate it. What I came up with was

SELECT pos-1 AS Page, title FROM project_summary_view ORDER BY pos LIMIT 26 OFFSET 1

https://autumn.revolt.chat/attachments/_J47BQ9GEhrjTM6xOH6w3ptCQFI0HO-oE-ddV_xHt0/screenshot0001.png

Found out pos is my folio # and the -1 allows me to modify the #. The OFFSET 1 allows me not to show page 0 in the Table of Contents as this is my Title page. However, I want to expand upon this but running into a couple of issues with doing so.

The first issue is the Title Block. %folio-num for the Page: number displays at folio/folio-total and adding a -1 just adds the -1 as a text. Example: 2/26-1. I was able to get around this with %previous-folio-num which works for the above specific example. Another smaller issue is that the page total is off by 1. I wasn't planning on figuring that out since it wasn't that big of a deal. However, more issues if I expand upon the idea.

The second issue is with multiple SELECT statements. I thought I could do something like SELECT "" || "I." AS Page, title from project_summary_view ORDER BY pos LIMIT 1 OFFSET 1; SELECT pos-2 AS Page, title from project_summary_view ORDER BY pos LIMIT 26 OFFSET 2

Was trying to get the Table of Contents to show up as I. and Folio 3 is Page 1. The above statement does not work. Even if it did, I will have further problems with the title blocks as I will at the very least need to make the folio # in the title block match my Page # in the Summary Table.