Time"--query data over a period of time#!/bin/shdbname= "Cpu.db"sqlite3 $DBNAME "select * from Tempswhere Tdatetime > DateTime (' 2014-08-02 19:00:00 ') andtdatetime "Brief description""1" 2014-08-02 19:00:00 must account for 4 figures, others must account for 2 numbers, insufficient to use 0. "2" Here does not need to increase the localtime parameter, the specific reason is unknown.5 Summary"1" When you
Design and Development of Micro-meteorological stations based on Raspberry Pi (Windows 10 IoT Core) and iotcore
Preface
Raspberry Pi (RPi) is designed specifically for Students' Computer Programming education. Only credit card-sized card-type computers can run Linux or Windows 10 IoT Core operating systems. This articl
resize2fs /dev/mmcblk0p2
This command expands the second partition to the new space.
Check hard disk usage. OK
df -hOperating principle
First, the Linux primary partition and the Swap partition are deleted. The starting position of the re-built primary partition is the same as that of the original primary partition, and then the data of the original primary partition is not changed, but the size of the primary partition is changed.
How to run Ubuntu Snappy Core in
How to Use image effects on Raspberry Pi
Now you can use the Raspberry Pi camera module ("raspi cam") to add a variety of image effects to your photos, just like using a card camera. The raspistill command line tool provides a wide range of image effects options for Raspberry
Use the command line to set Raspberry Pi's Wi-Fi network
If you have not logged on to the Common graphic user interface, This method is suitable for setting Raspberry Pi's wifi. Especially when you do not have a screen or wired network, you only use the serial control line. In addition, this method does not require additional software, and everything is included in Rasp
Tags: Raspberry Pi sqlite python0 PrefaceThis article uses Python to insert the Raspberry Pi temperature data into the SQLite database, and the SQLite database contains a record table with only three fields-parameter name, time and temperature values. This article mainly explains Python operation SQLite's specific meth
Raspberry Pi assembly and operating system installationFirst, the original Raspberry Pi1, Raspberry Pi 2 Model B Development Board2, SD card (this experiment project selects memory 8G SD card)3, network cable a root4, HDMI cable 1
software package is ready and can be released;
Iii. Cross-compiling source code
1. Environment
Ubuntu
2. Install Raspberry Pi cross compiling tool
Step1. download Raspberry Pi cross compiler tool https://github.com/raspberrypi/tools
Step
So that your computer can connect to Raspberry Pi without entering a password. You only need to generate an SSH key.
1. Check for existing SSH keys (check the existing SSK key)
First, check whether your computer (the device you use to connect to Raspberry Pi) has an SSH key:
ls ~/.ssh
If you see
Id_rsa.pubOr
Id_dsa.pu
device to the common Nic, and then connect to the Internet through the NIC. That is, the NAT structure mentioned above. Next, we need to configure the NAT address table to open/etc/sysctl.confAdd the following configuration file to the last line of the file:
net.ipv4.ip_forward=1
Then, start NAT in the kernel:
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEsudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPTsudo iptables -A FORWARD -i wlan0 -o eth0
Environment: Raspberry Pi, System Raspbian, System comes with two versions of Python and Pygame.1. ArtboardsThe procedure is as follows:1! /home/pi/game_1.py2 ImportPygame3 4width = 6405Height = 4806RADIUS = 1007Fill = 18 9Pygame.init ()#Initialize PygameTen Onewindow =Pygame.display.set_mode ((window, height)) AWindow.fill (Pygame. Color (255, 255, 255))#fill t
What is Raspberry Pi? You don't know? I went to Baidu, an interesting hardware.
Online shopping of a batch of accessories, finally arrived, 16 gb sd card, Raspberry Pi, Raspberry Pi box, heat sink (
running in the background, first use the following command.FgIt will force it to run for the foreground, and then you can use ctrl-c to stop.It has been tested in several aspects.First, close my WiFi access point. This script does not detect network connections and begins to try to force a connection. After several minutes, connect the power supply access point again.In another experiment, I deleted the MAC address from the address list and allowed the MAC address filtering of the Access Point.
Install a lamp environment for Raspberry Pi in the past two days, but there are too many things installed on it, and the default system space is occupied. But the SD card itself is 16 GB. What if I want to extend the Raspberry Pi to a larger space? I can continue to install the software only after the expansion. After
Raspberry PI 3 to create a music player
1. Software Environment
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mplayer2//music playback software
sudo apt-get install Alsamixergui//volume control
2. Prepare the song
Find a song. MP3 Songs
Here is a: wget Http://blog.lxx1.com/wp-content/uploads/2016/07/shero.mp3
3, set the
To telnet to the Raspberry Pi GUI via vnc, the Raspberry Pi must have a VNC Server service installed on one side, and a few simple configurations are required to make the operation more convenient, as detailed steps below.1. Installing the VNC server component--tightvncserversudo Install Tightvncserver2. Set up a VNC p
xtightvncviewer package:
sudo apt-get install xtightvncviewer
-For other platforms, you can download TightVNC from tightvnc.com.
Automation and run at boot (Automatic startup)
You can create a simple file on Raspberry Pi and save some commands to run the VNC service. Save the commands so that you do not need to remember them again:
-Create a file containing the following shell script:
#!/bin/shvncserver :
Installing ROS Indigo on the Raspberry PiDescription:this instruction covers the installation of ROS Indigo on the original Raspberry Pi with Raspbian.Keywords:raspberry Pi, Setup, IndigoContents1 IntroductionThis tutorial explains how to install ROS Indigo from source on the Raspb
Tags: Raspberry Pi CPU Temperature0 PrefaceThis article through the Python SQLite query Raspberry Pi CPU temperature history data, in the previous blog post has introduced the Raspberry Pi CPU temperature acquisition, SQLite opera
executable files, while easyarm im287 cannot. Easyarm im287 uses the busybox instruction set, which is also different from the Debian Instruction Set in Raspberry Pi.
[Related blog] [easyarm I. mx28 learning notes-file IO operations gpio] [Raspberry Pi learning notes-shell script operations gpio] [
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.