Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:laboratoare:2025:lab9 [2025/11/23 12:53]
dan.tudose [4.3 app.js]
iothings:laboratoare:2025:lab9 [2025/11/23 13:43] (current)
dan.tudose [3. ESP32-C6 Sparrow Firmware (HTTPS + BME680 + NeoPixel)]
Line 189: Line 189:
  
   * ''​WiFiClientSecure''​ for HTTPS.   * ''​WiFiClientSecure''​ for HTTPS.
-  * For simplicity we will call ''​setInsecure()''​ (it still uses TLS but skips certificate ​validation).  ​ +  * We have embedded a proper CA certificate. 
-    ​*For productionembed proper CA certificates.*+  ​* ​The certificate is the full Google TLS root (GTS Root R1cross-signed by GlobalSign) captured from a live identitytoolkit.googleapis.com chain and reverted to setCACert using that PEM
  
  
Line 240: Line 240:
     index.html     index.html
     app.js     app.js
 +    chart.umd.min.js
 </​code>​ </​code>​
  
Line 246: Line 247:
 ==== 4.2 index.html ==== ==== 4.2 index.html ====
  
-Create ''​dashboard/​public/​index.html''​ with:+Create ''​dashboard/​public/​index.html''​ with the code from [[iothings:laboratoare:​2025_code:​lab9_2|here]].
  
  
 ==== 4.3 app.js ==== ==== 4.3 app.js ====
  
-Create ''​dashboard/​public/​app.js''​ and paste this.  ​ +Create ''​dashboard/​public/​app.js''​ and paste [[iothings:​laboratoare:​2025_code:​lab9_3|this]].  ​
-**Replace** the ''​firebaseConfig''​ values with those from your Firebase console:+
  
 +**Replace** the ''​firebaseConfig''​ values with those from your Firebase console.
  
 +==== 4.4 chart.umd.min.js ====
  
 +Create ''​dashboard/​public/​chart.umd.min.js''​. You need this for rendering the charts locally. ​
 +
 +The code is [[iothings:​laboratoare:​2025_code:​lab9_4|here]].
 ===== 5. Deploy Dashboard with Firebase Hosting ===== ===== 5. Deploy Dashboard with Firebase Hosting =====
  
iothings/laboratoare/2025/lab9.1763895192.txt.gz · Last modified: 2025/11/23 12:53 by dan.tudose
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0