<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Elleryer的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Elleryer</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Elleryer]]></copyright><item><title><![CDATA[Python 浏览器控制踩坑 -selenium]]></title><link>https://blog.csdn.net/Elleryer/article/details/113245274</link><guid>https://blog.csdn.net/Elleryer/article/details/113245274</guid><author>Elleryer</author><pubDate>Wed, 27 Jan 2021 12:00:04 +0800</pubDate><description><![CDATA[sudo apt install firefox-esr
wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux32.tar.gz
tar -xzvf deckodriver-v0.29.0-linux32.tar.gz
sudo cp geckodriver /usr/bin/geckodriver
注意，使用selenium中报出selenium.common.exce]]></description><category></category></item><item><title><![CDATA[Android 踩坑之 WebView设置颜色]]></title><link>https://blog.csdn.net/Elleryer/article/details/112611583</link><guid>https://blog.csdn.net/Elleryer/article/details/112611583</guid><author>Elleryer</author><pubDate>Thu, 14 Jan 2021 15:19:40 +0800</pubDate><description><![CDATA[直接在xml文件里面设置background color是不行的，需要到Activity里面去设置，方法如下：
WebView wView = findViewById(R.id.ur_webview_id);
wView.getSettings().setDefaultTextEncodingName("UTF -8");
wView.setBackgroundColor(getResources().getColor(R.color.the_color_u_wanna_set));
wView.load]]></description><category></category></item><item><title><![CDATA[Android 踩坑之 ScrollView中的WebView底部出现大段空白 的解决办法]]></title><link>https://blog.csdn.net/Elleryer/article/details/112605510</link><guid>https://blog.csdn.net/Elleryer/article/details/112605510</guid><author>Elleryer</author><pubDate>Thu, 14 Jan 2021 14:01:51 +0800</pubDate><description><![CDATA[在xml文件中设置布局高度为wrap_content即可：
&lt;com.example.iocs_moniting.MyScrollView
    ***
    
&lt;WebView
    ***
    android:layout_height="wrap_content"

]]></description><category></category></item><item><title><![CDATA[树莓派4B连接中文无线网不成功的解决办法]]></title><link>https://blog.csdn.net/Elleryer/article/details/109594072</link><guid>https://blog.csdn.net/Elleryer/article/details/109594072</guid><author>Elleryer</author><pubDate>Wed, 11 Nov 2020 16:43:25 +0800</pubDate><description><![CDATA[sudo wpa_cli
add_network
#这里得到返回值是个数字
set_network 刚刚返回的数字 ssid "WIFI名称"  
set_network 刚刚返回的数字 psk "WIFI密码"
enable_network 刚刚返回的数字
save_config 

]]></description><category></category></item><item><title><![CDATA[树莓派4B挂着的python脚本跑着跑着被系统terminated]]></title><link>https://blog.csdn.net/Elleryer/article/details/108508861</link><guid>https://blog.csdn.net/Elleryer/article/details/108508861</guid><author>Elleryer</author><pubDate>Thu, 10 Sep 2020 10:33:42 +0800</pubDate><description><![CDATA[在2G内存的树莓派上挂了几个脚本一直跑着，一般7-10天就会被系统强制杀掉，毕竟python的内存优化嘛比较呵呵。
通过下面命令可以直接查看你的内存使用状况
free -h

其中free表示真空着的内存，available表示被认为可用的内存
所以我做了个定时监控，查看到Avaliable的内存小于总内存的15%的时候对脚本进行一下重启
import schedule, psutil, sys, os, threading

def run_thread(jobs):
    try:
        t]]></description><category></category></item><item><title><![CDATA[dpkg报错无法恢复的致命错误：libssh-gcrypt-4]]></title><link>https://blog.csdn.net/Elleryer/article/details/108491496</link><guid>https://blog.csdn.net/Elleryer/article/details/108491496</guid><author>Elleryer</author><pubDate>Wed, 09 Sep 2020 15:57:27 +0800</pubDate><description><![CDATA[执行sudo apt install时报错 dpkg报错无法恢复的致命错误：libssh-gcrypt-4
说明libssh-gcrypt-4文件坏了，查找到dpkg的libssh-gcrypt-4包删除之再更新就好
cd /var/lib/dpkg/info
ls libssh-gcrypt*


sudo rm libssh-gcrypt*
sudo apt update
sudo apt upgrade
sudo apt install gedit

cheers

...]]></description><category></category></item><item><title><![CDATA[树莓派DHT22读Adafruit_DHT报错 can not import Beaglebone_Black_Driver的解决办法]]></title><link>https://blog.csdn.net/Elleryer/article/details/108482087</link><guid>https://blog.csdn.net/Elleryer/article/details/108482087</guid><author>Elleryer</author><pubDate>Wed, 09 Sep 2020 09:33:08 +0800</pubDate><description><![CDATA[最近换了很多树莓派上用的温湿度传感器，要么精度不佳，要么连线太麻烦，要么太贵哈哈。最后敲定了DHT22这个传感器，精度能接收，还贼便宜。
8.25号第一次测试，跑出来一点问题没有，然后昨天再试的时候就疯狂报错can not import Beaflebone_Black_Driver。好么，一查8.30做过更新，估计是哪里匹配出了问题。
然后试试卸载再重装Adafruit_DHT:
pip3 uninstall Adafruit_DHT
pip3 install Adafruit_DHT
发现没啥卵用，继续]]></description><category></category></item><item><title><![CDATA[树莓派4B安装 Team Viewer]]></title><link>https://blog.csdn.net/Elleryer/article/details/108253978</link><guid>https://blog.csdn.net/Elleryer/article/details/108253978</guid><author>Elleryer</author><pubDate>Thu, 27 Aug 2020 10:18:03 +0800</pubDate><description><![CDATA[最近因为树莓派自带的VNC这个玩意他连接又不稳定价钱又贵，果断换Team Viewer，自动调节分辨率适应网速不香嘛。
试了下乌班图亲测可用的sudo apt-get install teamviewer并不能直接检索到安装包下载，所以去官网先下个deb来吧， Team viewer官网地址官网很贴心的直接有树莓派的安装包.
然后扔进树莓派里。
cd Downloads
sudo dpkg -i teamviewer-host_15.9.4_armhf.deb

然后他会提示你什么依赖问题巴拉巴拉不能安装
]]></description><category></category></item><item><title><![CDATA[树莓派sd卡容量显示不全的解决办法]]></title><link>https://blog.csdn.net/Elleryer/article/details/107055975</link><guid>https://blog.csdn.net/Elleryer/article/details/107055975</guid><author>Elleryer</author><pubDate>Wed, 01 Jul 2020 09:09:34 +0800</pubDate><description><![CDATA[32G的sd卡，插上之后
df -h

显示只有7G
需要对文件系统进行扩容操作：
sudo raspi-config
-&gt;Advanced Options
-&gt;Expand Filesystem

然后跟着操作就行，之后reboot即可

]]></description><category></category></item><item><title><![CDATA[Azure database for Mysql设置时区]]></title><link>https://blog.csdn.net/Elleryer/article/details/106466697</link><guid>https://blog.csdn.net/Elleryer/article/details/106466697</guid><author>Elleryer</author><pubDate>Mon, 01 Jun 2020 09:58:57 +0800</pubDate><description><![CDATA[参考： MySQL时区设置 
set time_zone = '+8:00';
show variables like '%time_zone%';
然后看一下我们之前的数据：

Cheers

]]></description><category></category></item><item><title><![CDATA[树莓派4B 搭建私人网盘]]></title><link>https://blog.csdn.net/Elleryer/article/details/106092009</link><guid>https://blog.csdn.net/Elleryer/article/details/106092009</guid><author>Elleryer</author><pubDate>Wed, 27 May 2020 13:01:59 +0800</pubDate><description><![CDATA[网盘搭建参考: 无需公网IP，用树莓派搭建自己的私有云盘.
搭建过程中，发现笔记本的公网IP乱跳导致不能同步，又加上了内网穿透工具实现同步。
首先挂载硬盘：
sudo mkdir /mnt/mydrive

查看硬盘标识符：
sudo fdisk –l

编辑fstab文件：
sudo gedit etc/fstab
//在文末加入 (其中/dev/sda1是你上一步查出来的硬盘标识符)
/dev/sda1 /mnt/pidrive ntfs-3g defaults 0 0

保存之后对硬盘进行挂载：
su]]></description><category></category></item><item><title><![CDATA[树莓派 激光pm2.5传感器模块SDS011 Modbus RTU]]></title><link>https://blog.csdn.net/Elleryer/article/details/106347830</link><guid>https://blog.csdn.net/Elleryer/article/details/106347830</guid><author>Elleryer</author><pubDate>Wed, 27 May 2020 11:00:43 +0800</pubDate><description><![CDATA[现在我们的树莓派需要连接激光传感器测量室内的空气质量。
买回来之后发现是通过USB连接通过Modbus RTU 进行传输的。
然后网上查了下：
python modbus 实现RTU 通信
测试了一下代码，发现怎么更改端口号都找不到设备，查了一下树莓派USB端口设置， 然后发现需要对USB串口进行固定：
树莓派USB端口绑定
首先多次插拔确定USB端口：
lsusb

