Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gérer SAUR #62

Open
slobberbone opened this issue Apr 24, 2018 · 1 comment
Open

Gérer SAUR #62

slobberbone opened this issue Apr 24, 2018 · 1 comment

Comments

@slobberbone
Copy link

Description

Serait-il envisageable de gérer la consommation relevée sur le site de la SAUR https://www.saurclient.fr/EspacePublic/Saur.aspx

curl https://www.saurclient.fr/EspaceClient/SuiviConsoRad.aspx?Reference=[refClient]

Puis tenter d'isoler du javascript/json :
/code $create(Telerik.Web.UI.RadHtmlChart, {"_chartTitle":"{visible :true,font: \u0027bold 16px Arial,Helvetica,sans-serif\u0027, text: \u0027Historique des consommations\u0027}","_dataSource":"[{"Annee":2016,"Consommation":64},{"Annee":2017,"Consommation":39},{"Annee":2018,"Consommation":43}]","_layout":"default","_legend":"{labels: {font: \u002712px Arial,Helvetica,sans-serif\u0027}, position: \u0027bottom\u0027}","_plotArea":"{categoryAxis: {visible: true,color: \u0027#b3b3b3\u0027, line: { width: 1}, minorTickType: \u0027outside\u0027,title :{visible :true,font: \u002716px Arial,Helvetica,sans-serif\u0027},labels :{visible :true, rotation: -90,font: \u002712px Arial,Helvetica,sans-serif\u0027, format: \u0027yyyy\u0027,step: 1,skip: 0,color:\u0027#999999\u0027},minorGridLines :{visible: true, color: \u0027#f7f7f7\u0027, width: 0},majorGridLines :{visible: true, color: \u0027#efefef\u0027, width: 0}, axisCrossingValue: 0,baseUnit: \u0027years\u0027, field:\u0027Annee\u0027},valueAxis:[{visible: true,color: \u0027#b3b3b3\u0027, line: { width: 1},minorTickSize: 1, minorTickType: \u0027outside\u0027,title :{visible :true,font: \u0027bold 16px Arial,Helvetica,sans-serif\u0027,color: \u0027#000000\u0027, text: \u0027Volume en m3\u0027},labels :{visible :true,font: \u002712px Arial,Helvetica,sans-serif\u0027, format: \u0027{0}\u0027,step: 1,skip: 0,color:\u0027#000000\u0027},minorGridLines :{visible: true, color: \u0027#f7f7f7\u0027, width: 0},majorGridLines :{visible: true, color: \u0027#efefef\u0027}, axisCrossingValue: 0, min: 0}],appearance: {},tooltip :{visible :true}}","_series":"[{type:\u0027column\u0027,color: \u0027#1f84b8\u0027,field: \u0027Consommation\u0027,name: \u0027Historique des consommations\u0027,tooltip :{visible :true}, stack: false,labels :{visible: false},gap:0.4,spacing:0}]","_uniqueId":"ctl00$ContentCenter$Histo$rhcHisto","clientStateFieldID":"rhcHisto_ClientState","skin":"Default"}, null, null, $get("rhcHisto"));

A voir si c'est possible et si ca ne représente pas trop de travail .... ?

@rjullien
Copy link
Member

Si tu peux nous trouver les commandes pour recuperer les données, je peux faire l'intégration dans le plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants