Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit c0091bd

Browse files
committed
prepared for public release
1 parent 73e6d61 commit c0091bd

10 files changed

Lines changed: 47 additions & 205 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cSpell.words": [
33
"Diavolito",
44
"Melozio",
5+
"Melozio's",
56
"Nespresso",
67
"Nespresso's",
78
"Vertuo",

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,61 @@ This project has two scripts, the generator and printer.
1111
## The generator
1212
The generator takes a simplified form of a pod's code called the ID to generate a code that can be passed to the printer. The ID has 4 segments of 1s and 0s, for example "1100 1101 0100 001101"
1313

14-
TODO: Example and table
14+
Here is a table of IDs from various tags (Thanks to [u/UnknownCofeeDrinker](https://www.reddit.com/user/UnknownCofeeDrinker/)). I found that you can mix segments from various IDs and still get a working barcode. Its just that I don't know what all the segments do.
15+
16+
| Name |Water Quantity| Segment 1 | Segment 2 | Segment 3 (Water quantity?) | Segment 4 |
17+
|------------------------|--------------|-----------|-----------|-----------------------------|-----------|
18+
| Alto Intenso | 414 ml | 1001 | 0010 | 1000 | 010110 |
19+
| Alto Dolce | 414 ml | 1111 | 0100 | 1000 | 010110 |
20+
| Giorno | 230 ml | 1010 | 1110 | 0100 | 001000 |
21+
| Colombia | 230 ml | 1100 | 0001 | 0010 | 010110 |
22+
| Melozio | 230 ml | 1100 | 1101 | 0100 | 010110 |
23+
| Odacio | 230 ml | 1100 | 0010 | 0100 | 010110 |
24+
| Stormio | 230 ml | 1100 | 0010 | 0100 | 010110 |
25+
| Madeline | 230 ml | 1010 | 0010 | 0100 | 010110 |
26+
| Vanizio | 230 ml | 1100 | 1101 | 0100 | 010110 |
27+
| Aflorazio | 150 ml | 1010 | 1000 | 1110 | 001110 |
28+
| Fortado | 150 ml | 1111 | 1011 | 1110 | 001110 |
29+
| Double Expresso Scuro | 80 ml | 1010 | 1011 | 0001 | 001110 |
30+
| Double Expresso Chiaro | 80 ml | 1100 | 1011 | 0001 | 001110 |
31+
| Diavolito | 40 ml | 1001 | 1101 | 1011 | 001101 |
32+
| Altissio | 40 ml | 1010 | 1101 | 1011 | 010101 |
33+
| Deca Intenso | 40 ml | 1010 | 0010 | 1011 | 010101 |
34+
| Paris Black | 40 ml | 1100 | 1000 | 1011 | 001101 |
35+
| Voltesso | 40 ml | 1001 | 0010 | 1011 | 010101 |
36+
37+
38+
For example, say I wanted to use Melozio's code but with only 40 ml of water, I can do this.
39+
```console
40+
> python generator.py 1100 1101 1011 010110
41+
42+
Output
43+
01110010110110101110010110010111001011010110110101011010011100011101101011010101100101110001110101101101010110010111000111010110111001011010
44+
45+
```
1546

1647
## The printer
1748
The printer takes a code and turns it into a printable image. The code should be 140 characters consisting of only 1s and 0s.
1849

50+
In the following example, each call is a single line, including the code.
1951
```console
2052
> python printer.py 01110010110110010010001101010111001011010101000100110110011100011101100100010011010101110001110101010001001101010111000111010101001000110110
2153

2254
> python printer.py -o outputPath.png 01110010110110010010001101010111001011010101000100110110011100011101100100010011010101110001110101010001001101010111000111010101001000110110
2355
```
2456

57+
# Printing and Testing
58+
After getting an image from the printer script, you can print it and test it out. But there are a few things you need to do before that.
59+
60+
1. import the image into a program like Google Docs, where you can control the size of the image. For Google Docs, drag the image into a blank document, click on the image and then "Image Options", and under "Size & Rotation" set the width to 2.26in
61+
![Google Docs formatting example](docs\GoogleDocsExample.png)
62+
63+
2. Print out the image and cut out the barcode.
64+
65+
3. Using a fine sharpie or black pen, go over the black sections to darken them. Without this step, my machine would not read the barcode.
66+
67+
4. Test it out!
68+
![A prepared barcode](docs\PreparedBarcode.png)
2569

2670
# Helpful links
2771
* https://www.reddit.com/r/nespresso/comments/d9xnv9/breaking_the_nespresso_vertuo_barcodes/

docs/GoogleDocsExample.png

76 KB
Loading

docs/PreparedBarcode.png

8.23 MB
Loading

generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _getID() -> tuple[str, str, str, str]:
3535
help="The ID to generate a code with. Formated like this, '1100 1101 0100 001101'" # noqa
3636
)
3737

38-
segments = parser.parse_args().code
38+
segments = parser.parse_args().ID
3939

4040
# verify the segments
4141
if len(segments) != 4:

notes/Barcodes.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

notes/CustomBarcodes.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

notes/Translation.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

notes/Workspace.md

Lines changed: 0 additions & 104 deletions
This file was deleted.

notes/Workspace2.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)