-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
121 lines (121 loc) · 4.27 KB
/
Copy pathindex.xml
File metadata and controls
121 lines (121 loc) · 4.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Datux – Datux</title><link>http://dtx3k.github.io/</link><description>Recent content on Datux</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="http://dtx3k.github.io/index.xml" rel="self" type="application/rss+xml"/><item><title>Blog: Trying some code</title><link>http://dtx3k.github.io/blog/2020/06/10/trying-some-code/</link><pubDate>Wed, 10 Jun 2020 00:31:12 +0200</pubDate><guid>http://dtx3k.github.io/blog/2020/06/10/trying-some-code/</guid><description>
<p>Trying the prism.js</p>
<pre><code class="language-yaml">substitutions:
devicename: shelly_hal
esphome:
name: ${devicename}
platform: ESP8266
board: esp01_1m
&lt;&lt;: !include common/tmpl_wifi.yaml
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
i2c:
sda: GPIO12
scl: GPIO14
sensor:
- platform: ade7953
voltage:
name: ${devicename} Voltage
current_a:
name: ${devicename} Current B
current_b:
name: ${devicename} Current A
active_power_a:
name: ${devicename} Active Power B
filters:
- multiply: -1
active_power_b:
name: ${devicename} Active Power A
filters:
- multiply: -1
update_interval: 60s
# NTC Temperature
- platform: ntc
sensor: temp_resistance_reading
name: ${devicename} Temperature
unit_of_measurement: &quot;°C&quot;
accuracy_decimals: 1
icon: &quot;mdi:thermometer&quot;
calibration:
b_constant: 3350
reference_resistance: 10kOhm
reference_temperature: 298.15K
- platform: resistance
id: temp_resistance_reading
sensor: temp_analog_reading
configuration: DOWNSTREAM
resistor: 32kOhm
- platform: adc
id: temp_analog_reading
pin: A0
status_led:
pin:
number: GPIO0
inverted: yes
output:
- platform: gpio
pin: GPIO4
id: shelly_25_relay_1
- platform: gpio
pin: GPIO15
id: shelly_25_relay_2
light:
- platform: binary
name: &quot;${devicename} Light 1&quot;
output: shelly_25_relay_1
id: lightid1
- platform: binary
name: &quot;${devicename} Light 2&quot;
output: shelly_25_relay_2
id: lightid2
binary_sensor:
- platform: gpio
pin:
number: GPIO13
#mode: INPUT_PULLUP
#inverted: True
name: &quot;${devicename} Switch 1&quot;
on_state:
then:
- light.toggle: lightid1
internal: true
id: switchid1
- platform: gpio
pin:
number: GPIO5
#mode: INPUT_PULLUP
#inverted: True
name: &quot;${devicename} Switch 2&quot;
on_state:
then:
- light.toggle: lightid2
internal: true
id: switchid2
</code></pre>
<p>testing some html</p>
<p>maybe later&hellip; got issues</p></description></item><item><title>Blog: My First Post</title><link>http://dtx3k.github.io/blog/2020/06/06/my-first-post/</link><pubDate>Sat, 06 Jun 2020 08:47:11 +0100</pubDate><guid>http://dtx3k.github.io/blog/2020/06/06/my-first-post/</guid><description>
<img src="http://dtx3k.github.io/blog/2020/06/06/my-first-post/featured-sunset-get_hu69849a7cdb847c2393a7b3a7f6061c86_387442_640x0_resize_catmullrom_2.png" width="640" height="253"/>
<h2 id="finaly-the-workflow-works">Finaly the workflow works</h2>
<p>Yes this site is in a WIP state
i wanted to test out multiple workflows for CI/CD just to make working on my site a breeze
and ofcourse : Because it can!</p>
<p>that alone is reason enough isnt it ;)</p>
<p>So i tried and tries Netlify but its to much lockin of en third party commercial thing
Then multiple hours (nights even) to get Droid on my K3S machine running with a multi repo setup
That failed massively haha</p>
<p>I just wanted a workflow (like it works now) to pickup repo A &gt; build &gt; deploy output to Repo B
Sound simple right! well&hellip;that didnt work as expected, the 2 ways of deployment te Droid Plugins delever are:</p>
<ul>
<li>A: Broken</li>
<li>B: Unconfigurable (or not flexible enough)</li>
<li>C: poorly documented</li>
<li>D: random outcome</li>
</ul>
<p>So i settled with Github Actions workflow which took me about 20 minutes including getting familliar with Github Actions at all!
Yes! it&rsquo;s that simple and very custimizable too!
And it just works, picked up a sample deployment for Hugo, changed to my likings and whoop there it is</p>
<p>so now i can start filling and styling this part of the interwebz, stay tuned!</p></description></item></channel></rss>