All Projects β†’ Moduland β†’ Orangetool

Moduland / Orangetool

Licence: mit
πŸ“š Control Functions For Single-Board Computers

Programming Languages

python
139335 projects - #7 most used programming language
script
160 projects

Projects that are alternatives of or similar to Orangetool

Rust Raspberrypi Os Tutorials
πŸ“š Learn to write an embedded OS in Rust πŸ¦€
Stars: ✭ 7,275 (+8771.95%)
Mutual labels:  raspberry-pi, raspberry
Raspberryio
The Raspberry Pi's IO Functionality in an easy-to-use API for Mono/.NET/C#
Stars: ✭ 593 (+623.17%)
Mutual labels:  raspberry-pi, raspberry
Balena Electronjs
electronJS-based resin application template
Stars: ✭ 348 (+324.39%)
Mutual labels:  raspberry-pi, raspberry
Kupiki Hotspot Script
Create automatically a full Wifi Hotspot on Raspberry Pi including a Captive Portal
Stars: ✭ 265 (+223.17%)
Mutual labels:  raspberry-pi, raspberry
Qdomyos Zwift
Zwift bridge for smart treadmills and bike/cyclette
Stars: ✭ 63 (-23.17%)
Mutual labels:  raspberry-pi, raspberry
Raspibackup
Backup and restore your running Raspberry
Stars: ✭ 268 (+226.83%)
Mutual labels:  raspberry-pi, raspberry
Pinn
An enhanced Operating System installer for the Raspberry Pi
Stars: ✭ 530 (+546.34%)
Mutual labels:  raspberry-pi, raspberry
Debian Pi Aarch64
This is the first 64-bit system in the world to support all Raspberry Pi 64-bit hardware!!! (Include: PI400,4B,3B+,3B,3A+,Zero2W)
Stars: ✭ 2,505 (+2954.88%)
Mutual labels:  raspberry-pi, raspberry
Libgps
UART NMEA GPS library for Raspberry Pi
Stars: ✭ 60 (-26.83%)
Mutual labels:  raspberry-pi, raspberry
Raspberrypi tempmon
Raspberry pi CPU temperature monitor with many functions such as logging, GPIO output, graphing, email, alarm, notifications and stress testing. Python 3.
Stars: ✭ 52 (-36.59%)
Mutual labels:  raspberry-pi, raspberry
Berrylan
Raspberry Pi WiFi setup
Stars: ✭ 243 (+196.34%)
Mutual labels:  raspberry-pi, raspberry
Homekitcam
A project to make a Raspberry Pi driven, HomeKit Enabled camera.
Stars: ✭ 69 (-15.85%)
Mutual labels:  raspberry-pi, raspberry
Rpicheck
RasPi Check - an Android app for checking your Raspberry Pi status.
Stars: ✭ 227 (+176.83%)
Mutual labels:  raspberry-pi, raspberry
Meta Raspberrypi
Yocto BSP layer for the Raspberry Pi boards
Stars: ✭ 276 (+236.59%)
Mutual labels:  raspberry-pi, raspberry
Photobooth
A photobooth Web-Application for raspberry pi with gphoto2
Stars: ✭ 188 (+129.27%)
Mutual labels:  raspberry-pi, raspberry
Hosthunter
HostHunter a recon tool for discovering hostnames using OSINT techniques.
Stars: ✭ 427 (+420.73%)
Mutual labels:  ip, tool
Fabscanpi Server
FabScan Pi Open Source 3D Scanner - Server application
Stars: ✭ 137 (+67.07%)
Mutual labels:  raspberry-pi, raspberry
Rpi wordclock
Software to create a Raspberry Pi based wordclock
Stars: ✭ 164 (+100%)
Mutual labels:  raspberry-pi, raspberry
Pytradfri
IKEA TrΓ₯dfri/Tradfri API. Control and observe your lights from Python. Examples available. On pypi. Sans-io.
Stars: ✭ 778 (+848.78%)
Mutual labels:  raspberry-pi, raspberry
Q3lite
Q3lite, an OpenGL ES port of Quake III Arena for embedded Linux systems.
Stars: ✭ 64 (-21.95%)
Mutual labels:  raspberry-pi, raspberry
DOI

Table of contents

Overview

Control functions for Single-Board computers

Tested on Lubuntu

