Skip to content

Commit

Permalink
Version mobile, templates, themes, optimisations
Browse files Browse the repository at this point in the history
- Prise en charge des appareils mobiles
- Mise en place de templates (affichage linéaire ou avec onglets)
- Mise en place de thèmes (classique, clair, sombre)
- Refonte JavaScript (validation JSLint)
- Mise à jour JQuery & Highcharts
  • Loading branch information
BmdOnline committed Dec 5, 2013
1 parent 8c752d8 commit d13e7ab
Show file tree
Hide file tree
Showing 262 changed files with 37,804 additions and 3,750 deletions.
216 changes: 3 additions & 213 deletions .gitignore
@@ -1,215 +1,5 @@
#################
## Eclipse
## Teleinfo
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

#############
## Windows detritus
#############

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg
min/
cache/
60 changes: 57 additions & 3 deletions README.md
Expand Up @@ -19,21 +19,39 @@
[Cliquer pour visualiser](https://github.com/BmdOnline/Teleinfo/raw/master/screenshots/teleinfov4_all.png)

###Version 4.1 (dev)
* Interface
- change : Gestion des appareils mobiles (Smartphones & Tablettes) (BmdOnline)
- change : Mise en place de templates d'affichage. (BmdOnline)
* Version avec onglets : chaque graphique est dans un onglet différent.
* Version linéraire : tout apparait sur la même page.
- change : Epuration du CSS spécifique dans "teleinfo.css". (BmdOnline)
- change : Proposition de 3 thèmes CSS. (BmdOnline)
* Version classique, en utilisant le thème "smoothness".
* Version claire, en utilisant le thème "ui-lightness".
* Version sombre, en utilisant le thème "ui-darkness".

* Graphiques
- change : Rafraîchissement automatique de la gauge (option dans config.php). (energy01 & BmdOnline)
- bugfix : N'affique que l'abonnement actuel dans les légendes des graphiques. (energy01)
- bugfix : N'affiche plus les 0 de consommation de type "BASE" en cas d'abonnement HP/HC. (BmdOnline)
- bugfix : Correction du bug cumulant les années sur le graphique historique. (BmdOnline)

* Moteur
* Moteur / PHP
- change : Modification du nom du fichier principal "teleinfo.php" au lieu de "teleinfov4.php".
- change : Gestion des requêtes mysql dans un fichier dédié "config.php". (energy01)
- change : Prise en charge de différents formats de base de données (date ou timestamp notamment). (energy01 & BmdOnline)
- change : Début de gestion des abonnements autres que "base" ou "HC/HP". (energy01 & BmdOnline)
- change : Début de gestion d'un historique des tarifs EDF. (energy01)
- change : Ajout d'une bibliothèque d'applications utilisées pour collecter les éléments téléinformation. (BmdOnline)

* Misa à jour de JQuery (1.11.0pre) et Highcharts (3.0.7 & 1.3.7).
* Moteur / JavaScript
- change : Validation JSLint de "teleinfo.js". (BmdOnline)

* Misa à jour des librairies (BmdOnline)
- Highcharts 3.0.7 & Highstock 1.3.7
- JQuery 2.1.0-pre (incompatible IE 6/7/8) & JQuery 1.10.2 (à activer manuellement en cas d'anciens navigateurs)
- JQueryUI 1.11.0pre
- JQueryMobile 1.4.0-rc1

###Version 4
* Ajout de la gauge de consommation instantanée.
Expand Down Expand Up @@ -71,6 +89,42 @@ Voir [Graphique Conso Electrique Téléinfo EDF avec Highcharts (v2)](http://pen
###Version 1
Voir [Graphique Conso Electrique Téléinfo EDF avec Highcharts](http://penhard.anthony.free.fr/?p=111)

###Templates
Actuellement, 2 templates sont proposés pour chacun des affichages (desktop & mobile).
Pour en changer, il faut remplacer le contenu du répertoire "tpl"...
* Pour la vesion desktop, depuis :
- tpl/desktop - lineaire
- tpl/desktop - onglets
* Pour la vesion mobile, depuis :
- tpl/mobile - lineaire
- tpl/mobile - onglets
* Dans tous les cas, en ajoutant les fichiers communs depuis :
- tpl/commun

Important :
A chaque changement de template, ne pas oublier de vider le contenu du répertoire "cache".

Remarque :
Pour le bon fonctionnement du programme, il faut choisir un template desktop ET un template mobile.
Par défaut, le programme est réglé sur les templates avec onglets.

###Thèmes
Actuellement, 3 thèmes sont proposés (classique, clair & sombre).
Pour en changer, il faut modifier le fichier "tpl/inc.lib.html", en spécifiant respectivement :
```php
<link rel="stylesheet" href="./css/smoothness/jquery-ui-1.11.0pre.min.css#">
```
ou
```php
<link rel="stylesheet" href="./css/ui-lightness/jquery-ui-1.11.0pre.min.css#">
```
ou
```php
<link rel="stylesheet" href="./css/ui-darkness/jquery-ui-1.11.0pre.min.css#">
```
Remarque :
Par défaut, le programme est réglé sur le thème sombre.

###Format de date MySQL
Selon l'utilitaire collectant les données téléinformation, la base peut utiliser un format de date différent.
Cette version du programme prévoit l'utilisation des 2 structure les plus fréquentes.
Expand All @@ -88,7 +142,7 @@ $db_iinst = "iinst1"; // vaut soit "iinst1" soit "inst1"
```

###Reste à faire
- [] Prévoir une version "mobile", pour les smartphones et tablettes.
- [x] Prévoir une version "mobile", pour les smartphones et tablettes.
- [] Proposer de visualiser une période précédente ou une moyenne en surimpression de l'historique.
- [] Optimiser l'utilisation de HighCharts avec le chargement asynchrone :
- Actuellement, le graphique est détruit et recréé. Il faudrait envisager de remplacer les données sans détruire le graphique.
Expand Down
Binary file added css/images/ajax-loader.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/images/icons-png/action-black.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 css/images/icons-png/action-white.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 css/images/icons-png/alert-black.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 css/images/icons-png/alert-white.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 css/images/icons-png/arrow-d-black.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 css/images/icons-png/arrow-d-l-black.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 css/images/icons-png/arrow-d-l-white.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 css/images/icons-png/arrow-d-r-black.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 css/images/icons-png/arrow-d-r-white.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 css/images/icons-png/arrow-d-white.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 css/images/icons-png/arrow-l-black.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 css/images/icons-png/arrow-l-white.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 css/images/icons-png/arrow-r-black.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 css/images/icons-png/arrow-r-white.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 css/images/icons-png/arrow-u-black.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 css/images/icons-png/arrow-u-l-black.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 css/images/icons-png/arrow-u-l-white.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 css/images/icons-png/arrow-u-r-black.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 css/images/icons-png/arrow-u-r-white.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 css/images/icons-png/arrow-u-white.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 css/images/icons-png/audio-black.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 css/images/icons-png/audio-white.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 css/images/icons-png/back-black.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 css/images/icons-png/back-white.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 css/images/icons-png/bars-black.png
Binary file added css/images/icons-png/bars-white.png
Binary file added css/images/icons-png/bullets-black.png
Binary file added css/images/icons-png/bullets-white.png
Binary file added css/images/icons-png/calendar-black.png
Binary file added css/images/icons-png/calendar-white.png
Binary file added css/images/icons-png/camera-black.png
Binary file added css/images/icons-png/camera-white.png
Binary file added css/images/icons-png/carat-d-black.png
Binary file added css/images/icons-png/carat-d-white.png
Binary file added css/images/icons-png/carat-l-black.png
Binary file added css/images/icons-png/carat-l-white.png
Binary file added css/images/icons-png/carat-r-black.png
Binary file added css/images/icons-png/carat-r-white.png
Binary file added css/images/icons-png/carat-u-black.png
Binary file added css/images/icons-png/carat-u-white.png
Binary file added css/images/icons-png/check-black.png
Binary file added css/images/icons-png/check-white.png
Binary file added css/images/icons-png/clock-black.png
Binary file added css/images/icons-png/clock-white.png
Binary file added css/images/icons-png/cloud-black.png
Binary file added css/images/icons-png/cloud-white.png
Binary file added css/images/icons-png/comment-black.png
Binary file added css/images/icons-png/comment-white.png
Binary file added css/images/icons-png/delete-black.png
Binary file added css/images/icons-png/delete-white.png
Binary file added css/images/icons-png/edit-black.png
Binary file added css/images/icons-png/edit-white.png
Binary file added css/images/icons-png/eye-black.png
Binary file added css/images/icons-png/eye-white.png
Binary file added css/images/icons-png/forbidden-black.png
Binary file added css/images/icons-png/forbidden-white.png
Binary file added css/images/icons-png/forward-black.png
Binary file added css/images/icons-png/forward-white.png
Binary file added css/images/icons-png/gear-black.png
Binary file added css/images/icons-png/gear-white.png
Binary file added css/images/icons-png/grid-black.png
Binary file added css/images/icons-png/grid-white.png
Binary file added css/images/icons-png/heart-black.png
Binary file added css/images/icons-png/heart-white.png
Binary file added css/images/icons-png/home-black.png
Binary file added css/images/icons-png/home-white.png
Binary file added css/images/icons-png/info-black.png
Binary file added css/images/icons-png/info-white.png
Binary file added css/images/icons-png/location-black.png
Binary file added css/images/icons-png/location-white.png
Binary file added css/images/icons-png/lock-black.png
Binary file added css/images/icons-png/lock-white.png
Binary file added css/images/icons-png/mail-black.png
Binary file added css/images/icons-png/mail-white.png
Binary file added css/images/icons-png/minus-black.png
Binary file added css/images/icons-png/minus-white.png
Binary file added css/images/icons-png/navigation-black.png
Binary file added css/images/icons-png/navigation-white.png
Binary file added css/images/icons-png/phone-black.png
Binary file added css/images/icons-png/phone-white.png
Binary file added css/images/icons-png/plus-black.png
Binary file added css/images/icons-png/plus-white.png
Binary file added css/images/icons-png/power-black.png
Binary file added css/images/icons-png/power-white.png
Binary file added css/images/icons-png/recycle-black.png
Binary file added css/images/icons-png/recycle-white.png
Binary file added css/images/icons-png/refresh-black.png
Binary file added css/images/icons-png/refresh-white.png
Binary file added css/images/icons-png/search-black.png
Binary file added css/images/icons-png/search-white.png
Binary file added css/images/icons-png/shop-black.png
Binary file added css/images/icons-png/shop-white.png
Binary file added css/images/icons-png/star-black.png
Binary file added css/images/icons-png/star-white.png
Binary file added css/images/icons-png/tag-black.png
Binary file added css/images/icons-png/tag-white.png
Binary file added css/images/icons-png/user-black.png
Binary file added css/images/icons-png/user-white.png
Binary file added css/images/icons-png/video-black.png
Binary file added css/images/icons-png/video-white.png
37 changes: 37 additions & 0 deletions css/images/icons-svg/action-black.svg
37 changes: 37 additions & 0 deletions css/images/icons-svg/action-white.svg

0 comments on commit d13e7ab

Please sign in to comment.