Restore chart dont work

Hi,
I calculated the power from my solar panels with node watt2kwh and then bar-chart-data to get chart for hour, day and month. I stored the outgoing payload from my chart with contrib-persist and i can see all of the stored value. But the problem when i deploy and want to restore the values i recive zero because the last value wins and when i deploy the solar panels send a value so all of my saved data is overwritten with the last value. What are i doing wrong?

I also tried white storage ui write file and read file and same thing.

It is very difficult to tell without seeing your flows. OR any sample data.

What I will say though is, you'd be better off storing this kind of data in a database (that's what they're designed for)

Then, it would be a simple case of pulling the day/week/month worth of data from database when the dashboard is opened.

I cant show any data now because no value from solar panels right now. but i save the data on my raspberry pi you can see the flow here

[{"id":"e261e5a205899742","type":"watt2kwh","z":"4f0f4a549910c1e6","format":"kwh","maximum":"60","maximumunit":"mins","name":"","x":660,"y":220,"wires":[["b157d3464d928348","bf97cea4e65b3597","b5eba73a4ec82748","e2345469c707a43f"]]},{"id":"2f2528f7a114db1d","type":"ui_chart","z":"4f0f4a549910c1e6","name":"Solenergi timme","group":"c5b6c5984cf9f992","order":1,"width":11,"height":7,"label":"Solenergi timme","chartType":"bar","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":true,"useUTC":false,"colors":["#00ff00","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":1240,"y":220,"wires":[["8e6edea8b2cea17c","e90cc2b0c840abf2"]]},{"id":"e2345469c707a43f","type":"bar-chart-data","z":"4f0f4a549910c1e6","name":"bar-chart-data","x_interval":"hours","x_size":24,"unit":"kwh","precision":"2","is_meter_reading":"False","agg_by":"sum","x":880,"y":220,"wires":[["2f2528f7a114db1d"]]},{"id":"bae09f49e83cffd0","type":"ui_chart","z":"4f0f4a549910c1e6","name":"Solenergi dag","group":"c5b6c5984cf9f992","order":2,"width":11,"height":7,"label":"Solenergi dag","chartType":"bar","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":true,"useUTC":false,"colors":["#00ff00","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":1240,"y":260,"wires":[["2398ba7a6e0e834a"]]},{"id":"b157d3464d928348","type":"bar-chart-data","z":"4f0f4a549910c1e6","name":"bar-chart-data","x_interval":"days","x_size":"31","unit":"Kwh","precision":"2","is_meter_reading":"False","agg_by":"sum","x":880,"y":260,"wires":[["bae09f49e83cffd0"]]},{"id":"e19cbaab07b5cf81","type":"ui_chart","z":"4f0f4a549910c1e6","name":"Solenergi månad","group":"c5b6c5984cf9f992","order":3,"width":11,"height":7,"label":"Soleneregi månad","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":true,"useUTC":false,"colors":["#00ff00","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":1250,"y":300,"wires":[["e0f6c5b174936844"]]},{"id":"e90cc2b0c840abf2","type":"file","z":"4f0f4a549910c1e6","name":"Sol timme","filename":"/home/ander/soltimme","filenameType":"str","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":1500,"y":220,"wires":[[]]},{"id":"2398ba7a6e0e834a","type":"file","z":"4f0f4a549910c1e6","name":"Sol dag","filename":"/home/ander/soldag","filenameType":"str","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":1500,"y":260,"wires":[[]]},{"id":"f5d24fe350fcbf6a","type":"inject","z":"4f0f4a549910c1e6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":530,"y":500,"wires":[["e32082a7a17f108e"]]},{"id":"e75044a8e967b7fc","type":"inject","z":"4f0f4a549910c1e6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":530,"y":540,"wires":[["d124ea8f86a01281"]]},{"id":"4114dd4861c4158b","type":"inject","z":"4f0f4a549910c1e6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":530,"y":580,"wires":[["e22877206f45bea7"]]},{"id":"e32082a7a17f108e","type":"file in","z":"4f0f4a549910c1e6","name":"","filename":"/home/ander/soltimme","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":740,"y":500,"wires":[["efb47d17b1444ee2"]]},{"id":"d124ea8f86a01281","type":"file in","z":"4f0f4a549910c1e6","name":"","filename":"/home/ander/soldag","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":740,"y":540,"wires":[["c16aa31e02a93bef"]]},{"id":"5d28881fa10e71ec","type":"ui_chart","z":"4f0f4a549910c1e6","name":"Solenergi år","group":"c5b6c5984cf9f992","order":3,"width":11,"height":7,"label":"Soleneregi år","chartType":"horizontalBar","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":true,"useUTC":false,"colors":["#00ff00","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":1230,"y":340,"wires":[[]]},{"id":"e22877206f45bea7","type":"file in","z":"4f0f4a549910c1e6","name":"","filename":"/home/ander/solmånad","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"allProps":false,"x":740,"y":580,"wires":[["10271ae0679fed1f"]]},{"id":"e0f6c5b174936844","type":"file","z":"4f0f4a549910c1e6","name":"Sol månad","filename":"/home/ander/solmånad","filenameType":"str","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":1510,"y":300,"wires":[[]]},{"id":"bf97cea4e65b3597","type":"bar-chart-data","z":"4f0f4a549910c1e6","name":"bar-chart-data","x_interval":"months","x_size":"12","unit":"Kwh","precision":"2","is_meter_reading":"False","agg_by":"sum","x":880,"y":300,"wires":[["e19cbaab07b5cf81"]]},{"id":"b5eba73a4ec82748","type":"bar-chart-data","z":"4f0f4a549910c1e6","name":"bar-chart-data","x_interval":"years","x_size":"5","unit":"Kwh","precision":"2","is_meter_reading":"False","agg_by":"sum","x":880,"y":340,"wires":[["5d28881fa10e71ec"]]},{"id":"efb47d17b1444ee2","type":"json","z":"4f0f4a549910c1e6","name":"","property":"payload","action":"","pretty":false,"x":930,"y":500,"wires":[["2f2528f7a114db1d"]]},{"id":"8e6edea8b2cea17c","type":"persist in","z":"4f0f4a549910c1e6","name":"test","storageNode":"c06564b039be9a3d","x":1490,"y":180,"wires":[]},{"id":"b9a3970cf4229620","type":"persist out","z":"4f0f4a549910c1e6","name":"Test","storageNode":"c06564b039be9a3d","x":830,"y":440,"wires":[["2f2528f7a114db1d"]]},{"id":"c16aa31e02a93bef","type":"json","z":"4f0f4a549910c1e6","name":"","property":"payload","action":"","pretty":false,"x":930,"y":540,"wires":[["bae09f49e83cffd0"]]},{"id":"10271ae0679fed1f","type":"json","z":"4f0f4a549910c1e6","name":"","property":"payload","action":"","pretty":false,"x":930,"y":580,"wires":[["5d28881fa10e71ec"]]},{"id":"c5b6c5984cf9f992","type":"ui_group","name":"Group 1","tab":"c8bc13cdbe7c91fc","order":1,"disp":false,"width":22,"collapse":false,"className":""},{"id":"c06564b039be9a3d","type":"persist-store","filename":"/home/ander/test","interval":"60"},{"id":"c8bc13cdbe7c91fc","type":"ui_tab","name":"Grafer sol","icon":"dashboard","order":4,"disabled":false,"hidden":false}]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.