adding wp-content folder

main
jaume-nualart 1 month ago
parent 4ff0a0deb4
commit 48e3623da5
  1. 3
      README.md
  2. 10
      web-html/config/config.js
  3. 12
      web-html/config/config.js.ORIG
  4. 72
      web-html/config/datamap.js.ORIG
  5. 6
      web-html/index.html
  6. 2
      web-html/js/home.js

@ -56,6 +56,7 @@ The code of this application is accessible and can be downloaded from the Git re
$ flask --version $ flask --version
Python 3.10.12 Python 3.10.12
Flask 2.3.3 Flask 2.3.3
flask-cors-4.0.0
Werkzeug 2.3.7 Werkzeug 2.3.7
- The app uses sqlite to store the data. Sqlite is included in Python3. - The app uses sqlite to store the data. Sqlite is included in Python3.
@ -74,6 +75,8 @@ The code of this application is accessible and can be downloaded from the Git re
2. Put the file inside /py/ directory 2. Put the file inside /py/ directory
3. From a command-line terminal: cd /path_to/py/ 3. From a command-line terminal: cd /path_to/py/
4. From a command-line terminal run 'python import.py' to create the sqlite database. This will create sqlite databses for each .db file. 4. From a command-line terminal run 'python import.py' to create the sqlite database. This will create sqlite databses for each .db file.
4,1 Pyhon libs installation:
~ pip install flask flask-cors werkzeug
5. From a command-line terminal run 'python -m flask --app main run' to start the API server. 5. From a command-line terminal run 'python -m flask --app main run' to start the API server.
4- Run/start a web server pointing to web-html/index.html as home page 4- Run/start a web server pointing to web-html/index.html as home page
1. Open a browser and go to twhere the ndex,html ius. You must be able to select the data ordatas you just created. 1. Open a browser and go to twhere the ndex,html ius. You must be able to select the data ordatas you just created.

@ -1,12 +1,12 @@
// MAIN_VARIABLES // MAIN_VARIABLES
head_title = "TraHus Dynamic dashboard"; head_title = "Flexiboard";
homePagageUrl = "./home.html"; homePagageUrl = "./index.html";
h1_title = "Welcome to the TräHus flexyboard"; h1_title = "Create and save as many dashboards as you want: customized, user-cases-boards, easy web interaction.";
subtitle = 'This application is a flexyboard that enables monitorization of time-series sensors.'; subtitle = 'This application is a flexyboard that enables monitorization of time-series sensors via IoT devices and technology..';
base_url_API = "http://localhost:5000"; base_url_API = "http://localhost:5000";
x2 = "..."; x2 = "...";
credits = "Infravis.se (LNU node)"; credits = "<a href=\"https_//infravis.se/\" target=\"Infravis.se site\" >Infravis.se</a> (LNU node): Jaume Nualart, Rafael M.Martins and Michael Dorn, all PhDs from LNU.se. This is an infravis project. Infravis is theSwedish Swedish national research infrastructure for data visualization";

@ -0,0 +1,12 @@
// MAIN_VARIABLES
head_title = "TraHus Dynamic dashboard";
homePagageUrl = "./home.html";
h1_title = "Welcome to the TräHus flexyboard";
subtitle = 'This application is a flexyboard that enables monitorization of time-series sensors.';
base_url_API = "http://localhost:5000";
x2 = "...";
credits = "Infravis.se (LNU node)";

File diff suppressed because one or more lines are too long

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TraHus homepage</title> <title></title>
<!-- Required meta tags --> <!-- Required meta tags -->
<meta charset="utf-8"> <meta charset="utf-8">
@ -51,7 +51,7 @@
<script src="./js/home.js"></script> <script src="./js/home.js"></script>
<title>TräHus data fkexiboard by Infravis.se</title> <title>Fkexiboard by Infravis.se</title>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
@ -61,7 +61,7 @@
</nav> </nav>
<!-- CHAnge here the title! --> <!-- CHAnge here the title! -->
<h1>Welcome to the TräHus dashboard.</h1> <h1>Welcome to Flexiboard.</h1>
<p>List of available houses:</p> <p>List of available houses:</p>
<div id="card_list" class="row"> <div id="card_list" class="row">

@ -9,7 +9,7 @@ var HTML_navBar = `
<div class="collapse navbar-collapse" id="navbarTogglerDemo01"> <div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<a class="navbar-brand" href="`+homePagageUrl+`"> <a class="navbar-brand" href="`+homePagageUrl+`">
<img src="imgs/infravis.jpg" alt="" width="30" height="24" class="d-inline-block align-text-top"> <img src="imgs/infravis.jpg" alt="" width="30" height="24" class="d-inline-block align-text-top">
TräHus `+head_title+`
</a> </a>
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"> <li class="nav-item">

Loading…
Cancel
Save