[vz-users] Frontend merkt sich nicht mehr welche Kanäle ausgewählt sind
Christian Wulff
christianwulff at gmx.de
Mon May 29 21:37:40 CEST 2017
Hi Frank
git log liefert:
commit 1484f9aad1bc21cfbfe1f8abbecede6640d6813b
commit 1484f9aad1bc21cfbfe1f8abbecede6640d6813b
Merge: 8324cdd dd28a42
Author: andig <cpuidle at gmx.de>
Date: Mon Aug 22 22:32:51 2016 +0200
Merge pull request #271 from flyingflo/upstr-fixes
A collection of small fixes and improvements
commit dd28a42d78190669417781800d4389aafbb2bb95
Author: Florian Achleitner <flo at fopen.at>
Date: Sun Aug 21 20:22:27 2016 +0200
Update mocks for Channel, Channel::start non-static
Google mocks can't mock static functions easily.
http://ip/middleware.php/capabilities.json liefert:
{"version":"0.3","capabilities":{"configuration":{"precision":3,"database":"pdo_mysql","debug":0,"devmode":false,"commit":"c0ce5bddffc8612cfe1cbe53f45eff1b409cbf33"},"formats":["csv","json","txt"],"contexts":["channel","group","aggregator","entity","data","capabilities","iot"],"definitions":{"entities":[{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link"],"interpreter":"Volkszaehler\\Interpreter\\AggregatorInterpreter","style":null,"model":"Volkszaehler\\Model\\Aggregator","unit":null,"icon":"folder.png","hasConsumption":false,"scale":1,"name":"group","translation":{"de":"Gruppe","en":"Group","fr":"Groupe"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link"],"interpreter":"Volkszaehler\\Interpreter\\AggregatorInterpreter","style":null,"model":"Volkszaehler\\Model\\Aggregator","unit":null,"icon":"house.png","hasConsumption":false,"scale":1,"name":"building","translation":{"de":"Geb\u00e4ude","en":"Building","fr":"Immeuble"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","cost","local","initialconsumption"],"interpreter":"Volkszaehler\\Interpreter\\ImpulseInterpreter","style":"steps","model":"Volkszaehler\\Model\\Channel","unit":"W","icon":"bolt.png","hasConsumption":true,"scale":1000,"name":"power","translation":{"de":"El. Energie (S0-Impulse)","en":"El. Energy (s0-pulses)"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","cost","local","initialconsumption"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"W","icon":"bolt.png","hasConsumption":true,"scale":1000,"name":"powersensor","translation":{"de":"El. Energie (Leistungswerte)","en":"El. Energy (power readings)"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","cost","local","initialconsumption"],"interpreter":"Volkszaehler\\Interpreter\\AccumulatorInterpreter","style":"steps","model":"Volkszaehler\\Model\\Channel","unit":"W","icon":"bolt.png","hasConsumption":true,"scale":1000,"name":"electric meter","translation":{"de":"El. Energie (Z\u00e4hlerst\u00e4nde)","en":"El. Energy (absolute meter readings)"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"V","icon":"bolt.png","hasConsumption":false,"scale":1,"name":"voltage","translation":{"de":"Spannungssensor","en":"Voltage Meter","fr":"Voltm\u00e8tre"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"A","icon":"bolt.png","hasConsumption":false,"scale":1,"name":"current","translation":{"de":"Stromsensor","en":"Current Meter","fr":"Courantm\u00e8tre"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","cost","local","initialconsumption"],"interpreter":"Volkszaehler\\Interpreter\\ImpulseInterpreter","style":"steps","model":"Volkszaehler\\Model\\Channel","unit":"m\u00b3\/h","icon":"flame.png","hasConsumption":true,"scale":1,"name":"gas","translation":{"de":"Gas (S0-Impulse)","en":"Gas (S0-pulses)","fr":"Gaz (S0)"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","cost","local","initialconsumption"],"interpreter":"Volkszaehler\\Interpreter\\AccumulatorInterpreter","style":"steps","model":"Volkszaehler\\Model\\Channel","unit":"m\u00b3\/h","icon":"flame.png","hasConsumption":true,"scale":1,"name":"gas meter","translation":{"de":"Gas (Z\u00e4hlerst\u00e4nde)","en":"Gas (meter readings)"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","cost","local"],"interpreter":"Volkszaehler\\Interpreter\\ImpulseInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"W","icon":"flame.png","hasConsumption":true,"scale":1000,"name":"heat","translation":{"de":"W\u00e4rmemengenz\u00e4hler","en":"Heat Meter","fr":"Capteur d' \u00e9nergie thermique"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","cost","local"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"W","icon":"flame.png","hasConsumption":true,"scale":1000,"name":"heatsensor","translation":{"de":"W\u00e4rmemengensensor","en":"Heat Sensor"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"\u00b0C","icon":"thermometer.png","hasConsumption":false,"scale":1,"name":"temperature","translation":{"de":"Temperatur","en":"Temperature","fr":"Temp\u00e9rature"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","cost","local","initialconsumption"],"interpreter":"Volkszaehler\\Interpreter\\ImpulseInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"l\/h","icon":"waterdrop.png","hasConsumption":true,"scale":1,"name":"water","translation":{"de":"Wassermengenz\u00e4hler","en":"Water","fr":"Eau"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"m^3\/h","icon":"waterdrop.png","hasConsumption":true,"scale":1,"name":"flow","translation":{"de":"Wassermengensensor","en":"Flow rate","fr":"Vitesse d'\u00e9coulement"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","local"],"interpreter":"Volkszaehler\\Interpreter\\ImpulseInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"h","icon":"clock.png","hasConsumption":true,"scale":1,"name":"workinghours","translation":{"de":"Betriebsstundenz\u00e4hler (Impulse)","en":"Operation Hours Meter (Impulses)","fr":"Compteur horaire"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","local","initialconsumption"],"interpreter":"Volkszaehler\\Interpreter\\AccumulatorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"h","icon":"clock.png","hasConsumption":true,"scale":1,"name":"workinghourstotal","translation":{"de":"Betriebsstundenz\u00e4hler (Z\u00e4hlerstand)","en":"Operation Hours Meter (meter readings)","fr":"Compteur horaire"}},{"required":["title","resolution"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","tolerance","local"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":"states","model":"Volkszaehler\\Model\\Channel","unit":"","icon":"clock.png","hasConsumption":true,"scale":1000,"name":"workinghourssensor","translation":{"de":"Betriebsstundensensor"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":"states","model":"Volkszaehler\\Model\\Channel","unit":"%","icon":"pipe.png","hasConsumption":false,"scale":1,"name":"valve","translation":{"de":"Ventil","en":"valve","fr":"valve"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"hPa","icon":"cloud.png","hasConsumption":false,"scale":1,"name":"pressure","translation":{"de":"Luftdruck","en":"Barometric Pressure","fr":"Pression d'air"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"%","icon":"rain.png","hasConsumption":false,"scale":1,"name":"humidity","translation":{"de":"Luftfeuchtigkeit","en":"Air Humidity","fr":"Hygrom\u00e9trie"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"km\/h","icon":"propeller.png","hasConsumption":false,"scale":1,"name":"windspeed","translation":{"de":"Windgeschwindigkeit","en":"Windspeed","fr":"Vitesse du vent"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"cd","icon":"sun.png","hasConsumption":false,"scale":1,"name":"luminosity","translation":{"de":"Lichtst\u00e4rke","en":"Luminosity","fr":"Intensit\u00e9 lumineuse"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"Hz","icon":"freq.png","hasConsumption":false,"scale":1,"name":"frequency","translation":{"de":"Frequenz","en":"Frequency"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link","resolution","tolerance","local","gap"],"interpreter":"Volkszaehler\\Interpreter\\SensorInterpreter","style":null,"model":"Volkszaehler\\Model\\Channel","unit":"\u03bcSv","icon":"radioactivity.png","hasConsumption":false,"scale":1,"name":"radiation","translation":{"de":"Radioaktivit\u00e4t (Dosis)","en":"Radioactivity (Dose)","fr":"Radioactivit\u00e9 (Dose)"}},{"required":["title"],"optional":["public","color","style","fillstyle","yaxis","active","description","owner","address:","link"],"interpreter":"Volkszaehler\\Interpreter\\AggregatorInterpreter","style":null,"model":"Volkszaehler\\Model\\Aggregator","unit":null,"icon":"user.png","hasConsumption":false,"scale":1,"name":"user","translation":{"de":"Nutzer","en":"User","fr":"Usager"}}],"properties":[{"type":"string","pattern":"\/^[\\w\\.\\-\\,()\u00e4\u00f6\u00fc\\]\\[!&*+\\\/:@ ]+$\/u","min":null,"max":255,"options":[],"name":"title","translation":{"de":"Titel","en":"Title"}},{"type":"text","pattern":null,"min":null,"max":null,"options":[],"name":"description","translation":{"de":"Beschreibung","en":"Description"}},{"type":"boolean","pattern":null,"min":null,"max":null,"options":[],"name":"public","translation":{"de":"\u00d6ffentlich","en":"Public"}},{"type":"string","pattern":"\/^[\\w\\-]+$\/u","min":null,"max":128,"options":[],"name":"owner","translation":{"de":"Eigent\u00fcmer","en":"Owner"}},{"type":"float","pattern":null,"min":null,"max":null,"options":[],"name":"cost","translation":{"de":"Kosten","en":"Costs"}},{"type":"float","pattern":null,"min":1.0e-6,"max":null,"options":[],"name":"resolution","translation":{"de":"Aufl\u00f6sung","en":"Resolution"}},{"type":"float","pattern":null,"min":0,"max":1,"options":[],"name":"tolerance","translation":{"de":"Toleranz","en":"Tolerance"}},{"type":"float","pattern":null,"min":-90,"max":90,"options":[],"name":"address:lat","translation":{"de":"Breitengrad","en":"Latitude"}},{"type":"float","pattern":null,"min":-90,"max":90,"options":[],"name":"address:lon","translation":{"de":"L\u00e4ngengrad","en":"Longitude"}},{"type":"string","pattern":"\/^[\\w\\.\\-\\,() ]+$\/u","min":null,"max":null,"options":[],"name":"address:city","translation":{"de":"Stadt","en":"City"}},{"type":"string","pattern":null,"min":null,"max":5,"options":[],"name":"address:house","translation":{"de":"Hausnummer","en":"House Number"}},{"type":"integer","pattern":null,"min":null,"max":null,"options":[],"name":"address:postal","translation":{"de":"Postleitzahl","en":"Postal Code"}},{"type":"multiple","pattern":null,"min":null,"max":null,"options":["Albania","Algeria","Andorra","Angola","Anguilla","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan Republic","Bahamas","Bahrain","Barbados","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","British Virgin Islands","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Canada","Cape Verde","Cayman Islands","Chad","Chile","China Worldwide","Colombia","Comoros","Cook Islands","Costa Rica","Croatia","Cyprus","Czech Republic","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","El Salvador","Eritrea","Estonia","Ethiopia","Falkland Islands","Faroe Islands","Federated States of Micronesia","Fiji","Finland","France","French Guiana","French Polynesia","Gabon Republic","Gambia","Germany","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guatemala","Guinea","Guinea Bissau","Guyana","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lesotho","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Mongolia","Montserrat","Morocco","Mozambique","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Niue","Norfolk Island","Norway","Oman","Palau","Panama","Papua New Guinea","Peru","Philippines","Pitcairn Islands","Poland","Portugal","Qatar","Republic of the Congo","Reunion","Romania","Russia","Rwanda","Saint Vincent and the Grenadines","Samoa","San Marino","S\u00e3o Tom\u00e9 and Pr\u00edncipe","Saudi Arabia","Senegal","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","Spain","Sri Lanka","St. Helena","St. Kitts and Nevis","St. Lucia","St. Pierre and Miquelon","Suriname","Svalbard and Jan Mayen Islands","Swaziland","Sweden","Switzerland","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","Uruguay","Vanuatu","Vatican City State","Venezuela","Vietnam","Wallis and Futuna Islands","Yemen","Zambia"],"name":"address:state","translation":{"de":"Land","en":"State"}},{"type":"string","pattern":null,"min":null,"max":null,"options":[],"name":"address:country","translation":{"de":"Staat","en":"Country"}},{"type":"string","pattern":"#^(https?|ftp):\/\/[a-z0-9-.]+\\.[a-z]{2,6}(\/\\S*)?$#i","min":null,"max":null,"options":[],"name":"photo","translation":{"de":"Foto (URL)","en":"Photo (URL)"}},{"type":"string","pattern":"#^(https?|ftp):\/\/[a-z0-9-.]+\\.[a-z]{2,6}(\/\\S*)?$#i","min":null,"max":null,"options":[],"name":"link","translation":{"de":"Hyperlink","en":"Hyperlink"}},{"type":"boolean","pattern":null,"min":null,"max":null,"options":[],"name":"active","translation":{"de":"Aktiv","en":"Active"}},{"type":"string","pattern":"#^aqua|black|blue|fuchsia|gray|grey|green|lime|maroon|navy|olive|purple|red|silver|teal|white|yellow|[0-9a-f]{6}|[0-9a-f]{3}$#i","min":null,"max":null,"options":[],"name":"color","translation":{"de":"Farbe","en":"color"}},{"type":"multiple","pattern":null,"min":null,"max":null,"options":["lines","steps","states","points"],"name":"style","translation":{"de":"Style","en":"Plotting style"}},{"type":"float","pattern":null,"min":0,"max":1,"options":[],"name":"fillstyle","translation":{"de":"F\u00fcllgrad","en":"Opacity"}},{"type":"multiple","pattern":null,"min":null,"max":null,"options":["auto","1","2","3","4"],"name":"yaxis","translation":{"de":"Achse","en":"Axis"}},{"type":"string","pattern":"#^(https?|ftp):\/\/[a-z0-9-.]+\\.[a-z]{2,6}(\/\\S*)?$#i","min":null,"max":null,"options":[],"name":"local","translation":{"de":"Lokale Adresse","en":"Local Address"}},{"type":"integer","pattern":null,"min":0,"max":null,"options":[],"name":"gap","translation":{"de":"L\u00fccke","en":"Gap"}},{"type":"float","pattern":null,"min":0,"max":null,"options":[],"name":"initialconsumption","translation":{"de":"Initialverbrauch","en":"Initial consumption"}}]}}}
Lieben Gruß,
Christian
Von: Frank Richter [mailto:frank.richter83 at gmail.com]
Gesendet: Montag, 29. Mai 2017 21:08
An: volkszaehler.org - users
Betreff: Re: [vz-users] Frontend merkt sich nicht mehr welche Kanäle ausgewählt sind
Hi Christian,
wenn du auf Stand vom 30.09.2016 bist, ist es definitiv nicht die Änderung von der wir hier reden.
Commit-Stand bekommst du wie erwähnt mit "git log" im vz-Ordner oder via http://ip/middleware.php/capabilities.json (hier nur den Hash, kein Datum).
Grüße
Frank
Am 29.05.2017 21:01 schrieb "Christian Wulff" <christianwulff at gmx.de>:
Hallo Frank,
wie finde ich raus auf welchem Commit-Stand meine Installation ist?
Ich habe das Image vom 30.09.2016 und kein Update danach gemacht (…never touch a running system)
Bis vor ein paar Wochen hatte ich keine Probleme mit den Checkboxen der Kanaltabelle.
Gruppen benutze ich nicht.
Lieben Gruß,
Christian
Von: Frank Richter [mailto:frank.richter83 at gmail.com]
Gesendet: Sonntag, 28. Mai 2017 22:04
An: volkszaehler.org - users
Betreff: Re: [vz-users] Frontend merkt sich nicht mehr welche Kanäle ausgewählt sind
Hallo Christian,
auf welchem Commit-Stand ist deine Installation (git log)? Da gab es vor ein paar Monaten eine Änderung: der Status des Kanals (aktiv/inaktiv) wird seitdem nicht mehr zentral in der DB, sondern lokal im Cookie gespeichert.
Der Status deiner Checkboxen in der Kanaltabelle sollte also einen Reload des Frontends überleben. Dieses Feature gibt's allerdings bislang nur für Kanäle auf root-Ebene, nicht für Kanäle innerhalb von Gruppen.
Grüße
Frank
Am 28.05.2017 20:16 schrieb "Christian Wulff" <christianwulff at gmx.de>:
Moin,
ich habe bemerkt, dass sich die Einstellung, welche Kanäle im Frontend angezeigt werden sollen nicht mehr speichern lässt.
Habe schon den Browserverlauf inkl. Cookies gelöscht, rebootet und alle Kanäle wieder ins Frontend reingeholt. Das hat aber nichts geändert.
Leider ist nicht mehr nachvollziehbar ab wann genau das Problem aufgetreten ist.
Interessanterweise ist es auf allen Endgeräten (PC, Tablet, Smartphone) identisch. Das kann dann doch nichts mehr mit den Cookies auf dem Endgerät zu tun haben?!
Ich habe aktuell 35 Kanäle laufen und in den letzten 2-3 Wochen sind einige Kanäle hinzugekommen.
Möglicherweise hat das damit was zu tun?! (Vielleicht können nur ~24 Kanäle gemerkt werden oder so?!)
Weiss jemand eine Lösung?
Danke und lieben Gruß,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170529/0f64d5ce/attachment-0001.html>
More information about the volkszaehler-users
mailing list