Skip to content

Commit baff205

Browse files
add README instructions
Signed-off-by: Francois Berder <[email protected]>
1 parent 908881f commit baff205

File tree

1 file changed

+86
-1
lines changed

1 file changed

+86
-1
lines changed

README.md

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,87 @@
11
# PyLetMeCreate
2-
Python Binding of LetMeCreate library.
2+
3+
This is the python binding of LetMeCreate library. It requires Python 3. See [LetMecreate](https://github.com/francois-berder/LetMeCreate) for the complete list of interface and click board supported.
4+
5+
## Integration in Openwrt
6+
7+
Before reading any further, make sure that you installed the LetMeCreate library as shown on its github page.
8+
9+
10+
### Installation steps
11+
12+
Clone the library and openwrt somewhere on you computer:
13+
14+
```sh
15+
$ mkdir ci-40
16+
$ cd ci-40
17+
$ git clone https://github.com/CreatorDev/openwrt.git
18+
$ mkdir -p custom/pyletmecreate
19+
$ cd custom/pyletmecreate
20+
```
21+
22+
#### Development configuration
23+
24+
If you are interested in modifying the library, getting the latest changes, then clone it in custom/pyletmecreate folder you just created:
25+
26+
```sh
27+
$ git clone https://github.com/francois-berder/PyLetMeCreate.git
28+
```
29+
30+
Copy the Makefile to the right location:
31+
```sh
32+
$ cp PyLetMeCreate/miscellaneous/Makefile.devel Makefile
33+
```
34+
35+
This project uses two branches. The dev branch contains all the latest changes and should not be considered stable. The dev branch is sometimes merged to master once new features are considered stable.
36+
37+
#### Register PyLetMeCreate in Openwrt
38+
39+
To register the feed in openwrt, go back in openwrt folder and open feeds.conf.default.
40+
Add this line:
41+
```
42+
src-link custom /change/this/path/to/the/location/of/ci-40/custom/directory/
43+
```
44+
45+
Update and install all feeds:
46+
```sh
47+
$ ./scripts/feeds update -a
48+
$ ./scripts/feeds install -a
49+
```
50+
In make menuconfig,
51+
52+
python3-letmecreate
53+
54+
Select python3-letmecreate in make menuconfig. It will automatically select python3 and letmecreate. Then, compile Openwrt:
55+
56+
```sh
57+
$ make -j1 V=s
58+
```
59+
To create an ipk, run this command (only possible once you built Openwrt once):
60+
61+
```sh
62+
$ make package/pyletmecreate/{clean,compile} -j1 V=s
63+
```
64+
65+
### Installation of PyLetMeCreate on Ci40
66+
67+
#### Install PyLetMeCreate using ipk
68+
69+
In openwrt folder, the ipk is located in bin/pistachio/packages/custom. Transfer it to your Ci40 using scp:
70+
```sh
71+
$ scp bin/pistachio/packages/custom/python3-letmecreate_1.0.1_pistachio.ipk root@<ip-of-your-ci40>:/tmp
72+
```
73+
74+
On you Ci40:
75+
```sh
76+
$ opkg install /tmp/python3-letmecreate_1.0.1_pistachio.ipk
77+
```
78+
79+
#### Install PyLetMeCreate by copying letmecreate folder
80+
81+
82+
In your PyLetMeCreate folder, transfer the files to:
83+
```sh
84+
$ scp letmecreate root@<ip-of-your-Ci40>:/usr/lib/python3.5/site-packages
85+
```
86+
87+
This will only work if python3.5 is already installed on your Ci40. You might need to change the directory path if you have a different version of Python installed.

0 commit comments

Comments
 (0)