瀏覽代碼

added espenv project

Thomas Buck 3 年之前
父節點
當前提交
7ab275af0b
共有 42 個檔案被更改,包括 84 行新增0 行删除
  1. 3
    0
      input/blog/2015/2015_12_30_caselights.md
  2. 81
    0
      input/projects/espenv.md
  3. 二進制
      static/img/espenv_1.png
  4. 二進制
      static/img/espenv_10.jpg
  5. 二進制
      static/img/espenv_10_small.jpg
  6. 二進制
      static/img/espenv_11.jpg
  7. 二進制
      static/img/espenv_11_small.jpg
  8. 二進制
      static/img/espenv_12.jpg
  9. 二進制
      static/img/espenv_12_small.jpg
  10. 二進制
      static/img/espenv_13.jpg
  11. 二進制
      static/img/espenv_13_small.jpg
  12. 二進制
      static/img/espenv_14.jpg
  13. 二進制
      static/img/espenv_14_small.jpg
  14. 二進制
      static/img/espenv_15.jpg
  15. 二進制
      static/img/espenv_15_small.jpg
  16. 二進制
      static/img/espenv_16.jpg
  17. 二進制
      static/img/espenv_16_small.jpg
  18. 二進制
      static/img/espenv_17.jpg
  19. 二進制
      static/img/espenv_17_small.jpg
  20. 二進制
      static/img/espenv_18.jpg
  21. 二進制
      static/img/espenv_18_small.jpg
  22. 二進制
      static/img/espenv_1_small.png
  23. 二進制
      static/img/espenv_2.png
  24. 二進制
      static/img/espenv_2_small.png
  25. 二進制
      static/img/espenv_3.jpg
  26. 二進制
      static/img/espenv_3_small.jpg
  27. 二進制
      static/img/espenv_4.jpg
  28. 二進制
      static/img/espenv_4_small.jpg
  29. 二進制
      static/img/espenv_5.jpg
  30. 二進制
      static/img/espenv_5_small.jpg
  31. 二進制
      static/img/espenv_6.jpg
  32. 二進制
      static/img/espenv_6_small.jpg
  33. 二進制
      static/img/espenv_7.jpg
  34. 二進制
      static/img/espenv_7_small.jpg
  35. 二進制
      static/img/espenv_8.jpg
  36. 二進制
      static/img/espenv_8_small.jpg
  37. 二進制
      static/img/espenv_9.jpg
  38. 二進制
      static/img/espenv_9_small.jpg
  39. 二進制
      static/img/espenv_desktop.png
  40. 二進制
      static/img/espenv_desktop_small.png
  41. 二進制
      static/img/espenv_screen.png
  42. 二進制
      static/img/espenv_screen_small.png

+ 3
- 0
input/blog/2015/2015_12_30_caselights.md 查看文件

1
 title: Blog
1
 title: Blog
2
 post: CaseLights
2
 post: CaseLights
3
+description: RGB LED / UV light controller with Arduino for Linux and Mac
3
 comments: true
4
 comments: true
4
 flattr: true
5
 flattr: true
5
 github: https://github.com/xythobuz/CaseLights
6
 github: https://github.com/xythobuz/CaseLights
75
 
76
 
