• Stars
    star
    1,530
  • Rank 30,597 (Top 0.7 %)
  • Language
    JavaScript
  • Created over 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

knitting web app frontend and backend

Knitweb

1. What is Knitweb

Knitweb is an app frontend and backend that works together with Knitlib server and uses the Knitpat format.

2. How to install Knitapps

2.1. How to install the Knitlib server and Knitlib

To install the Knitlib server please follow the instructions here: https://github.com/fashiontec/knitserver

2.2. How to install the webapp

  • Requirements
  • Step by Step Installation on Linux and Windows

3. Knitapps Online/Offline

3.1 How to use the Knit web app - Offline Pattern Generation (when it is not connected to the server/machine)

On Linux

  • Initial setup(first time after cloning the project):
  1. Go to /knitweb/bin/linux directory.
  2. run the setup.sh file by typing sh setup.sh (this step is needed to download required binaries)
  • Execute application:
  1. Go to /knitweb/bin/linux directory.
  2. run the run.sh file typing sh run.sh

On Windows

  • Initial setup(first time after cloning the project):
  1. Go to /knitweb/bin/windows directory.
  2. run the setup.bat file (this step is needed to download required binaries).
  • Execute application:
  1. Go to /knitweb/bin/windows directory.
  2. run the run.bat file.

If powershell is missing in your environment variables;

Add this to your Path environment variable

%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

3.2 How to use the Knit web app - Online (when it is connected to the knitting server/machine)

  • It is same procedure as the using offline mode. Only difference is in online mode server will be available for configure knitting. In offline mode app will indicate server is not available when trying to configure knitting. In this mode user can download generated pattern and use it later in a machine where server is available.

On Linux

  • Initial setup(first time after cloning the project):
  1. Go to /knitweb/bin/linux directory.
  2. run the setup.sh file by typing sh setup.sh (this step is needed to download required binaries)
  • Execute application:
  1. Go to /knitweb/bin/linux directory.
  2. run the run.sh file typing sh run.sh

On Windows

  1. Go to /knitweb/bin directory.
  2. run the run.bat

4 Working with Knitapps

4.1 Knitting pattern editor

Pattern Generator Usage:

  1. Load a pattern using 'Browse'.
  2. Then tick 'crop' if the pattern wants to be cropped and then click 'Draw'.
  3. Then select available yarn colours from the pallette.
  4. Then Click 'Generate Patteren'.

4.2 User Interface and Drawing Tools

There are two kinds of drawing tools included inside the pattern grid.

  1. Square/Rectangular pattern drawing.
  2. Free hand pattern drawing.
  • Under Square/Rectangular pattern drawing user will be able to draw rectangular shapes and add colours to the shape using colour pallette.

  • Under Free hand pattern drawing user will be able to draw using free hand and add colour values to the shape drawn.

Note: These drawing tools are now used to edit the patterns that are loaded from a file. This can be improved such that user can draw a pattern from scratch using these tools that can be used for knitting.

4.2.1 Navigation bar options

The navigation bar offers the following functions:

  • Open
  • Download Pattern
  • Import Pattern

The User is able to download the pattern after editing without going for a knit job configuration. alt tag

4.2.2 Loading of a pattern / image

Step 1: Choose image/pattern file from choose file dialog. It will load a image file to the image loader [left side] and it will load the preview of the pattern to the window at the right side.

alt tag

4.2.3 Crop/Rotate of a pattern

Step 1:Enable crop function by checking โ€œEnable Croppingโ€ check box. Step 2: Select cropping area from the pattern and the click crop button at the bottom-right of the image loader. It will load the cropped pattern in the preview window. You can also rotate the pattern from the preview window before editing.

alt tag

4.2.4 Add available yarn color

Step 1:User can add available yarn colors before pattern generation by clicking add yarn color button. Colour palette is shown to the user after clicking the button.

alt tag

4.2.5 Generate pattern

Step 1: Click generate pattern icon after selecting yarn colors. Then pattern will be generated for a 100 by 100 grid as the default parameters. User can regenerate the pattern by entering row and column values and regenerate the pattern.

alt tag

4.2.6 Square/ Free Hand tool

Step 1: Select Square or free hand tools from the radio panel. By default it is square tool. alt tag

