Skip to content

Commit

Permalink
Merge pull request #1727 from alexandrecuer/origin/master
Browse files Browse the repository at this point in the history
documentation commit
  • Loading branch information
glynhudson committed Sep 2, 2021
2 parents dcc2b13 + 3c60ef1 commit f1c5ee0
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Lib/menu/readme.md
@@ -1,3 +1,9 @@
Over time, Emoncms is in the process to use its own dedicated css/javascript framework. The navigation menu is one major block of this custom approach.

Below are the essential instructions to deal with the navigation menu inside emoncms.

To focus on the menu component as a framework, a small piece of code is available [here](http://github.com/alexandrecuer/frontend), with a [live static demo](http://alexandrecuer.github.io/frontend) .

# Emoncms Menu System

The Emoncms menu system is primarily drawn on the client side using javascript, from a menu object collated from individual module *modulename_menu.php* files.
Expand Down
32 changes: 27 additions & 5 deletions Modules/vis/README.md
Expand Up @@ -5,23 +5,25 @@ The visualisation toolbox deals with two type of objects : feeds and/or multigra
## vis controller routes

The route /vis/list gives access to the visualisation control panel in order for users to create new visualisations

It uses the [/Modules/vis/Views/vis_main_view.php](/Modules/vis/Views/vis_main_view.php) to render the toolbox....

When vis objects are integrated in dashboards or external website or viewed through standalone visualisations,
the followed route looks like <b>/vis/visualisation_key</b>, where visualisation_key can be multigraph, bargraph
(cf [/Modules/vis/vis_object.php](/Modules/vis/vis_object.php) to find all existing vis objects)
the route must include either :

The route must include either :
- the mid parameter when dealing with a multigraph
- the feedid parameter when dealing with a feed

Minimal vis routes can be : /vis/multigraph?mid=1 or /vis/graph?feedid=1
Minimal vis routes can be : `/vis/multigraph?mid=1` or `/vis/graph?feedid=1`

An embed parameter can be used :
- full screen view / integration into dashboard : /vis/multigraph?mid=1&embed=1
- within the 'main' viewport of emoncms : /vis/multigraph?mid=1&embed=0
- full screen view / integration into dashboard : `/vis/multigraph?mid=1&embed=1`
- within the 'main' viewport of emoncms : `/vis/multigraph?mid=1&embed=0`

For visitors or usage outside of emoncms, the read_only apikey can also be given as a parameter :
/vis/multigraph?mid=1&embed=0&apikey=32_chars_apikey_read
`/vis/multigraph?mid=1&embed=0&apikey=32_chars_apikey_read`

## vis objects

Expand All @@ -36,3 +38,23 @@ from the url the value of feedid/mid, embed, apikey .....
The EditDaily and EditRealtime vis objects permits to edit respectively PhpTimeSeries and PhpFina feeds

To achieve the edition function, please note they must be run in full screen mode

## Psychrometric diagrams

Psychrographic diagrams are a way to appreciate the thermal comfort of a house. All you need is a simple sensor of temperature and relative humidity. The principle is to represent the absolute humidity as a function of temperature.

The graph is initially populated by 10 curves of iso relative humidity, represented in light gray. The lower curve corresponds to a relative humidity of 10%, the upper one to a relative humidity of 100%.

We then materialize the zones where it’s not good to be:

- the too dry part (green) is the one below the curve of 40% iso humidity curve.
- the parts that are too humid (red/orange) are between the saturation curve (100%) and the 80% iso humidity curve, in which the risks of development of moisture and fungi are high. The graph is ready to receive the measured values. The calculation of absolute humidity for a pressure of 101325 pa (the atmospheric pressure at sea level) is relatively [simple](https://github.com/emoncms/emoncms/blob/master/Modules/vis/visualisations/psychrograph.php#L146).

From a practical point of view, you just have to build multigraphs in emoncms and use them in the pshychrographic visualization to appreciate the comfort level of your home.

![creating a multigraph](images/multigraph.png)

![using the psychrograph](images/psychrograph.png)

More details on [1](https://sustainabilityworkshop.venturewell.org/node/1195.html) and [2](https://sustainabilityworkshop.venturewell.org/node/1195.html)

Binary file added Modules/vis/images/multigraph.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Modules/vis/images/psychrograph.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f1c5ee0

Please sign in to comment.