Open Hub
PyPI Counter
Github Stars
Branch master dev
Travis
Code Quality codebeat badge CodeFactor

By Moduland Co

Installation

Source Code

  • Download Version 0.50 or Latest Source
  • pip3 install -r requirements.txt or pip install -r requirements.txt (Need root access)
  • python3 setup.py install or python setup.py install

PyPI

Conda

Easy install

  • Run easy_install --upgrade orangetool (Need root access)

Usage

IP Functions

import orangetool

#1- local_ip

local_ip=orangetool.local_ip() # this function return local ip of board as string

#2- global_ip

global_ip=orangetool.global_ip() # this function return global ip of board as string

#3- internet 

status=orangetool.internet() #this function check internet connection and return True if internet connection is stable

#4- ping

ip_status=orangetool.ping(ip_address) #this function check ip and return True if this ip is available in network and False otherwise

#5- set_ip

orangetool.set_ip("192.168.1.46","eth0")  #this function set static ip for system

#6- mac

mac_dic=orangetool.mac() # return dict of all system net devices mac addresses

#7- network_enable

status=network_enable("eth0") # enable network device

#8- network_disable

status=network_disable("eth0") # disable network device

RAM Functions

 
#1- total ram

ram=orangetool.ram_total() #this function return total ram of the board

#2- free ram

ram=orangetool.ram_free() # this function return how much ram is available in the board

#3- ram percentage

ram=orangetool.ram_percent() # this function return used ram percentage

#4- used percentage

ram=orangetool.ram_used() # this function return used ram 

#5- freeup

orangetool.freeup() # To free pagecache, dentries and inodes and return freeuped amount

Storage Functions

#1- mount_status

mount_details=orangetool.mount_status("sda1") # This function return mount addresses of input device

#2- storage_status

mount_details=orangetool.storage_status() # This function return all of the inserted storage and their status

#3- unmount

orangetool.unmount("/mnt/usb1") # This function unmount input device

#4- unmount_all


orangetool.unmount_all() #This function unmount all of the mounted devices

#5- mount

orangetool.mount("sda1","/mnt/usb1") # This function mount input device in input addresses

#6- usb_on

orangetool.usb_on() # This function enable USB

#7- usb_off

orangetool.usb_off() # This function disable USB

Display Functions

#1- hdmi_on

orangetool.hdmi_on() # turn on hdmi port

#2- hdmi_off

orangetool.hdmi_off() # turn off hdmi port

#3- hdmi_size

orangetool.hdmi_size(1280,720) # this function change hdmi display resolution

System Functions

#1- sleep

orangetool.sleep() # put system in sleep mode

#2- hibernate

orangetool.hibernate() # put system in hibernate mode

#3- halt

orangetool.halt() # poweroff system

#4- restart

orangetool.restart() # restart system

#5- wakeup

orangetool.wakeup(day=1,hour=0,minute=1,sync=True) # set rtc wakeuptime

#6- get_temp

temp=orangetool.get_temp() # this function return cpu temperature as string

#7- uptime

time=orangetool.uptime() # this function return uptime of system

#8- idletime

time=orangetool.idletime() # this function return idle of system ( all cores)


#9- version

orangetool.version() # return orangetool version for test

#10- check_update

orangetool.check_update() # Return True if new version is available

  • All of the functions in error state return Error String
  • local_ip and global_ip originally are available in ipz package Link
  • RAM functions in this version need psutil package
  • Running set_ip function remotely will freeze your terminal so it's better to set restart parameter to True
  • Running halt,restart,hibernate & sleep functions remotely will freeze your terminal
  • Some of funtions need root access so it's better to run sudo -s before use this tool

Issues & Bug Reports

Just fill an issue and describe it. We'll check it ASAP! or send an email to [email protected].

Dependencies

master dev

Cite

If you use orangetool in your research , please cite this ;-)

Sepand Haghighi. 2017. Moduland/Orangetool: Version 0.23. (July 2017). DOI:http://dx.doi.org/10.5281/zenodo.829797

Donate to our project

If you feel like our project is important can you please support us? Our project is not and is never going to be working for profit. We need the money just so we can continue doing what we do.

Bitcoin :

1XGr9qbZjBpUQJJSB6WtgBQbDTgrhPLPA

Payping (For Iranian citizens) :

License


Moduland Website
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].