sudo gedit /etc/udev/rules.d/99-com.rules
//文末添加
KERNEL=="ttyUSB*",ATT]]></description><category></category></item><item><title><![CDATA[树莓派IoT Device遥测上传IoT Hub 并通过Stream Analytics job 存储数据]]></title><link>https://blog.csdn.net/Elleryer/article/details/105793453</link><guid>https://blog.csdn.net/Elleryer/article/details/105793453</guid><author>Elleryer</author><pubDate>Mon, 27 Apr 2020 16:49:21 +0800</pubDate><description><![CDATA[首先新建Stream Analytics job跟Storage Account具体步骤可以查阅微软帮助文档
链接: Azure Stream Analytics documentation.
进入portal -&gt; Create a resource -&gt; Stream Analytics job然后起个名字啥的基本操作还有Storage Account那里就不废话了。
然后进入你的...]]></description><category></category></item><item><title><![CDATA[树莓派4B运行exe文件]]></title><link>https://blog.csdn.net/Elleryer/article/details/105636546</link><guid>https://blog.csdn.net/Elleryer/article/details/105636546</guid><author>Elleryer</author><pubDate>Tue, 21 Apr 2020 11:55:10 +0800</pubDate><description><![CDATA[首先上酒，
sudo apt install wine
winecfg
然后出现 Bad EXE format balabala… 错误
重新跑一下设置winecfg然后发现跑的时候出现错误：Could not load wine-gecko
参考: 安装Wine Gecko.安装壁虎牌红酒,
下载最新的Wine Gecko：下载
将下载Wine Gecko 文件复制到“/home/pi/~/.w...]]></description><category></category></item><item><title><![CDATA[Python SNMP on Raspbian Raspberry Pi]]></title><link>https://blog.csdn.net/Elleryer/article/details/105572282</link><guid>https://blog.csdn.net/Elleryer/article/details/105572282</guid><author>Elleryer</author><pubDate>Fri, 17 Apr 2020 16:46:52 +0800</pubDate><description><![CDATA[pip(3) install pysnmp 
pip(3) install pysnmp-apps 
// for collect trap
sudo vim /etc/hosts.allow
//添加允许接收trap的主机
all:192.168.0.2 #snmptrapd: 192.168.0.2
:wq!
sudo vim /etc/snmp/snmptrapd.conf
authcomm...]]></description><category></category></item><item><title><![CDATA[树莓派4B 上传数据到IoT hub 之 Message routing]]></title><link>https://blog.csdn.net/Elleryer/article/details/105481274</link><guid>https://blog.csdn.net/Elleryer/article/details/105481274</guid><author>Elleryer</author><pubDate>Mon, 13 Apr 2020 10:12:07 +0800</pubDate><description><![CDATA[继续跟着于老师的视频来：
链接:使用消息路由将遥测数据集成到业务系统
首先，到你的IoT Hub里面找到 Message Routing，然后自定义一个endpoint：
建好之后再添加一个使用刚建好的Endpoint的监控遥测信息的路由，设置好温度报警：

额。。然后保存不上= =。。。接着往后看了看视频发现于老师也干了同样的事儿哈哈，保存的是字段不是布尔值：

然后成功保存路由，懒得改字段名称...]]></description><category></category></item><item><title><![CDATA[树莓派4B 系列常用指令]]></title><link>https://blog.csdn.net/Elleryer/article/details/105426372</link><guid>https://blog.csdn.net/Elleryer/article/details/105426372</guid><author>Elleryer</author><pubDate>Fri, 10 Apr 2020 16:25:14 +0800</pubDate><description><![CDATA[//检测系统版本
uname
uname -n
//检测位数
getconf LONG_BIT
//CPU温度
vcgencmd measure_temp
//频率
vcgencmd measure_clock arm

TBC

]]></description><category></category></item><item><title><![CDATA[树莓派4B 各种小工具安装]]></title><link>https://blog.csdn.net/Elleryer/article/details/105411799</link><guid>https://blog.csdn.net/Elleryer/article/details/105411799</guid><author>Elleryer</author><pubDate>Fri, 10 Apr 2020 16:24:24 +0800</pubDate><description><![CDATA[树莓派4B 各种小工具安装中文输入法VS Code
中文输入法
Fcitx 跟各种拼音输入法
sudo apt-get install fcitx fcitx-googlepinyin
sudo reboot now
VS Code
参考下面连接就好，记得sudo
链接: 树莓派下安装VSCode.

...]]></description><category></category></item><item><title><![CDATA[树莓派4B IoT 之 Azure Time Series]]></title><link>https://blog.csdn.net/Elleryer/article/details/105431253</link><guid>https://blog.csdn.net/Elleryer/article/details/105431253</guid><author>Elleryer</author><pubDate>Fri, 10 Apr 2020 13:09:27 +0800</pubDate><description><![CDATA[IoT Resource Group -&gt; Overview -&gt; Add -&gt; 找到 Time Series Insights environment
然后根据引导完成创建
部署完成后回到资源组，点选进 Time Series Insights environment -&gt; Overview -&gt; Time Series Insights explorer URL
...]]></description><category></category></item><item><title><![CDATA[监听 树莓派4B 上传到 iot hub 的 method]]></title><link>https://blog.csdn.net/Elleryer/article/details/105428314</link><guid>https://blog.csdn.net/Elleryer/article/details/105428314</guid><author>Elleryer</author><pubDate>Fri, 10 Apr 2020 13:01:27 +0800</pubDate><description><![CDATA[pip install azure-iot-hub
//装好了 Azure CLI 之后执行:
az iot hub show-connection-string --hub-name {your iot hub name} --policy-name service
得到你用于监听的connection string，粘到监听代码里就好了

...]]></description><category></category></item></channel></rss>