NEWS
Stromzählerscript PV Anlage Finanzamt in Json oder html
-
Was trage ich denn bei den Werten ein wenn ich das Script quasi heute starten will?
createState('javascript.0.PV_Anlage.Stromzaehler.Zaehlerstaende.NetzbezugAlt', 0, {name: 'lezter Zählerstand Monatsbeginn', type: 'number', unit: 'kWh' }); createState('javascript.0.PV_Anlage.Stromzaehler.Zaehlerstaende.NetzeinspeisungAlt', 0, {name: 'lezter Zählerstand Monatsbeginn', type: 'number', unit: 'kWh' }); createState('javascript.0.PV_Anlage.Stromzaehler.Zaehlerstaende.SolarproduktionAlt', 0, {name: 'lezter Zählerstand Monatsbeginn', type: 'number', unit: 'kWh' });
Bei 0 lassen?
Werte zu Beginn Februar?
Werte zu Beginn Januar?
Werte zu Beginn März?Und was meint ihr mit diesem Datenpunkt bzw. wofür wird er verwendet? Soll das die erzeugte Leistung sein?
createState('javascript.0.PV_Anlage.Stromzaehler.Zaehlerstaende.SolarproduktionAlt', 0, {name: 'lezter Zählerstand Monatsbeginn', type: 'number', unit: 'kWh' });
Danke und Gruß
-
@wendy2702
Hi,Wenn du 0 lässt machst nix falsch.
Da aber erst Februar ist, würde ich versuchen die Werte vom 01.01.2021 einzutragen, dann beinhaltet die 1. Spalte halt den Monat Januar und Februar -
@wendy2702 sagte in Stromzählerscript PV Anlage Finanzamt in Json oder html:
createState('javascript.0.PV_Anlage.Stromzaehler.Zaehlerstaende.SolarproduktionAlt', 0, {name: 'lezter Zählerstand Monatsbeginn', type: 'number', unit: 'kWh' });
alt ist immer der abgelesene Zählerstand... In dem Fall der vom Erzeugungszähler.
-
@smartboart OK.
Ich habe keinen reinen Erzeugungszähler sondern nutze dafür die Werte meiner WR die ich per Modbus auslesen.
Diese dann zusammen addiert ergibt bei mir einen Status: Gesamtertrag, also alles was die meine Solarananlage an Energie erzeugt hat.
Ist es richtig wenn ich die Zeile im Script dann so ändere:
var PvZaehlerAktuell=Math.floor(getState('javascript.0.PV_Anlage.Gesamtertrag').val);
Wenn ich versuche das Widget aus dem ersten Post zu importieren erhalte ich diese Fehlermeldung:
Wenn ich mir den String in Notepad++ ansehe ist an 3984 bei mir das:
-
@wendy2702
ja klar, die 3 Zähler müssen natürlich an deine Bedingungen im Script angepasst werden..
Wo die Erzeugungsdaten herkommen ist egal.. -
@smartboart OK.
Ist das denn so richtig wie ich es gemacht habe mit meinen bescheidenen JS Kenntnissen?
Und kannst du mir etwas zum Widget sagen. Siehe Beitrag vorher.
-
sind widgets 4 Stück..
hast als widget importiert?
Falls ja, hier nochmal..Wenn der geht tausche ich oben aus...
-
@smartboart Hm,
geht leider auch nicht. Ich habe VIS 1.3.7
-
@wendy2702 habe ich auch...
komisch...
habe es eben probiert...Bei mir funktionierts.. ich kopier auch nochmal vom spoiler..warte.. -
@wendy2702
krass..geht tatsächlich nicht....probier es mal so..[{"tpl":"tplVis-materialdesign-Table","data":{"oid":"javascript.1.PVAnlage.Stromzaehler.Zaehlerstaende.JsonTable","g_fixed":false,"g_visibility":true,"g_css_font_text":false,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"countCols":"15","tableLayout":"card","showHeader":true,"headerTextSize":"small","showColumn0":true,"colType0":"text","textAlign0":"center","showColumn1":true,"colType1":"text","textAlign1":"center","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"showColumn2":true,"colType2":"text","textAlign2":"center","showColumn3":true,"colType3":"text","textAlign3":"center","showColumn4":true,"colType4":"text","textAlign4":"center","showColumn5":true,"colType5":"text","textAlign5":"center","showColumn6":true,"colType6":"text","textAlign6":"center","showColumn7":"true","colType7":"text","textAlign7":"center","showColumn8":true,"colType8":"text","textAlign8":"center","showColumn9":"true","colType9":"text","textAlign9":"center","showColumn10":"true","colType10":"text","textAlign10":"center","showColumn11":"true","colType11":"text","textAlign11":"center","showColumn12":"true","colType12":"text","textAlign12":"center","showColumn13":"true","colType13":"text","textAlign13":"center","showColumn14":"true","colType14":"text","textAlign14":"center","showColumn15":"true","colType15":"text","textAlign15":"center","showColumn16":"true","colType16":"text","textAlign16":"center","showColumn17":"true","colType17":"text","textAlign17":"center","headerRowHeight":"50","label0":"Ablese-<br>Datum","colTextColor0":"#9c9c9c","prefix0":"","colorHeaderRowText":"#9c9c9c","dividers":"#9c9c9c","colorBackground":"rgb(50,50,50)","colorHeaderRowBackground":"rgb(50,50,50)","columnWidth0":"78","label1":"Ein-<br>Spei-<br>sung","label2":"Netz-<br>Be-<br>zug","label3":"Solar<br>Prod.","suffix3":"","suffix2":"","suffix1":"","label4":"Eigen-<br>Ver-<br>brauch","suffix4":"","label5":"Autark","suffix5":"","label6":"Ein- <br>Speis-<br>Zähler","suffix6":"","label7":"Bezug-<br>Zähler","suffix7":"","label8":"PV Zähler","suffix8":"","label9":"Privat-<br>Ent-<br>nahme","suffix9":"","label10":"Ust.","rowHeight":"30","colorRowText":"#9c9c9c","borderColor":"transparent","colorRowBackground":"rgb(50,50,50)","dataJson":"","colNoWrap1":false,"colNoWrap0":false,"colNoWrap3":false,"showColumn18":"true","colType18":"text","textAlign18":"center","showColumn19":"true","colType19":"text","textAlign19":"center","showColumn20":"true","colType20":"text","textAlign20":"center","colNoWrap5":false,"colNoWrap4":false,"colNoWrap6":false,"colNoWrap7":false,"colNoWrap8":false,"colNoWrap9":false,"colNoWrap10":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","colTextColor2":"red","colTextColor10":"lightgreen","fixedHeader":true,"colTextColor3":"green","colTextColor1":"lightgreen","colTextColor4":"orange","colTextColor5":"yellow","colNoWrap2":false,"columnWidth6":"60","colTextColor6":"lightgreen","colTextColor7":"red","colTextColor8":"green","columnWidth7":"60","columnWidth3":"55","columnWidth4":"55","columnWidth9":"55","colTextColor9":"orange","columnWidth1":"55","columnWidth2":"50","columnWidth5":"55","columnWidth8":"60","columnWidth10":"50","label11":"Mwst<br>Satz","label12":"Netto<br>Strom-<br>preis <br> FA","visibility-oid":"javascript.0.Vis.Zählertabelle","columnWidth12":"60","colNoWrap12":false,"columnWidth13":"60","label13":"Netto<br>Strom-<br>preis","columnWidth14":"64","label14":"Strom <br> Grund- <br> Gebühr","columnWidth11":"50","headerFontFamily":"{vis-materialdesign.0.fonts.table.header}","colorRowBackgroundHover":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.table.row_hover;dark:vis-materialdesign.0.colors.dark.table.row_hover; mode === \"true\" ? dark : light}","colTextSize0":"smaller","fontFamily0":"{vis-materialdesign.0.fonts.table.row}","colTextSize1":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily1":"{vis-materialdesign.0.fonts.table.row}","colTextSize2":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily2":"{vis-materialdesign.0.fonts.table.row}","colTextSize3":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily3":"{vis-materialdesign.0.fonts.table.row}","colTextSize4":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily4":"{vis-materialdesign.0.fonts.table.row}","colTextSize5":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily5":"{vis-materialdesign.0.fonts.table.row}","colTextSize6":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily6":"{vis-materialdesign.0.fonts.table.row}","colTextSize7":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily7":"{vis-materialdesign.0.fonts.table.row}","colTextSize8":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily8":"{vis-materialdesign.0.fonts.table.row}","colTextSize9":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily9":"{vis-materialdesign.0.fonts.table.row}","colTextSize10":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily10":"{vis-materialdesign.0.fonts.table.row}","colTextSize11":"small","fontFamily11":"{vis-materialdesign.0.fonts.table.row}","colTextSize12":"small","fontFamily12":"{vis-materialdesign.0.fonts.table.row}","colTextSize13":"small","fontFamily13":"{vis-materialdesign.0.fonts.table.row}","colTextSize14":"xx-small","fontFamily14":"{vis-materialdesign.0.fonts.table.row}","colTextSize15":"{vis-materialdesign.0.fontSizes.table.row}","fontFamily15":"{vis-materialdesign.0.fonts.table.row}","columnWidth15":"67","label15":"Ein- <br>speise- <br>vergütung","padding_right14":"","padding_left14":"","padding_left15":"","imageSize15":"","colTextColor15":"lightgreen"},"style":{"left":"10px","top":"5px","width":"940px","height":"357px","z-index":"10","background-color":"rgb(50,50,50)","overflow-x":"auto","overflow-y":"auto"},"widgetSet":"materialdesign"},{"tpl":"tplVis-materialdesign-Input","data":{"oid":"javascript.1.PVAnlage.Stromzaehler.Zaehlerstaende.Nettostrompreis","g_fixed":false,"g_visibility":true,"g_css_font_text":false,"g_css_background":false,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","inputType":"number","inputLayout":"filled","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"inputPrefix":"","inputSuffix":"€ / kWh Nettostrompreis","inputAppendixColor":"#9c9c9c","inputTextColor":"#9c9c9c","inputMaxLength":"","g_icons":true,"inputLayoutBackgroundColor":"rgb(50,50,50)","inputLayoutBackgroundColorSelected":"rgb(50,50,50)","inputTextFontSize":"16","inputAppendixFontSize":"16","inputMask":"","g_inputLabel":false,"g_inputSubText":false,"g_counter":true,"clearIconShow":"true","showInputMessageAlways":"true","inputLayoutBorderColor":"rgb(50,50,50)","inputLayoutBorderColorSelected":"rgb(50,50,50)","inputLayoutBorderColorHover":"rgb(50,50,50)","clearIconColor":"red","showInputCounter":false,"inputAppendixFontFamily":"","inputLayoutBackgroundColorHover":"rgb(50,50,50)","exportData":"true","visibility-oid":"javascript.0.Vis.Zählertabelle","inputAlignment":"left","inputTextFontFamily":"{vis-materialdesign.0.fonts.input.text}","inputLabelColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.label;dark:vis-materialdesign.0.colors.dark.input.label; mode === \"true\" ? dark : light}","inputLabelColorSelected":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.label_selected;dark:vis-materialdesign.0.colors.dark.input.label_selected; mode === \"true\" ? dark : light}","inputLabelFontFamily":"{vis-materialdesign.0.fonts.input.label}","inputLabelFontSize":"{vis-materialdesign.0.fontSizes.input.label}","inputMessageFontFamily":"{vis-materialdesign.0.fonts.input.message}","inputMessageFontSize":"{vis-materialdesign.0.fontSizes.input.message}","inputMessageColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.message;dark:vis-materialdesign.0.colors.dark.input.message; mode === \"true\" ? dark : light}","inputCounterColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.counter;dark:vis-materialdesign.0.colors.dark.input.counter; mode === \"true\" ? dark : light}","inputCounterFontSize":"{vis-materialdesign.0.fontSizes.input.counter}","inputCounterFontFamily":"{vis-materialdesign.0.fonts.input.counter}"},"style":{"left":"188px","top":"369px","z-index":"10","width":"380px","height":"41px","font-size":"small","font-weight":"normal"},"widgetSet":"materialdesign"},{"tpl":"tplVis-materialdesign-Input","data":{"oid":"javascript.1.PVAnlage.Stromzaehler.Zaehlerstaende.NettoGrundpreis","g_fixed":false,"g_visibility":true,"g_css_font_text":false,"g_css_background":false,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","inputType":"number","inputLayout":"filled","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"inputPrefix":"","inputSuffix":"€ / Monat Nettogrundpreis Strom","inputAppendixColor":"#9c9c9c","inputTextColor":"#9c9c9c","inputMaxLength":"","g_icons":true,"inputLayoutBackgroundColor":"rgb(50,50,50)","inputLayoutBackgroundColorSelected":"rgb(50,50,50)","inputTextFontSize":"16","inputAppendixFontSize":"16","inputMask":"","g_inputLabel":false,"g_inputSubText":false,"g_counter":true,"clearIconShow":"true","showInputMessageAlways":"true","inputLayoutBorderColor":"rgb(50,50,50)","inputLayoutBorderColorSelected":"rgb(50,50,50)","inputLayoutBorderColorHover":"rgb(50,50,50)","clearIconColor":"red","showInputCounter":false,"inputAppendixFontFamily":"","inputLayoutBackgroundColorHover":"rgb(50,50,50)","exportData":"true","visibility-oid":"javascript.0.Vis.Zählertabelle","inputAlignment":"left","inputTextFontFamily":"{vis-materialdesign.0.fonts.input.text}","inputLabelColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.label;dark:vis-materialdesign.0.colors.dark.input.label; mode === \"true\" ? dark : light}","inputLabelColorSelected":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.label_selected;dark:vis-materialdesign.0.colors.dark.input.label_selected; mode === \"true\" ? dark : light}","inputLabelFontFamily":"{vis-materialdesign.0.fonts.input.label}","inputLabelFontSize":"{vis-materialdesign.0.fontSizes.input.label}","inputMessageFontFamily":"{vis-materialdesign.0.fonts.input.message}","inputMessageFontSize":"{vis-materialdesign.0.fontSizes.input.message}","inputMessageColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.message;dark:vis-materialdesign.0.colors.dark.input.message; mode === \"true\" ? dark : light}","inputCounterColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.counter;dark:vis-materialdesign.0.colors.dark.input.counter; mode === \"true\" ? dark : light}","inputCounterFontSize":"{vis-materialdesign.0.fontSizes.input.counter}","inputCounterFontFamily":"{vis-materialdesign.0.fonts.input.counter}"},"style":{"left":"573px","top":"369px","z-index":"10","width":"380px","height":"41px","font-size":"small","font-weight":"normal"},"widgetSet":"materialdesign"},{"tpl":"tplVis-materialdesign-Select","data":{"oid":"javascript.1.PVAnlage.Stromzaehler.Zaehlerstaende.Mehrwertsteuersatz","g_fixed":false,"g_visibility":true,"g_css_font_text":true,"g_css_background":false,"g_css_shadow_padding":false,"g_css_border":true,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","inputType":"text","inputLayout":"regular","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"inputLayoutBackgroundColor":"rgb(50,50,50)","inputLayoutBackgroundColorSelected":"rgb(50,50,50)","inputTextColor":"#9c9c9c","g_inputAppendix":false,"g_inputSubText":false,"g_counter":true,"g_icons":true,"g_selectListLayout":true,"g_listData":true,"listDataMethod":"valueList","countSelectItems":"","g_menuItems_§0":true,"g_menuItems_§1":false,"valueList":"14;15;16;17;18;19;20;21;22","valueListLabels":"Ust 14 %;Ust 15 %;Ust 16 %;Ust 17 %;Ust 18 %;Ust 19 %;Ust 20 %;Ust 21 %;Ust 22 %","inputLayoutBackgroundColorHover":"rgb(50,50,50)","inputLayoutBorderColor":"rgb(50,50,50)","inputLayoutBorderColorHover":"rgb(50,50,50)","inputLayoutBorderColorSelected":"rgb(50,50,50)","jsonStringObject":"","g_inputLabel":true,"clearIconShow":false,"inputLabelText":"","clearIconColor":"#9c9c9c","prepandIcon":"","prepandIconColor":"#9c9c9c","prepandInnerIconColor":"#9c9c9c","appendOuterIconColor":"#9c9c9c","inputLabelColor":"#9c9c9c","inputLabelFontSize":"","collapseIconSize":"30","collapseIconColor":"#9c9c9c","clearIconSize":"30","collapseIcon":"","prepandIconSize":"","prepandInnerIcon":"percent","appendOuterIconSize":"","prepandInnerIconSize":"15","showInputMessageAlways":"true","showInputCounter":false,"listPosition":"bottom","showSelectedIcon":"no","showValue":"true","listPositionOffset":true,"listItemHeight":"","listItemBackgroundColor":"rgb(50,50,50)","listItemBackgroundHoverColor":"rgb(50,50,50)","listItemBackgroundSelectedColor":"rgb(50,50,50)","listItemRippleEffectColor":"rgb(50,50,50)","listIconSize":"30","listIconColor":"#9c9c9c","listIconHoverColor":"#9c9c9c","listIconSelectedColor":"#9c9c9c","listItemFontColor":"#9c9c9c","listItemFontHoverColor":"#9c9c9c","listItemFontSelectedColor":"#9c9c9c","listItemSubFontHoverColor":"#9c9c9c","listItemSubFontSelectedColor":"#9c9c9c","listItemValueFontColor":"#9c9c9c","listItemValueFontHoverColor":"#9c9c9c","listItemValueFontSelectedColor":"#9c9c9c","inputCounterColor":"transparent","valueListIcons":"","g_menuItems_§2":false,"g_menuItems_§3":false,"g_menuItems_§4":false,"g_menuItems_§5":false,"inputLabelColorSelected":"#9c9c9c","vibrateOnMobilDevices":"50","visibility-oid":"javascript.0.Vis.Zählertabelle","inputAlignment":"left","inputTextFontFamily":"{vis-materialdesign.0.fonts.input.text}","inputTextFontSize":"{vis-materialdesign.0.fontSizes.input.text}","inputLabelFontFamily":"{vis-materialdesign.0.fonts.input.label}","inputAppendixColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.appendix;dark:vis-materialdesign.0.colors.dark.input.appendix; mode === \"true\" ? dark : light}","inputAppendixFontSize":"{vis-materialdesign.0.fontSizes.input.appendix}","inputAppendixFontFamily":"{vis-materialdesign.0.fonts.input.appendix}","inputMessageFontFamily":"{vis-materialdesign.0.fonts.input.message}","inputMessageFontSize":"{vis-materialdesign.0.fontSizes.input.message}","inputMessageColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.message;dark:vis-materialdesign.0.colors.dark.input.message; mode === \"true\" ? dark : light}","inputCounterFontSize":"{vis-materialdesign.0.fontSizes.input.counter}","inputCounterFontFamily":"{vis-materialdesign.0.fonts.input.counter}","listItemFontSize":"{vis-materialdesign.0.fontSizes.input.dropdown.text}","listItemFont":"{vis-materialdesign.0.fonts.input.dropdown.text}","listItemSubFontSize":"{vis-materialdesign.0.fontSizes.input.dropdown.subText}","listItemSubFont":"{vis-materialdesign.0.fonts.input.dropdown.subText}","listItemSubFontColor":"{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.input.menu.subText;dark:vis-materialdesign.0.colors.dark.input.menu.subText; mode === \"true\" ? dark : light}","listItemValueFontSize":"{vis-materialdesign.0.fontSizes.input.dropdown.value}","listItemValueFont":"{vis-materialdesign.0.fonts.input.dropdown.value}"},"style":{"left":"10px","top":"366px","z-index":"30","color":"#9c9c9c","width":"172px","height":"40px","text-align":"center","font-weight":"normal","line-height":"","font-size":"small","border-width":"0px","border-style":"solid","border-color":"transparent","border-radius":"0px"},"widgetSet":"materialdesign"}]
-
@wendy2702
ich habe oben im Beitrag den Spoiler gegen eine Textdatei ersetzt... -
Hab hier nochmal editiert..
Das Script startet 1 mal im monat... Wenn du es tesen willst kannst den schedule ja mal auf jede sekunde ändern...
https://forum.iobroker.net/topic/35659/stromzählerscript-pv-anlage-finanzamt-in-json-oder-html/58
Wenn du 0 lässt machst nix falsch.
Da aber erst Februar ist, würde ich versuchen die Werte vom 01.01.2021 einzutragen, dann beinhaltet die 1. Spalte halt den Monat Januar und Februar -
@smartboart sagte in Stromzählerscript PV Anlage Finanzamt in Json oder html:
Das hier hat funktioniert.
Danke!
-
@wendy2702 Muss nochmal Fragen:
habe den Schedule zum testen auf ´4 * * * *` gestellt aber meine Tabelle stoppt mit Eintrag vom 26.02.
Sollten da nicht auch Zeilen von heute auftauchen ?
-
@wendy2702 sagte in Stromzählerscript PV Anlage Finanzamt in Json oder html:
´4 * * * *`
Jede 4 Minute jede Stunde..
sollte ein Eintrag erfolgen mit deinem Chron...Scroll die Tabelle mal nach unten...
Schau mal im log ob entsprechend ein Eintrag erfolgt..
aktiviere mal var debug = true; und schau im log was in die Tabelle geschrieben wird.. -
@smartboart Hm,
gibt in meiner Tabelle keinen Scrollbalken.
Im Json steht als letztes Datum auch der 26.02.
ich werde mal auf Debug stellen.
EDIT: Jetzt mal auf minütlichen lauf gestellt.
Zwei läufe im Log aber keine Änderung des JSON mehr wie es aussieht.
-
@wendy2702 das ist komisch...
halte das Script mal an... Lösche die Objekte zum Script... Wenn du redis hast warte ne weile oder reboote dann mal und dann starte das Script neu.. -
@wendy2702 schau vorher mal ob die Datei angelegt wurde und ob diese weiter beschrieben wird... Dann liegt es am json state.. Aber da müsste Dann auch was im log stehen...
-
@smartboart Datei wird angelegt.
Aktuell stehen die letzten Einträge von gestern drin.
In der Tabelle aber nur bis 26.02.
Werden alte einträge in der Tabelle nicht raus geschoben oder sollte ich einen Scrollbalken bekommen?
-
@wendy2702
Welches Widget verwendest du zur Anzeige ?
Du solltest eine Scrollbalken bekommen, wenn nicht dann mal die Einstellungen vom Widget prüfen.