@max_morais_dmm thanks for quick response. Still same issue seen as below… also note running ‘echo printnode_integration > sites/apps.txt’ wipes out existing entries - if anyone else tries this. Had to put back to original afterwards.
[frappe@erpnext-dev frappe-bench]$ ./env/bin/pip install -e ./apps/printnode_integration
Obtaining file:///home/frappe/frappe-bench/apps/printnode_integration
Requirement already satisfied: frappe in ./apps/frappe (from printnode-integration==0.0.1)
Collecting printnodeapi (from printnode-integration==0.0.1)
Could not find a version that satisfies the requirement printnodeapi (from printnode-integration==0.0.1) (from versions: )
No matching distribution found for printnodeapi (from printnode-integration==0.0.1)
[frappe@erpnext-dev frappe-bench]$ echo printnode_integration > sites/apps.txt
[frappe@erpnext-dev frappe-bench]$
After some digging, I found similar cases where pip required ‘–pre’. Ran the below and was able to install without issue.
@max_morais_dmm any logging available for timeouts received?
Was able to setup the PrintNode Settings with API key - successfully pulls the test computer I added and lists out the printers. Adding an action was also no issue - created one for Sales Invoice.
When trying to use the Print Node Integration button or the action on Submit in Sales Invoice, it sits at below screen for a while, then I receive a 504 Gateway Time-out in console (nothing else) and a frappe prompt Request Timed Out. Could this be a symptom of the install issue?
Great module, this would be something that should be implemented in the core.
Did you consider using https://qz.io/ ? It seems to do something similar as Print Node but is LGPL licensed.
I’m not a developer so I could be completely wrong but I just wanted to point your attention to it.
@Bas_de_Reus I planned qz.io as the primary option, but Qz has one limitation:
We cannot connect trought the server, so I could not print PDF or Attachment files
Another point is, some speedups that printnode provide to me, like know the devices connected, and the hability to define one action, targeting a printer is impossible into the qz.io, due the API of Qz.io only works in your machine.
If the server instance of ERPNext need access to this, I need to open an ssh tunnel for each machine connected to ERPNext that have an instance of qz.io running, to can send documents to the printer
So you may imagine, why I decided to don’t go trought qz
@max_morais_dmm
Thanks ,
i installed your app and got a 1 month of printnode to check , but i see there is no print node client available for linux xD , only for windows and mac.
no way around it?
Also i noticed that print node can only print in pdf formats ,
I want it to print POS reciepts through POS like normally we do in pos submit a transaction and print…
can it do that?
I’m not the developer of Print Node, I just choice the service by the convenience and facility, I know that they develop the product in Python, they may can provide an way yo tou connect trought linux.
Yes, you can print POS Receipts
When you configure one Action like here
The option “Call Print After” exists for the “Point Of Sales”
When the POS syncronize the Invoice with the backend, it will be sent to the printer!
I dont have plans, neither the options, to integrate this with pages or Reports for now, due the nature of the new POS, it’s a bit crazy to do that, because if your POS is in offline mode, the print-format is only compatible with JavaScript, if the POS is online mode, the print format is compatible with Jinja.
And ESCPOS Print formats are based on the Jinja templates.
These are limitations defined by the ERPNext Point of Sales, is because that I ever plan my integrations in a point that I’ll be able to ensure that the integration will work, without handle some special cases like the Point of Sales. So, linking this with a Sales Invoice, when your Point of Sales Syncronize with Backed, everything is printed!
@max_morais_dmm
As you did a very good job writing this module and it seems a lot of people like it. Would you consider to contribute is to the ERPNext core and send a PR?
I think a lot of people would benefit from this and it seems like a generic addition.
@max_morais_dmm
i am having a tough time with the XML print format - i want to duplicate the POS invoice of the sales invoice to make it XML ESC POS compatible.
Heres the actual server side POS Invoice :
what out of these i can use , and how can i replicate–
i am guessing style tags will go also media…
but other than that how-
i created a new custom print format of type server and copy pasted it and removed the style tags…
Can you help me out please?
@Taher_Khalil, right now, the unique way that you can do the print format, is following the standards for XML ESC/POS
One important fact is, thermal printers, aren’t like normal printers, it don’t cover all capabilities that do you want, and the ESC/POS is a bit limited, each model and each vendor, define they on support for ESCPOS
as reference for wikipedia:
Derivation[edit]
ESC/P derives its name from the start of the escape sequences used, which start with the escape character ESC (ASCII code 27). As an example, ESC E will switch to printing in bold font, while ESC F switches off bold printing. The ESC/P control codes are sometimes also referred to as Epson LQ codes, as they were made popular by the Epson LQ series of dot matrix printers, even though ESC/P was introduced long before LQ printers.
Variants[edit]
There are several variants of ESC/P, as not all printers implement all commands.
ESC/P J84 adds special support for Japanese computers.
ESC/P2 is a more recent variant of ESC/P by Epson. ESC/P2 is backward compatible with ESC/P, but adds commands for new printer features such as scalable fonts and enhanced graphics printing.
ESC/P-R is a variant now used by Epson on many inkjet printers.[1]
ESC/POS is a variant for controlling receipt printers as commonly used at the point of sale (POS)[2]
So, don’t expect that your termal printer will follow the same printer quality that you have in the normal printers, beause it wont will.
XML-ESCPos ensure that the minimal commands are provided pro printer something in a thermal device
Oh I see ,
Guess I will have to do a bit more digging around and work on it …
Thanks , and so let us know if you have any similar awesome apps for various functionalities.
Regards,
max_morais_dmm
October 22 @Taher_Khalil, right now, the unique way that you can do the print format, is following the standards for XML ESC/POS
One important fact is, thermal printers, aren’t like normal printers, it don’t cover all capabilities that do you want, and the ESC/POS is a bit limited, each model and each vendor, define they on support for ESCPOS
as reference for wikipedia:
> Derivation[edit] ESC/P derives its name from the start of the escape sequences used, which start with the escape character ESC (ASCII code 27). As an example, ESC E will switch to printing in bold font, while ESC F switches off bold printing. The ESC/P control codes are sometimes also referred to as Epson LQ codes, as they were made popular by the Epson LQ series of dot matrix printers, even though ESC/P was introduced long before LQ printers. Variants[edit] There are several variants of ESC/P, as not all printers implement all commands. ESC/P J84 adds special support for Japanese computers. ESC/P2 is a more recent variant of ESC/P by Epson. ESC/P2 is backward compatible with ESC/P, but adds commands for new printer features such as scalable fonts and enhanced graphics printing. ESC/P-R is a variant now used by Epson on many inkjet printers.[1] ESC/POS is a variant for controlling receipt printers as commonly used at the point of sale (POS)[2]