This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:pet_companion [2020/09/28 16:54] vizycam |
wiki:pet_companion [2023/04/12 16:41] (current) vizycam |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Pet Companion tutorial ====== | ====== Pet Companion tutorial ====== | ||
+ | **Note, this page is using an older version of Vizy's software. Please go [[wiki:pet_companion2|here]] for a more recent version.** | ||
{{wiki:bonzer4.mp4|670x10|loop,autoplay}} | {{wiki:bonzer4.mp4|670x10|loop,autoplay}} | ||
Line 46: | Line 47: | ||
- | Vizy runs a full Linux (Raspberry Pi OS) including file system (files, directories, and such), and we need to access the file system to add and edit some files. This can be done by accessing a "network share volume" on Vizy, or you can access the file system using and browser and Vizy's built-in text editor. | + | Vizy runs a full Linux (Raspberry Pi OS) including file system (files, directories, and such), and we need to access the file system to add and edit some files. This can be done by accessing a "network share volume" on Vizy, or you can access the file system using and browser and Vizy's [[wiki:vizy_editor|built-in text editor]]. |
Line 66: | Line 67: | ||
=== Strictly through browser === | === Strictly through browser === | ||
- | If you don't want to bother with opening a network share volume on Vizy, you can use Vizy's built-in text editor FIXME!. Vizy's editor is reasonably sophisticated and allows you to create as well as edit files on Vizy. | + | If you don't want to bother with opening a network share volume on Vizy, you can use Vizy's [[wiki:vizy_editor|built-in text editor]]. Vizy's editor is reasonably sophisticated and allows you to create as well as edit files on Vizy. |
==== Creating the new directory and new source file ==== | ==== Creating the new directory and new source file ==== | ||
- | Once you have access to the views directory, create a new directory called ''pet\_companion'' inside the ''view'' directory. This is where all of our application's code and resources will live. And from within ''pet\_companion'' directory create a new file called ''pet\_companion.py'' using your favorite text editor (or Vizy's built-in text editor.) Inside the file copy the text: | + | Once you have access to the views directory, create a new directory called ''pet\_companion'' inside the ''view'' directory. This is where all of our application's code and resources will live. And from within ''pet\_companion'' directory create a new file called ''pet\_companion.py'' using your favorite text editor (or Vizy's [[wiki:vizy_editor|built-in text editor]].) Inside the file copy the text: |
<sxh python; highlight: [14, 24, 26, 4, 22]; title: pet_companion.py, creating our Pet Companion view:> | <sxh python; highlight: [14, 24, 26, 4, 22]; title: pet_companion.py, creating our Pet Companion view:> | ||
Line 503: | Line 504: | ||
And, of course, your pet thanks you! | And, of course, your pet thanks you! | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | | ||