Running Raspberry Pi program independantly of Flowcode

For general Flowcode discussion that does not belong in the other sections.
Post Reply
RGV250
Posts: 279
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 30 times

Flowcode v10 Running Raspberry Pi program independantly of Flowcode

Post by RGV250 »

Hi,
I found a document "Using Raspberry Pi with Flowcode 9" and on the second to last page it states to run the program independantly you need to edit /etc/rc.local and add /home/pi/MyFlowcodeProject & to it.

Has this changed as when i looked I could not find a /pi/ directory but there is an /admin/ one where it look like the FC project is located?

Regards,
Bob

Steve-Matrix
Matrix Staff
Posts: 1289
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 171 times
Been thanked: 289 times

Re: Running Raspberry Pi program independantly of Flowcode

Post by Steve-Matrix »

The "/home/pi/MyFlowcodeProject" is a reference to where your Flowcode programs are located and so substitute this for the actual location and name of your compiled program.

RGV250
Posts: 279
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 30 times

Re: Running Raspberry Pi program independantly of Flowcode

Post by RGV250 »

Hi Steve,
The question i have is that I am pretty sure on an earlier Pi project (created with FC9) there was a folder called Pi so wondered if this had changed. I did put the entry in (with my project name) and got a message that it could not start or find the project. May have been that there is an undescore in the project name which i have only just seen?

Bob

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 74 times
Been thanked: 218 times

Re: Running Raspberry Pi program independantly of Flowcode

Post by LeighM »

All users on Linux usually have their own directory on /home
The default user on a Raspberry Pi is, or was, "pi", hence /home/pi
This user and home directory will need to exist,
or it could be /home/admin if you only have a user called admin.
You need to tell Flowcode what this user name is, using the Project Options screen, and also the password.
Flowcode "compile to chip" will then transfer the program to this user's directory.

edit: I think Raspberry Pi OS no longer uses a default "pi" account

RGV250
Posts: 279
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 30 times

Re: Running Raspberry Pi program independantly of Flowcode

Post by RGV250 »

Hi Leigh,
That makes so much sense, feeling pretty silly now.
I think it still is default of Pi but I changed things a while ago so all have the same login and password.

Bob

Post Reply