Step2: Select a color from colour palette and select fill if you want to add the colour for the selected area. alt tag

4.2.7 Show Color Regions function

Step1:Select area from the square selection if you want a color regions for selected area. Otherwise generate color regions for all area by selecting โ€œShow Colour Regions[all area]โ€. Black coloured border will be shown around the region alt tag

Step2: Add a colour selected in colour palette by clicking on the relevant area you want to edit by changing colour. In the example bottom region is recolored. alt tag

4.2.7 Available Ports/Machine type

Step1: User is shown available ports and machine types available for knitting. If it is not shown click refresh button. Here knit web client is communicates with the knit lib server to get data. alt tag

Step2: After editing is done click โ€œProceed Knittingโ€ button to create a knit job for the pattern.

4.2.8 Knitting Simulator

Knitting simulator window will show the edited pattern. Column and row will show current stitch's knitting row and column number. Colors field show number of colour values used in the pattern. Also there are inputs taken such as Start Line, Infinite repeat, Start Needle, Stop Needle used for configuration of a knit job. alt tag

After configuration options are available to start knit job, pause and stop knit job. alt tag

####Translate application page alt tag This feature enables translation of application fields text into several languages such as English, German, Sinhala. Solution is added such that any language can be added to the application just by editing a language data file. Therefore it is a scalable solution. German translation is shown below.

alt tag

4.3 Configure and Run a Knit Job

4.3.1 Select communication Port for knit job

alt tag

Step1:select "port" at the pattern editor interface. If port is not updating click refresh button.

4.3.2 Select Machine type for knit job

alt tag

Step1:select "Machine Type" at the pattern editor interface to select the machine type(single/double).

4.3.3 Create knit job

alt tag

Step1:Click "proceed to knitting". Along with that knitweb is creating a knitjob by sending port id and plugin details to the knitlib server.

4.3.4 Configure knit job

alt tag

Step1:In knitting simulator window click "configure" and it will init and configure knit job by sending num of colors,fileurl and imagedata to the knitlib server.

4.3.4 Start knit job

alt tag

Step1:clicking start it will start knitting process for the edited pattern. Knitting progress is shown to the user after clicking start.

More Repositories

1

visdom

A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Torch and Numpy.
Python
10,012
star
2

open-event-server

The Open Event Organizer Server to Manage Events https://test-api.eventyay.com
Python
2,906
star
3

phimpme-android

Phimp.me Photo Imaging and Picture Editor https://play.google.com/store/apps/details?id=org.fossasia.phimpme
Java
2,576
star
4

susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
Java
2,503
star
5

susi_android

SUSI.AI Android App https://play.google.com/apps/testing/ai.susi
Kotlin
2,419
star
6

open-event-frontend

The frontend for the Open Event API Server https://test.eventyay.com
JavaScript
2,335
star
7

open-event-droidgen

Open Event Android App Generator https://github.com/fossasia/open-event-android/raw/apk/sample-apk-fossasia17-development.apk
Java
2,048
star
8

pslab-android

PSLab Android App https://play.google.com/store/apps/details?id=io.pslab
Java
2,046
star
9

susi.ai

SUSI.AI Web Client https://susi.ai
JavaScript
2,033
star
10

open-event-wsgen

Open Event Website App Generator https://sched.eventyay.com
JavaScript
2,013
star
11

open-event-attendee-android

Open Event Attendee Android General App https://github.com/fossasia/open-event-android/blob/apk/open-event-dev-app-playStore-debug.apk
Kotlin
1,947
star
12

star-me

Star FOSSASIA Repositories on Github and Support the Community
JavaScript
1,905
star
13

fossasia.org

FOSSASIA Website https://fossasia.org
Less
1,883
star
14

susi_iOS

SUSI AI iOS app http://susi.ai
Swift
1,869
star
15

loklak_search

Frontend Search for loklak server https://loklak.org
TypeScript
1,831
star
16

badgemagic-android

Badge Magic with LEDs - Android App https://play.google.com/apps/testing/org.fossasia.badgemagic
Dart
1,828
star
17

badgeyay

Attendee Badge Generator for Conferences
JavaScript
1,787
star
18

open-event-organizer-android

Open Event Mobile App for Organizers and Entry Managers https://play.google.com/store/apps/details?id=com.eventyay.organizer
Java
1,784
star
19

