Skip to content

Commit

Permalink
Fix requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 23, 2023
1 parent 2278a39 commit 338caaa
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# Include the README
include *.md

# Include requirements
include requirements.txt

# Include the license file
include LICENSE

Expand Down
6 changes: 3 additions & 3 deletions jtop/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def engine_gui(repository, hardware, version):
body += "\n### jetson-stats\n\n"
body += " - Version: " + version + "\n"
# Print all raw output
body += "\n<!-- Please attach a screnshoot page from jtop Engine page -->\n"
body += "\n<!-- Please attach a screenshot page from jtop Engine page -->\n"
body += "### Screenshot engine page\n\n"
body += "Screnshoot page from jtop engine page attacched"
body += "Screenshot page from jtop engine page attached"
# Make url
url = make_issue(repository, title, body=body, labels="GUI,missing", template=template)
# message shell
Expand Down Expand Up @@ -127,7 +127,7 @@ def hyperlink(message, url, text):
# Print starting message
print("[{status}] {message}".format(status=bcolors.warning(), message=message))
print(" Please, try: {bold}sudo pip3 install -U jetson-stats{reset} or".format(bold=bcolors.BOLD, reset=bcolors.ENDC))
# Generate hyperlink for sheel
# Generate hyperlink for shell
# Check type of shell
try:
link = u"\u001b]8;;{url}\u001b\\{text}\u001b]8;;\u001b\\ (press CTRL + Click)".format(url=url, text=text)
Expand Down
2 changes: 1 addition & 1 deletion jtop/jetson_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_type_desktop():
status = 2
elif status_gui == 'graphical.target':
status = 3
# Check GUI autologin
# Check GUI auto login
if os.path.isfile('/etc/gdm3/custom.conf'):
with open('/etc/gdm3/custom.conf', 'r') as f:
for line in f.readlines():
Expand Down
20 changes: 10 additions & 10 deletions jtop/jtop.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def fan(self):
If your board does not support a fan, the output will be `None`
The variable avalables are:
The variable available are:
* **auto** - boolean with fan control.
* True = Automatic speed control enabled
Expand All @@ -344,7 +344,7 @@ def fan(self):
* **rpm** - Revolution Per Minute. This number can be 0 if the hardware does not implement this feature
* **mode** - Mode selected for your fan
If you want set a new speed, change the mode or know how many configurations are availables you can use:
If you want set a new speed, change the mode or know how many configurations are available you can use:
.. code-block:: python
Expand Down Expand Up @@ -402,7 +402,7 @@ def nvpmodel(self):
* **status** - A list of status for each NVP model (False if the nvpmodel is in failure)
* **is_running** - Status updating NVP model service
The access of this properities is available like below
The access of this properties is available like below
.. code-block:: python
Expand Down Expand Up @@ -709,7 +709,7 @@ def mts(self):
If your board support the MTS variable, the output will be:
* **fg** - foregroundtasks
* **fg** - foreground tasks
* **bg** - background tasks
:return: mts status
Expand Down Expand Up @@ -773,13 +773,13 @@ def power(self):
"""
Two power dictionaries:
* **total** - The total power estimated is not available of the NVIDIA Jetson power comsumption
* **power** - A dictionary with all power comsumption
* **total** - The total power estimated is not available of the NVIDIA Jetson power consumption
* **power** - A dictionary with all power consumption
For each power comsumption there are two fields:
For each power consumption there are two fields:
* **avg** - Average power consumption in milliwatts
* **cur** - Current power consumption in milliwatts
* **avg** - Average power consumption in milliwatt
* **cur** - Current power consumption in milliwatt
:return: Two dictionaries, total and a list of all power consumption available from the board
:rtype: dict, dict
Expand Down Expand Up @@ -810,7 +810,7 @@ def local_interfaces(self):
* **hostname** - Hostname board
* **interfaces** - A dictionary with name and IP address for all interfaces listed
:return: Local interfaces and hostaname
:return: Local interfaces and hostname
:rtype: dict
"""
return get_local_interfaces()
Expand Down

0 comments on commit 338caaa

Please sign in to comment.