tartube/README.rst

221 lines
8.5 KiB
ReStructuredText
Raw Normal View History

2020-03-28 07:35:24 +00:00
======
GymBob
======
----------------------------------------------
A simple script to prompt you during a workout
----------------------------------------------
2020-03-27 11:40:13 +00:00
2020-03-28 07:35:24 +00:00
.. image:: screenshots/gymbob.png
:alt: GymBob screenshot
2019-12-20 13:22:43 +00:00
* `1 Introduction`_
2020-03-28 07:35:24 +00:00
* `2 Downloads`_
* `3 Quick start guide`_
* `4 Installation`_
* `5 Using GymBob`_
* `6 Contributing`_
* `7 Authors`_
* `8 License`_
2019-12-20 13:22:43 +00:00
1 Introduction
==============
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
A typical gym workout consists of a sequence of exercises. Sometimes each exercise is performed several times. (Each repetition is called a 'set').
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
**GymBob** prompts the user, at pre-determined intervals, when to begin each set. The **GymBob** window shows the current set, the next set, and a stopwatch for both. If sound is enabled (which it is by default), the user will hear a sound effect when it's time to start a set.
2019-06-25 16:47:26 +01:00
2020-03-28 07:35:24 +00:00
**GymBob** follows a workout programme created by you, the user. It's easy to create your own programmes, and you can create as many as you like.
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
**GymBob** is written in Python 3 / Gtk 3. It runs on Linux and \*BSD. There are no plans to create installers for MS Windows and MacOS.
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
Problems can be reported at `our GitHub page <https://github.com/axcore/gymbob/issues>`__.
2019-12-20 13:22:43 +00:00
2020-03-28 07:35:24 +00:00
2 Downloads
2020-01-27 17:15:33 +00:00
===========
2020-03-28 07:35:24 +00:00
Latest version: **v1.002 (28 Mar 2020)**
2020-01-27 17:15:33 +00:00
2020-03-28 07:35:24 +00:00
- `DEB package (for Debian-based distros, e.g. Ubuntu, Linux Mint) <https://sourceforge.net/projects/gymbob/files/v1.002/python3-gymbob_1.002.deb/download>`__ from Sourceforge
- `RPM package (for RHEL-based distros, e.g. Fedora) <https://sourceforge.net/projects/gymbob/files/v1.002/tartube-1.002.rpm/download>`__ from Sourceforge
- `Source code <https://sourceforge.net/projects/gymbob/files/v1.002/gymbob_v1.002.tar.gz/download>`__ from Sourceforge
- `Source code <https://github.com/axcore/gymbob>`__ and `support <https://github.com/axcore/gymbob/issues>`__ from GitHub
2020-02-29 13:27:43 +00:00
2020-03-28 07:35:24 +00:00
3 Quick start guide
2019-12-20 13:22:43 +00:00
===================
2020-03-28 07:35:24 +00:00
- Download, install and run **GymBob**, using the links above
- Click **Programmes > New programme...**
- Enter a name, and click the **OK** button
- Specify a time (in seconds), a message to display, and optionally a sound effect
- Repeat that step as many times as you like
2019-12-20 13:22:43 +00:00
- Click the **OK** button to close the window
2020-03-28 07:35:24 +00:00
- Click the **START** button to start the workout programme
2019-12-20 13:22:43 +00:00
2020-03-28 07:35:24 +00:00
4 Installation
2019-12-20 13:22:43 +00:00
==============
2019-06-25 16:47:26 +01:00
Linux/BSD users can use any of the following installation methods.
2020-03-28 07:35:24 +00:00
4.1 Install using the DEB/RPM packages
--------------------------------------
2020-02-29 13:27:43 +00:00
2020-03-28 07:35:24 +00:00
Linux distributions based on Debian, such as Ubuntu and Linux Mint, can install **GymBob** using the DEB package (see the links above). Linux distributions based on RHEL, such as Fedora, can install **GymBob** using the RPM package (see the links above).
2020-02-29 13:27:43 +00:00
2020-03-28 07:35:24 +00:00
4.2 Install using PyPI
----------------------
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
**GymBob** can be installed from `PyPI <https://pypi.org/project/gymbob/>`__ with or without root privileges.
Here is the procedure for Debian-based distributions, like Ubuntu and Linux Mint. The procedure on other distributions is probably very similar.
2020-03-28 07:35:24 +00:00
4.2.1 Install using PyPI (with root privileges)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-03-28 07:35:24 +00:00
1. Type: ``sudo apt install python3-pip``
2. Type: ``sudo pip3 install gymbob``
3. Type: ``gymbob``
2020-03-28 07:35:24 +00:00
4.2.2 Install using PyPI (without root privileges)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-02-23 16:53:45 +00:00
1. Type: ``sudo apt install python3-pip``
2020-03-28 07:35:24 +00:00
2. Type: ``pip3 install gymbob``
3. The **GymBob** executable is stored in **~/.local/bin** by default. If that is already in your path, you can start **GymBob** by typing ``gymbob``. Otherwise, type ``~/.local/bin/gymbob``
4.3 Manual installation
-----------------------
2020-02-29 13:27:43 +00:00
For any other method of installation, the following dependencies are required:
- `Python 3 <https://www.python.org/downloads>`__
- `Gtk 3 <https://python-gtk-3-tutorial.readthedocs.io/en/latest/>`__
2020-03-28 07:35:24 +00:00
- `Python playsound module <https://github.com/TaylorSMarks/playsound>`__
2020-02-29 13:27:43 +00:00
2020-03-28 07:35:24 +00:00
4.3.1 Install from source
2019-12-20 13:22:43 +00:00
~~~~~~~~~~~~~~~~~~~~~~~~~
2019-05-28 14:48:25 +01:00
2020-02-29 13:27:43 +00:00
After installing dependencies (see above):
1. Download & extract the source code (see the links above)
2020-03-28 07:35:24 +00:00
2. Change directory into the **GymBob** directory
2019-07-31 12:25:31 +01:00
3. Type: ``python3 setup.py install``
2020-03-28 07:35:24 +00:00
4. Type: ``gymbob``
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
4.3.2 Run without installing
2019-12-20 13:22:43 +00:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-05-28 14:48:25 +01:00
2020-02-29 13:27:43 +00:00
After installing dependencies (see above):
1. Download & extract the source code (see the links above)
2020-03-28 07:35:24 +00:00
2. Change directory into the **GymBob** directory
3. Type: ``python3 gymbob/gymbob``
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
5 Using GymBob
==============
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
5.1 Creating a programme
------------------------
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
The first step is to create a programme.
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
- Click **Programmes > New programme...**
- Enter a name for the programme. Each programme must have a unique name
- Click OK to create the programme
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
5.2 Customising the programme
2019-12-20 13:22:43 +00:00
-----------------------------
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
Immediately after creating a programme, a new window appears. In this window you can customise the programme.
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
Add the first set. If you want the first set to begin immediately, do this:
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
- In the box marked **Time (in seconds)**, add the number 0
- In the box marked **Message**, add a message like **Squat set 1**
- If you want to add a sound effect, click the drop-down box and select one of the effects. There are twenty-five to choose from
- Click the **Add message** button
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
If you want the first set to begin after a delay, do this:
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
- In the box marked **Time (in seconds)**, add a number in seconds. For example, add 60 for a one-minute delay
- In the box marked **Message**, add a message like **Squat set 1**
- If you want to add a sound effect, click the drop-down box and select one of the effects. There are twenty-five to choose from
- Click the **Add message** button
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
.. image:: screenshots/gymbob2.png
:alt: The edited workout programme
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
You can repeat this step as often as you like. (There is no limit to the length of a programme).
2019-07-31 12:25:31 +01:00
2020-03-28 07:35:24 +00:00
- In the box marked **Time (in seconds)**, add a non-zero delay
- In the box marked **Message**, add a message like **Squat set 2**
- Click the **Add message** button
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
5.3 Saving the programme
------------------------
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
At the bottom of this window you'll see four buttons.
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
- The **OK** button saves your changes, and closes the window
- The **Cancel** button ignores your changes, and closes the window
- The **Apply** button saves your changes, but doesn't close the window
- The **Reset** button removes your changes, and doesn't close the window
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
5.4 Modifying the programme
---------------------------
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
You can edit the current programme at any time (click **Programmes > Edit current programme...**)
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
If that programme is currently running (in other words, if you have clicked the **START** button), any changes you make to the programme won't be applied until after you have clicked the **RESET** button, and then the **START** button again.
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
In the edit window:
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
- You can modify any step of the programme by clicking on it, typing new values for the time, message, and/or sound effect, and clicking the **Update message** button
- You can delete a step by clicking on it, and clicking the **Delete message** button
- You can change the order of the steps by clicking on one step, and then by clicking on the **Move up** and **Move down** buttons
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
5.5 Deleting a programme
------------------------
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
You can delete a programme by clicking **Programmes > Delete programme...**
2019-06-23 09:51:50 +01:00
2020-03-28 07:35:24 +00:00
This deletes not just the programme in memory, but the file saved on your hard drive.
2019-08-31 12:13:27 +01:00
2020-03-28 07:35:24 +00:00
Deletion is permanent, so it's a good idea to make backup copies of your programmes. **GymBob** stores its programme files in an (invisible) directory called **../.gymbob**.
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
5.6 Setting the current programme
2020-02-22 17:12:58 +00:00
---------------------------------
2020-03-28 07:35:24 +00:00
If you've created multiple programmes, **GymBob** will load them all into memory. The *current* programme is the one that comes first in alphabetical order.
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
The name of the current programme is visible in the window's title bar.
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
To switch to a different programme, click **Programmes > Switch programme...**
2020-02-22 17:12:58 +00:00
2020-03-28 07:35:24 +00:00
5.7 Running a programme
2020-02-22 17:12:58 +00:00
-----------------------
2020-03-28 07:35:24 +00:00
Use the **START** button to start the current programme.
2019-12-20 13:22:43 +00:00
2020-03-28 07:35:24 +00:00
Use the **STOP** button to pause the current programme, and then use the **START** button to resume it.
2019-12-20 13:22:43 +00:00
2020-03-28 07:35:24 +00:00
If you want to start the current programme again from the beginning, or if you want to switch to a different programme, first click the **RESET** button.
2020-01-26 16:26:57 +00:00
2020-03-28 07:35:24 +00:00
6 Contributing
==============
2019-05-28 14:48:25 +01:00
- Report a bug: Use the Github
2020-03-28 07:35:24 +00:00
`issues <https://github.com/axcore/gymbob/issues>`__ page
2019-05-28 14:48:25 +01:00
2020-03-28 07:35:24 +00:00
7 Authors
=========
2019-05-28 14:48:25 +01:00
See the `AUTHORS <AUTHORS>`__ file.
2020-03-28 07:35:24 +00:00
8 License
=========
**GymBob** is licensed under the `GNU General Public License v3.0 <https://www.gnu.org/licenses/gpl-3.0.en.html>`__.
2019-05-28 14:48:25 +01:00
✨🍰✨