meilix

Beautiful Linux System https://meilix.org | APT Repo: http://meilix.fossasia.org
Python
1,772
star
20

pslab-desktop

PSLab Desktop Application https://pslab.io
JavaScript
1,763
star
21

susper.com

Susper Decentralised Search Engine https://susper.com
TypeScript
1,734
star
22

open-event

Open Event Project, Samples, Documentation and Artwork http://open-event-dev.herokuapp.com
Python
1,701
star
23

neurolab-android

NeuroLab Android https://github.com/fossasia/neurolab-android/raw/apk/neurolab-dev-debug.apk
Java
1,700
star
24

labs.fossasia.org

Projects Website for FOSSASIA http://labs.fossasia.org
CSS
1,669
star
25

query-server

Query Server Search Engines
Python
1,659
star
26

gci16.fossasia.org

FOSSASIA Google Code-In Website 2016/17 http://gci16.fossasia.org
HTML
1,652
star
27

pslab-hardware

PSLab Hardware Design and Schematics https://pslab.io
Prolog
1,642
star
28

codeheat.org

Codeheat Coding Contest Website https://codeheat.org
Less
1,628
star
29

pslab-python

Python Library for PSLab Desktop: https://pslab.io
Python
1,624
star
30

pslab-scripts

Pocket Science Lab - Scripts for Sensor Experiments
Python
1,604
star
31

susi_linux

Hardware for SUSI AI https://susi.ai
Python
1,604
star
32

flappy-svg

Flappy Bird in SVG. Play it at http://fossasia.github.io/flappy-svg/
JavaScript
1,604
star
33

gci17.fossasia.org

FOSSASIA Google Code-In Website 2017/18 https://gci17.fossasia.org
CSS
1,598
star
34

gci15.fossasia.org

FOSSASIA Google Code-In Website 2015/16 http://gci15.fossasia.org
HTML
1,596
star
35

2017.fossasia.org

FOSSASIA Summit 2017 https://2017.fossasia.org
HTML
1,580
star
36

2018.fossasia.org

FOSSASIA Summit 2018 https://2018.fossasia.org
HTML
1,577
star
37

fossasia-communities

FOSSASIA API Files of Communities in Asia
1,576
star
38

susi_skill_cms

A web application framework to edit susi skills http://skills.susi.ai
JavaScript
1,572
star
39

open-event-attendee-ios

iOS app for open event
Swift
1,570
star
40

gci14.fossasia.org

FOSSASIA Google Code-In Website 2014/15 http://gci14.fossasia.org
JavaScript
1,569
star
41

2016.fossasia.org

FOSSASIA Summit 2016 https://2016.fossasia.org
CSS
1,564
star
42

2012.fossasia.org

FOSSASIA Summit 2012 Event Site https://2012.fossasia.org
CSS
1,563
star
43

knittingpattern

A Python Library for Knitting Patterns
Python
1,562
star
44

loklak_webclient

loklak web application
JavaScript
1,553
star
45

pslab-firmware

Firmware for PSLab Open Hardware Platform https://pslab.io
C
1,550
star
46

loklak_wok_android

"loklak wok" is a harvesting peer for the loklak_server https://github.com/fossasia/loklak_wok_android/raw/apk/loklak_wok_1.2_20160201.apk
Java
1,549
star
47

directory.api.fossasia.net

Python
1,547
star
48

neurolab-hardware

Neurolab Hardware
1,541
star
49

yaydoc

Docs! Yay! http://yaydoc.org
JavaScript
1,540
star
50

2015.fossasia.org

FOSSASIA Summit 2015 Event Site https://2015.fossasia.org
CSS
1,539
star
51

susi_chromebot

SUSI.AI Chrome Extension
JavaScript
1,538
star
52

meilix-systemlock

Meilix system lock
Python
1,537
star
53

2014.fossasia.org

FOSSASIA Summit 2014 Event Site http://2014.fossasia.org
HTML
1,537
star
54

x-mario

x-mario, the gaming distro
Shell
1,534
star
55

phimpme-drupal

Phimp.me - Photo App on Drupal
PHP
1,534
star
56

knitlib

Knitting backend library for knitting machines
Python
1,532
star
57

yaydoc-artwork

Open Source Books
1,532
star
58

phimpme-wordpress

Phimp.me - Photo App on Wordpress
PHP
1,532
star
59

sg18.sciencehack.asia

UNESCO Hackathon Website at the FOSSASIA Summit Singapore https://sg18.sciencehack.asia
CSS
1,532
star
60

searss

Search to RSS tool
Python
1,531
star
61

CommonsNet

Sharing and Transparency for WiFi Networks
JavaScript
1,531
star
62

meilix-generator

WebApp for generating a custom ISO image based on Meilix http://meilix.org
HTML
1,530
star
63

pslab-case

PSLab Case https://pslab.io
1,530
star
64

fossasia.net

FOSSASIA.net Website https://fossasia.net
HTML
1,530
star
65

2011.fossasia.org

FOSSASIA Summit 2011 Event Site http://2011.fossasia.org
HTML
1,530
star
66

unesco.sciencehack.asia

UNESCO Hackathon Website https://unesco.sciencehack.asia
CSS
1,530
star
67

pslab-expeyes

PSLab for ExpEYES - Science Experiments and Data Acquisition for Physics Education https://pslab.io
Python
1,529
star
68

api.fossasia.net

FOSSASIA API
JavaScript
1,529
star
69

xmario_buildscript

x-mario build script
Shell
1,529
star
70

fossasia-nodemailer

JavaScript
1,529
star
71

2023.fossasia.org

HTML
1,528
star
72

hotelxoai.com

The Open Source Hotel in the Mekong Delta in Vietnam
HTML
1,527
star
73

2010.fossasia.org

FOSSASIA Summit 2010 Event Site http://2010.fossasia.org
HTML
1,527
star
74

fossasia11-drupal

FOSSASIA 2011 Drupal Site
PHP
1,526
star
75

blog.fossasia.org

Issue Tracker for https://blog.fossasia.org
1,526
star
76

susi_smart_box

SUSI.AI Smart Box https://susi.ai
1,526
star
77

fossasia10-drupal

FOSSASIA 2010 Drupal Site
PHP
1,525
star
78

perspektive89.com

Open Source Journal Perspektive89.com
1,525
star
79

cmap.api.fossasia.net

FOSSASIA Community Map
JavaScript
1,523
star
80

feed.api.fossasia.net

PHP
1,522
star
81

loklak-webtweets

FOSSASIA Tweets with loklak http://fossasia.github.io/loklak-webtweets/
Less
1,522
star
82

foss.vn

FOSS.vn Website http://foss.vn
HTML
1,522
star
83

labyrinth

FOSSASIA Labyrinth
JavaScript
1,519
star
84

pslab-test-jig

PSLab Test Jig - Boards to test PSLab hardware https://pslab.io
1,518
star
85

jugaadfest.com

Jugaadfest in India https://jugaadfest.com
HTML
1,518
star
86

knitpat

Knitting Pattern Format
Python
1,518
star
87

susi_tweetbot

Twitter Bot for Susi http://susi.ai
JavaScript
1,517
star
88

open-event-scraper

Google spreadsheet parsing for Open Event JSON
Python
1,516
star
89

fossasia.github.io

FOSSASIA.GitHub.io
HTML
1,516
star
90

knitserver

JavaScript
1,515
star
91

open-event-next

Open Event Frontend "Next Version" with Vue.js
TypeScript
1,515
star
92

susi_skill_data

A storage place for SUSI.AI skills https://susi.ai
1,514
star
93

loklak_tweetheatmap

Heat map with tweets by search query using Loklak API and OpenLayers 3
JavaScript
1,513
star
94

sciencehack.asia

Science Hack Website http://sciencehack.asia
CSS
1,512
star
95

fossasia-artwork

Artwork related to FOSSASIA
1,512
star
96

susi_telegrambot

Susi Telegram Bot http://susi.ai
JavaScript
1,511
star
97

timeline.api.fossasia.net

JavaScript
1,511
star
98

susi_fbbot

Susi Facebook Bot http://susi.ai
JavaScript
1,510
star
99

susi_slackbot

Ask Susi Messengers http://susi.ai
JavaScript
1,510
star
100

kniteditor

Kniteditor
Inno Setup
1,509
star