Ham Radio
Ham Radio, Electronics, Software and more...

Home » Ham Radio » Homebrew Equipment and Projects » Raspberry Pi Greenhouse Controller And Data Logger (This thread is for sharing code related to the Raspberry Pi Greenhouse controller project from The Farmacy Seeds Network youtube channel.)
Raspberry Pi Greenhouse Controller And Data Logger [message #3280] Sun, 26 January 2020 16:23 Go to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
I will be sharing some code here once I get things set up. For now, checkout the you-tube channel:
https://www.youtube.com/channel/UCe1-C5WND1UNUaGc8iCpDcw?


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3282 is a reply to message #3280] Tue, 28 January 2020 00:36 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Starting from Video 1: Part 1 Setup Your Own Raspberry Pi For Monitoring Temperatures And More
https://www.youtube.com/watch?v=BUOTY3fs_jI&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=15


Monitor your greenhouse, cabin, garage, shed, barn, carport, or any other environmentally controlled area with a Raspberry Pi! This video is the first in a series of videos describing how to set up a Raspberry Pi to monitor temperatures via a database as well as provide controls for heating, venting, hydronic water circulation, hydroponics, watering and many other automated applihoneyions. This setup does NOT use any websites for retrieving remote data, but rather serves it out directly to the internet through the use of Apache Web Server. Through the use of MYSQL and databases we are able to log historical data as well as manipulate any controls required or desired. We will go over hardware, connections, software, databases, SQL query statements, integration to automated controls, and so much more!
We start with a new Pi, raspian jesse, and an sd card and build the whole system out from scratch.

Help me help you on patreon: https://www.patreon.com/TFSN

Download links:

Windisk Imager 32: https://sourceforge.net/projects/win3...
MYSQL Query Browser: https://downloads.mysql.com/archives/...
SQL Dashboards: http://www.timestored.com/b/sql-dashb...
Putty: https://www.putty.org/
OS Image: Raspian Jesse Image from 01 10 2017: http://downloads.raspberrypi.org/rasp... (This is the image we will be using, not the stretch version mentioned in the video)

Bitvise: https://www.bitvise.com/


The candle that burns twice as bright burns half as long

[Updated on: Tue, 28 January 2020 00:40]

Report message to a moderator

Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3283 is a reply to message #3282] Tue, 28 January 2020 00:39 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 2 Setup Your Own Raspberry Pi For Monitoring Temperatures And More OS Install
https://www.youtube.com/watch?v=0wnmp0odpms&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=14
This is part 2 in the series of How To Set Up A Raspberry Pi For Monitoring and Temperature Controls. In this issue, We go over how to download the image and install the operating system on a raspberry pi so we can set up all the other parts to monitor and/or control anything.

Help me help you on patreon: https://www.patreon.com/TFSN

OS Image: Raspian Jesse Image from 01 10 2017: http://downloads.raspberrypi.org/rasp...



The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3284 is a reply to message #3283] Tue, 28 January 2020 00:41 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 3 Setup Your Own Raspberry Pi raspi-config and apt-get update upgrade Enable SSH
https://www.youtube.com/watch?v=-xfNXrUA71s&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=13

In this section we configure the basics:

sudo su
raspi-config

Enable expanded files system, Enable SSH, Enable SPI, Enable 1-wire, set timezone, set default password, etc

sudo reboot now

apt-get update
apt-get upgrade

cd /sys/bus/w1
ls

OS Image: Raspian Jesse Image from 01 10 2017: http://downloads.raspberrypi.org/rasp... (This is the image we will be using, not the stretch version mentioned in the video)

Windisk Imager 32: https://sourceforge.net/projects/win3...
Putty: https://www.putty.org/

Initial Setup From Monitor / keyboard / mouse on Pi: https://raspberrypi.stackexchange.com... (enable ssh, set time zone, expand filesystem etc)

Angry IP Scanning Tool: http://angryip.org/download/#windows




The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3285 is a reply to message #3284] Tue, 28 January 2020 00:42 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 4 Setup Your Own Raspberry Pi Install RPI GPIO
https://www.youtube.com/watch?v=o0sKhTBCl38&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=12
In this video we go over how to setup RPI.GPIO software to support using I2C, SPI, Serial Interface, and more.

More:
sudo apt-get install python-dev python-rpi.gpio

RPI.GPIO:
https://learn.adafruit.com/playing-so...

https://learn.adafruit.com/adafruits-...


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3286 is a reply to message #3285] Tue, 28 January 2020 00:43 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 5 Setup Your Own Raspberry Pi Enable VNC And Set A Static IP
https://www.youtube.com/watch?v=3sPZkj4k9xw&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=11
In this video we go over how to set up and enable VNC for remote desktop access to the Raspberry Pi as well as set a static IP address. This is the last basic setup video before we go into setting up Apache Web Server, PHP, and MYSQL.

More:
raspi-config

VNC Viewer for remote access to Pi Desktop:
https://www.realvnc.com/en/connect/do...


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3287 is a reply to message #3286] Tue, 28 January 2020 00:46 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 6 Setup Your Own Raspberry Pi Install Apache MySQL PHPMyAdmin LAMP Server
https://www.youtube.com/watch?v=C7ayFZqDzEo&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=10

In this video we go over how to install a LAMP Server. LAMP stands for Linux, Apache, MySQL, PHPMyAdmin. This is a critical step that installs the webserver, database and many other integral parts towards the end goal: remote monitoring and control of a greenhouse or other climate related project.
Load webpage to test(use the ip address that you used for the raspberry pi, putty, etc):
http://192.168.254.30/phpmyadmin

Link to tutorial:
https://pimylifeup.com/raspberry-pi-mysql-phpmyadmin/

install commands:
sudo apt install apache2
sudo apt-get install mysql-server
sudo mysql_secure_installation
sudo mysql -u root -p
sudo apt-get install python-mysqldb
sudo mysql -u root -p
GRANT ALL PRIVILEGES ON mydb.* TO 'test'@'localhost' IDENTIFIED BY 'test';
sudo apt-get install phpmyadmin
sudo nano /etc/apache2/apache2.conf
add line at bottom of file (use right click in putty):
Include /etc/phpmyadmin/apache.conf
sudo /etc/init.d/apache2 restart

Load webpage to test(use the ip address that you used for the raspberry pi, putty, etc):
http://192.168.254.30/phpmyadmin


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3288 is a reply to message #3287] Tue, 28 January 2020 00:47 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 7 Setup Your Own Raspberry Pi Setup MySQL Database Login with MySQL Query Browser
https://www.youtube.com/watch?v=riOEvxc0Ro4&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=9
part 7


This video will be about how to create a database for your new Raspberry Pi as well as enable remote login for mysql so you can access it from anywhere for easy remote management. Along the way, you'll learn how to login to mysql via command line and run your first MySQL statement as well as how to login with MySQL Query Browser so you can make database changes easily when installing or adding senors to your Raspberry Pi.


edit /etc/mysql/my.cnf
comment out "BIND IP ADDRESS" by putting a "#" in front of it
save and close

to edit:
cd /etc/mysql
nano my.cnf
(CTRL-X, then "y" then "Enter" to save and close)

mysql -u root -p

type:
use mysql

Response:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql>

(need username and password you created in Part 6)
type: (using your username, % instead of IP, and your password for the account):
GRANT ALL PRIVILEGES ON *.* TO 'test'@'%' IDENTIFIED BY 'test' with grant option;

FLUSH PRIVILEGES;

Response:
Query OK, 0 rows affected (0.00 sec)
mysql>

type:
quit
then strike the "ENTER" key

/etc/init.d/mysql restart

CREATE DATABASE <greenhouse>;
SHOW DATABASES;



D/L and install MYSQL Query Browser:
https://downloads.mysql.com/archives/query/
Setup the connection and log in (need username and password you created in Part 6):





The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3289 is a reply to message #3288] Tue, 28 January 2020 00:48 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 8 Setup Your Own Raspberry Pi MySQL Query Browser Create And Edit TABLES
https://www.youtube.com/watch?v=dj6C3gKmhaw&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=8

This section will be about creating a table in the databse we created in part 7. We will go over the basics of editing a database table to set it up for data collection. We will work with MySQL Query Browser to manipulate the databse so that later when we add sensors and work with Python Scripts, it will be relatively easy to import that data to the database and from there we can create charts, webpages, and analyze collected data. Additionally, I'll explain some basics in MySQL Command Line so it's relate-able to the MySQL Query Browser.

If you haven't already, download MySQL Query Browser:
https://downloads.mysql.com/archives/query/

If you don't know how to log in, refer to Part 7 in this series:
https://www.youtube.com/watch?v=riOEvxc0Ro4

example of creating a table via MySQL command line:

CREATE TABLE pet (name VARCHAR(20), owner VARCHAR(20), species VARCHAR(20), sex CHAR(1), birth DATE, death DATE);

SHOW TABLES;

DROP TABLE temps;

more info on command line MySQL:
https://dev.mysql.com/doc/refman/5.5/en/creating-tables.html

values:

date_time default value:
'0000-00-00 00:00:00'

modified default value:
CURRENT_TIMESTAMP

First Sensor default value:
'0.00'



The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3290 is a reply to message #3289] Tue, 28 January 2020 00:49 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 9 Setup Your Own Raspberry Pi emacs editor python pycurl python mysqldb
https://www.youtube.com/watch?v=KA31nAA0VNU&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=7

Install emacs (better editor for editing Python scripts):

This is a nice editor for python code in linux:

sudo apt-get install emacs

MySQLdb is an thread-compatible interface to the popular MySQL database server that provides the Python database API.

sudo apt-get install python-mysqldb

PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features

sudo apt-get install python-pycurl


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3291 is a reply to message #3290] Tue, 28 January 2020 00:50 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 10 Setup Your Own Raspberry Pi Adafruit DHT 11 DHT 22 Install Libraries Dependencies
https://www.youtube.com/watch?v=JM0p6TCbtGc&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=6


https://learn.adafruit.com/dht-humidity-sensing-on-raspberry -pi-with-gdocs-logging/software-install-updated


Downloade the code:

git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT

Install the dependencies:

sudo apt-get update
sudo apt-get install build-essential python-dev python-openssl

Install the library and compile it:

sudo python setup.py install





The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3292 is a reply to message #3291] Tue, 28 January 2020 00:51 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 11 Setup Your Own Raspberry Pi Wire And Test DS18B20 Sensor 1-wire Sensors
https://www.youtube.com/watch?v=upIx78DRzao&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=5


In this section we'll discuss how to wire up a Dallas Instruments DS18B20 1-wire digital thermal sensor. We'll see how to navigate to it in linux and test to make sure it's working. We'll also briefly discuss 1 wire networks. There is more information below on 1 wire netorks not discussed in this video.

Connections:

http://www.hamradio.cc/forum/index.php?t=msg&th=2635& ;start=0&S=0c07f6f12304cdb485d5099ef5f09fe7&subject= Raspberry+Pi+1Wire+DS18B20+Thermometer

GPIO Diagram:
https://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-th e-rpi-gpio-header-and-pins/

Pinout for Pin 1 etc:
https://pinout.xyz/#


Explicit Instructions in text:

https://www.modmypi.com/blog/ds18b20-one-wire-digital-temper ature-sensor-and-the-raspberry-pi

Add the following line to /boot/config.txt

dtoverlay=w1-gpio

sudo modprobe w1-gpio
sudo modprobe w1-therm

cd /sys/bus/w1/devices/
ls


cat w1_slave

About 1-wire networks:

https://www.maximintegrated.com/en/app-notes/index.mvp/id/17 96

Reliable Long 1-wire networks

https://www.maximintegrated.com/en/app-notes/index.mvp/id/14 8



The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3293 is a reply to message #3292] Tue, 28 January 2020 00:52 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 11A Setup Your Own Raspberry Pi Sensor Diagnostic Techniques And Tips
https://www.youtube.com/watch?v=ywq-PYcf8F0&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=4
In this video I go over some techniques and tips for diagnosing sensor issues before we move on to the hardware wiring for the Adafruit DHT22 Humidity Sensor.


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3294 is a reply to message #3293] Tue, 28 January 2020 00:53 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 12 Setup Your Own Raspberry Pi Wiring Adafruit DHT22 Humidity Sensor Schematics
https://www.youtube.com/watch?v=a0VHDK8u7LY&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=3
https://learn.adafruit.com/dht-humidity-sensing-on-raspberry -pi-with-gdocs-logging/software-install-updated

http://www.instructables.com/id/Raspberry-PI-and-DHT22-tempe rature-and-humidity-lo/

cd /root
cd Adafruit_Python_DHT
cd examples

sudo ./AdafruitDHT.py 2302 24


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3295 is a reply to message #3294] Tue, 28 January 2020 00:53 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 13 Setup Your Own Raspberry Pi Using Python To Insert Sensor Data To MySQL Databases
https://www.youtube.com/watch?v=uNVuQg1fAoY&list=PL837tk -T71LhGmSG2YEuA2U-LLvAQMhXs&index=2


The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3296 is a reply to message #3295] Tue, 28 January 2020 00:55 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
So here is the code from the most recent video for "Setting Up Your Own Raspberry Pi" Part 13: Here's a link to the video:
https://www.youtube.com/watch?v=uNVuQg1fAoY&list=PL837tk -T71LiUuXWUAkwMVonwd1M5koAW

Quote:
Pycurl: Use the following at command prompt to install : sudo apt-get install python-pycurl
Quote:

import pycurl #this is used to do an http post to the temp updater

import time


import MySQLdb
conn = MySQLdb.connect(host= "localhost",
user="dbusernamehere",
passwd="yourdbpasswordhere",
db="databasenamehere")
x = conn.cursor()


try:
x.execute("INSERT INTO temps (greenhouse_id,OUTSIDE,AVGGH,cpu,DSK,RMU,RMF,cpuse,HUMTEMP,H UMI\
DIN,date_time) VALUES (1,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)",(outsidetemp,avgtemp,CPU,DISK_perc,RAM_used\
,RAM_free,CPU_usage,humtemp,humidity,time.strftime('%Y-%m-%d %H:%M:%S')))

conn.commit()
except:
# print "MySQL Error [%d]:%s" % (e.args[0], e.args[1])
conn.rollback()

print "end of database insertion"








The candle that burns twice as bright burns half as long
Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3299 is a reply to message #3296] Sun, 02 February 2020 03:30 Go to previous messageGo to next message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 14 Raspberry Pi 4 Ultimate Cooling System With Python Code

https://youtu.be/DX-ciuGmqpg

This video goes into some detail about my hybrid cooling system for the Raspberry Pi 4 that controls and monitors (data logs) my greenhouse. This system uses a combination of the Canna Kit heat sinks and included fan as well as extra fans (200 CFM for the cabinet and 100 CFM for the CPU) to maintain cool processor temps. The greenhouse can exceed 150 degrees in the summer with the vents closed, so this processor cooling, in the event of a vent failure ,is critical. The window between 150 degrees F and the max operating temperature of The Raspberry Pi 4 at 176 degrees F is not much!
More thermal info: https://www.raspberrypi.org/blog/thermal-testing-raspberry-p i-4/



Here's the cpu.py code:

#!/usr/bin/python

import sys
from termcolor import colored, cprint
import RPi.GPIO as GPIO
import os

try:
# Python 3
from io import BytesIO
except ImportError:
# Python 2
from StringIO import StringIO as BytesIO

#import smtplib
# smtp lib used for sending text messages
#import pifacedigitalio as p #used for piface (fan relays)
import time
#setup GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)

#List pins assoc with relay board
pinList = [6, 12, 13, 16, 19, 21]


while (True):
print ("Wait 10 seconds: CPU and BOX Cooling Loop")
time.sleep (10.0)



def read_temperature(device):
# open/read/close the file with the temperature; the output is like
# in the example above.
#/sys/bus/w1/devices/28-000004fc61d3/w1_slave
#28-000005160247
tfile = open("/sys/bus/w1/devices/"+device+"/w1_slave")
text = tfile.read()
tfile.close()
lines = text.split("\n")

# make sure the crc is valid
if lines[0].find("YES") > 0:
# get the 9th (10th) chunk of text and lose the t= bit
temp = float((lines[1].split(" ")[9])[2:])
# add a decimal point
temp /= 1000
temp = temp * 1.8 + 32
return temp

# Return CPU temperature as a character string
def getCPUtemperature():
res = os.popen('vcgencmd measure_temp').readline()
return(res.replace("temp=","").replace("'C\n",""))

temp1 = int(float(getCPUtemperature()))
CPU = 9.0/5.0*temp1+32
print "CPU:",CPU
# turn on fan directed at cpu
if CPU > 140:
print colored ("CPU over 140 - Fan ON", 'green')
GPIO.setup(6, GPIO.OUT)
GPIO.output(6, GPIO.LOW)
GPIO.setup(12, GPIO.OUT)
GPIO.output(12, GPIO.LOW)


# turn off fan directed at cpu
elif CPU <= 135:
print colored ("CPU Below 135 - Fan OFF", 'red')
GPIO.setup(6, GPIO.OUT)
GPIO.output(6, GPIO.HIGH)
GPIO.setup(12, GPIO.OUT)
GPIO.output(12, GPIO.HIGH)

# turn on fan exhausting from box
# get Pi Box temp sensor reading
box = 0
#read_temperature("28-051691db2aff")
print "box:",box
# based on box temp, turn on fan exhausting from box

#turn on:
#if box > 105:
# GPIO.setup(12, GPIO.OUT)
# GPIO.output(12, GPIO.LOW)
# turn off fan exhausting from box
#elif box < 100:
# GPIO.setup(12, GPIO.OUT)
# GPIO.output(12, GPIO.HIGH)

# based on CPU temp, turn on fan exhausting from box
# if CPU > 130:
# GPIO.setup(12, GPIO.OUT)
# GPIO.output(12, GPIO.LOW)
# based on CPU temp, turn off fan exhausting from box
# elif CPU < 125:
# GPIO.setup(12, GPIO.OUT)
# GPIO.output(12, GPIO.HIGH)







And here's the cpucheck code:


#!/bin/bash
while true; do
/root/cpu.py &
wait $!
sleep 10
done
exit


and here's the crontab line to add:

# m h dom mon dow command

* * * * * /root/cpucheck




The candle that burns twice as bright burns half as long

[Updated on: Sun, 02 February 2020 04:11]

Report message to a moderator

Re: Raspberry Pi Greenhouse Controller And Data Logger [message #3300 is a reply to message #3299] Tue, 04 February 2020 20:34 Go to previous message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Part 14 B Raspberry Pi 4 Ultimate Cooling System With Python Code IMPORTANT CODE UPDATE!

https://youtu.be/uJRf22QJkqg

In this video I detail an important code update relative to my last video on this subject (Raspberry Pi Part 14). We edit the checkcpu script as well as the crontab to address a RAM issue I overlooked initially. If you don't update your code like this, you will watch all your free RAM get used up and eventually the machine will run out of RAM and lock up.


code updated:

crontab: (use crontab -e)


# For more information see the manual pages of crontab(5) and cron(Cool
#
# m h dom mon dow command
* * * * * /root/ownew.py
# * * * * * /root/cpucheck
# * * * * * /root/ghcheck

@reboot /root/cpucheck





cpucheck code:

File Edit Options Buffers Tools Sh-Script Help
#!/bin/bash
while true; do
/root/cpu.py
wait $!
sleep 10
done
exit






The candle that burns twice as bright burns half as long

[Updated on: Tue, 04 February 2020 20:35]

Report message to a moderator

Previous Topic: The GL iNet AR-150 and SDR MESH?
Goto Forum:
  


Current Time: Wed Mar 29 20:52:16 EDT 2023

Total time taken to generate the page: 0.04531 seconds