aboutsummaryrefslogtreecommitdiff
path: root/public/index.xml
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.xml')
-rwxr-xr-xpublic/index.xml12
1 files changed, 5 insertions, 7 deletions
diff --git a/public/index.xml b/public/index.xml
index 93fd748..9bf469f 100755
--- a/public/index.xml
+++ b/public/index.xml
@@ -2629,9 +2629,8 @@ Zero</a>.</p>
2629refreshing only once a minute, this can be done through cronjob.</p> 2629refreshing only once a minute, this can be done through cronjob.</p>
2630<p>Before we add this job to cron we need to make <code>clock.py</code> executable with <code>chmod +x clock.py</code>.</p> 2630<p>Before we add this job to cron we need to make <code>clock.py</code> executable with <code>chmod +x clock.py</code>.</p>
2631<p>Then we add a cronjob with <code>crontab -e</code>.</p> 2631<p>Then we add a cronjob with <code>crontab -e</code>.</p>
2632<pre><code>* * * * * /home/pi/clock.py 2632<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>* * * * * /home/pi/clock.py
2633</code></pre> 2633</span></span></code></pre><p>So, we end up with a result like this.</p>
2634<p>So, we end up with a result like this.</p>
2635<figure> 2634<figure>
2636<img src="/posts/world-clock/world-clock.jpg" alt="World Clock" /> 2635<img src="/posts/world-clock/world-clock.jpg" alt="World Clock" />
2637</figure> 2636</figure>
@@ -2683,11 +2682,11 @@ all the functionalities I need, and it's a single binary. Written in Go.<
2683<figure> 2682<figure>
2684<img src="/posts/goaccess/goaccess-dash-term.png" alt="GoAccess Terminal" /> 2683<img src="/posts/goaccess/goaccess-dash-term.png" alt="GoAccess Terminal" />
2685</figure> 2684</figure>
2686<center><i>Running in a terminal</i></center> 2685<p><em>Running in a terminal</em></p>
2687<figure> 2686<figure>
2688<img src="/posts/goaccess/goaccess-dash-html.png" alt="GoAccess HTML" /> 2687<img src="/posts/goaccess/goaccess-dash-html.png" alt="GoAccess HTML" />
2689</figure> 2688</figure>
2690<center><i>Running in a browser</i></center> 2689<p><em>Running in a browser</em></p>
2691<p>I, however, need this to run in a browser. So, the second option is the way to 2690<p>I, however, need this to run in a browser. So, the second option is the way to
2692go. The Idea is to periodically run cronjob and export this report into a folder 2691go. The Idea is to periodically run cronjob and export this report into a folder
2693that gets then server by Nginx behind a Basic authentication.</p> 2692that gets then server by Nginx behind a Basic authentication.</p>
@@ -3129,8 +3128,7 @@ that will make this whole experience a little more bearable.</p>
3129<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># installing ampy</span> 3128<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># installing ampy</span>
3130</span></span><span style="display:flex;"><span>sudo pip3 install adafruit-ampy 3129</span></span><span style="display:flex;"><span>sudo pip3 install adafruit-ampy
3131</span></span></code></pre><p>Listed below are some common commands I used.</p> 3130</span></span></code></pre><p>Listed below are some common commands I used.</p>
3132<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span> 3131<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># uploads file to flash</span>
3133</span></span><span style="display:flex;"><span><span style="color:#008000"># uploads file to flash</span>
3134</span></span><span style="display:flex;"><span>ampy --delay 2 --port /dev/ttyUSB0 put boot.py 3132</span></span><span style="display:flex;"><span>ampy --delay 2 --port /dev/ttyUSB0 put boot.py
3135</span></span><span style="display:flex;"><span> 3133</span></span><span style="display:flex;"><span>
3136</span></span><span style="display:flex;"><span><span style="color:#008000"># lists file on flash</span> 3134</span></span><span style="display:flex;"><span><span style="color:#008000"># lists file on flash</span>