76
 You can find all Arduino and Mac code in the [CaseLights GitHub repository](https://github.com/xythobuz/CaseLights).
77
 You can find all Arduino and Mac code in the [CaseLights GitHub repository](https://github.com/xythobuz/CaseLights).
77
 
78
 
79
+In August of 2019, I also added a Linux version of the host control software, as a PyQt status bar app.
80
+The code for that is in the repo as well.

+ 81
- 0
input/projects/espenv.md 查看文件

1
+title: ESP-Env
2
+description: ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
3
+parent: projects
4
+github: https://git.xythobuz.de/thomas/esp-env
5
+date: 2020-01-06
6
+update: 2020-10-22
7
+---
8
+
9
+As a first step into smart home automation, I wanted to place temperature and humidity sensors in most rooms of my flat.
10
+To achieve this, I made some simple ESP8266 boards with an I2C sensor, either SHT21 or BME280, as well as a small 3.3V regulator and a USB connector.
11
+The data is written into an InfluxDB instance on my NAS.
12
+
13
+<!--%
14
+lightgallery([
15
+    [ "img/espenv_10.jpg", "BME280 bedroom, front" ],
16
+    [ "img/espenv_17.jpg", "SHT21 kitchen, front" ],
17
+])
18
+%-->
19
+
20
+The web interface implemented to query the sensor data is very simple.
21
+I am using the following commands to fetch it.
22
+
23
+    curl --silent -m 10 esp-livingroom | grep -E 'Location|Temperature|Humidity' | sed 's/Temperature//g' | sed 's/Humidity//g' | sed 's/Location//g' | sed '2s/$/ \xc2\xb0C/' | sed '3s/$/ %/' | sed 's/: //g' | sed '$!N;s/\n/\t/' | sed '$!N;s/\n/\t/'
24
+
25
+The result is shown on my desktop using [conky](http://conky.sourceforge.net/docs.html).
26
+
27
+<!--%
28
+lightgallery([
29
+    [ "img/espenv_screen.png", "Screenshot of web interface" ],
30
+    [ "img/espenv_desktop.png", "Screenshot of desktop data" ]
31
+])
32
+%-->
33
+
34
+Here you can see some samples of the data I have logged since starting this project.
35
+As you can see, after a while the sensor in the kitchen started giving wrong data.
36
+This is the usual behaviour these sensors show after a couple of months to years.
37
+I replaced it, but shortly afterwards removed the kitchen sensor completely.
38
+You can also see some short gaps in the data, this is caused by the ESPs losing their WiFi connection after a while.
39
+I just had to reset them and they started working again.
40
+
41
+<!--%
42
+lightgallery([
43
+    [ "img/espenv_1.png", "Humidity data from ca. 7 months" ],
44
+    [ "img/espenv_2.png", "Temperature data from ca. 7 months" ]
45
+])
46
+%-->
47
+
48
+Here are some more photos of the PCBs I made.
49
+All of the boards, except one, work fine.
50
+The non-working one is just not connecting to WiFi, regardless of which specific ESP8266 I plug in there.
51
+I have no explanation for this, unfortunately.
52
+
53
+<!--%
54
+lightgallery([
55
+    [ "img/espenv_3.jpg", "BME280 livingroom, front" ],
56
+    [ "img/espenv_4.jpg", "BME280 livingroom, front bare PCB" ],
57
+    [ "img/espenv_5.jpg", "BME280 livingroom, back" ],
58
+    [ "img/espenv_6.jpg", "SHT21 bathroom, case" ],
59
+    [ "img/espenv_7.jpg", "SHT21 bathroom, front" ],
60
+    [ "img/espenv_8.jpg", "SHT21 bathroom, back" ],
61
+    [ "img/espenv_9.jpg", "BME280 bedroom, case" ],
62
+    [ "img/espenv_11.jpg", "BME280 bedroom, back" ],
63
+    [ "img/espenv_12.jpg", "BME280 storage, front" ],
64
+    [ "img/espenv_13.jpg", "BME280 storage, back" ],
65
+    [ "img/espenv_14.jpg", "non-working, front" ],
66
+    [ "img/espenv_15.jpg", "non-working, back" ],
67
+    [ "img/espenv_16.jpg", "SHT21 kitchen, case" ],
68
+    [ "img/espenv_18.jpg", "SHT21 kitchen, back" ]
69
+])
70
+%-->
71
+
72
+The source code can be found [on my Gitea server](https://git.xythobuz.de/thomas/esp-env).
73
+
74
+## License
75
+
76
+    ----------------------------------------------------------------------------
77
+    "THE BEER-WARE LICENSE" (Revision 42):
78
+    <xythobuz@xythobuz.de> wrote this file.  As long as you retain this notice
79
+    you can do whatever you want with this stuff. If we meet some day, and you
80
+    think this stuff is worth it, you can buy me a beer in return.   Thomas Buck
81
+    ----------------------------------------------------------------------------

二進制
static/img/espenv_1.png 查看文件


二進制
static/img/espenv_10.jpg 查看文件


二進制
static/img/espenv_10_small.jpg 查看文件


二進制
static/img/espenv_11.jpg 查看文件


二進制
static/img/espenv_11_small.jpg 查看文件


二進制
static/img/espenv_12.jpg 查看文件


二進制
static/img/espenv_12_small.jpg 查看文件


二進制
static/img/espenv_13.jpg 查看文件


二進制
static/img/espenv_13_small.jpg 查看文件


二進制
static/img/espenv_14.jpg 查看文件


二進制
static/img/espenv_14_small.jpg 查看文件


二進制
static/img/espenv_15.jpg 查看文件


二進制
static/img/espenv_15_small.jpg 查看文件


二進制
static/img/espenv_16.jpg 查看文件


二進制
static/img/espenv_16_small.jpg 查看文件


二進制
static/img/espenv_17.jpg 查看文件


二進制
static/img/espenv_17_small.jpg 查看文件


二進制
static/img/espenv_18.jpg 查看文件


二進制
static/img/espenv_18_small.jpg 查看文件


二進制
static/img/espenv_1_small.png 查看文件


二進制
static/img/espenv_2.png 查看文件


二進制
static/img/espenv_2_small.png 查看文件


二進制
static/img/espenv_3.jpg 查看文件


二進制
static/img/espenv_3_small.jpg 查看文件


二進制
static/img/espenv_4.jpg 查看文件


二進制
static/img/espenv_4_small.jpg 查看文件


二進制
static/img/espenv_5.jpg 查看文件


二進制
static/img/espenv_5_small.jpg 查看文件


二進制
static/img/espenv_6.jpg 查看文件


二進制
static/img/espenv_6_small.jpg 查看文件


二進制
static/img/espenv_7.jpg 查看文件


二進制
static/img/espenv_7_small.jpg 查看文件


二進制
static/img/espenv_8.jpg 查看文件


二進制
static/img/espenv_8_small.jpg 查看文件


二進制
static/img/espenv_9.jpg 查看文件


二進制
static/img/espenv_9_small.jpg 查看文件


二進制
static/img/espenv_desktop.png 查看文件


二進制
static/img/espenv_desktop_small.png 查看文件


二進制
static/img/espenv_screen.png 查看文件


二進制
static/img/espenv_screen_small.png 查看文件


Loading…
取消
儲存