Zenofmud
unread,Aug 2, 2017, 7:41:46 AM8/2/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
Dave,
Something weird is going on. I import your flow and start up node red and get:
[json:3585b62f.794b62] Ignored unsupported payload type
message in the log and in debug it shows up every time I use the hamburger menu to select the ‘Restore’ page. The debug points at JSON node after the chart node.
In addition, I created a new flow - inject => file node (grabs chart.log) => json node => new bar graph. and point it at a second bar chart. When I press the inject, only one column shows on the chart AND if I refresh the screen, the original chart now shows only one column.
The only way to get multiple columns back is to stop/start node red.
Here is the flow - I changed the location of chart.log since I ran this in OS X
[{"id":"51455089.5c4258","type":"tab","label":"Flow 1"},{"id":"c7bdf931.938f48","type":"ui_button","z":"51455089.5c4258","name":"","group":"17da126a.4f866e","order":2,"width":"2","height":"1","passthru":false,"label":"Inject","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"A","x":150,"y":140,"wires":[["43580d6c.61f964"]]},{"id":"4ef5dbcb.e17d74","type":"ui_button","z":"51455089.5c4258","name":"","group":"17da126a.4f866e","order":4,"width":"2","height":"1","label":"restore","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":150,"y":440,"wires":[["34973383.43b2c4"]]},{"id":"43580d6c.61f964","type":"random","z":"51455089.5c4258","name":"","low":"0","high":"10","inte":"true","x":300,"y":140,"wires":[["d507582c.e2c728"]]},{"id":"d507582c.e2c728","type":"ui_chart","z":"51455089.5c4258","name":"","group":"17da126a.4f866e","order":1,"width":0,"height":0,"label":"chart","chartType":"bar","legend":"false","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"0","ymax":"10","removeOlder":"15","removeOlderPoints":"100","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":450,"y":140,"wires":[["3585b62f.794b62"],[]]},{"id":"206407cd.682f","type":"file","z":"51455089.5c4258","name":"","filename":"/Users/Paul/tmp/chart.log","appendNewline":true,"createDir":false,"overwriteFile":"true","x":630,"y":260,"wires":[]},{"id":"34973383.43b2c4","type":"file in","z":"51455089.5c4258","name":"","filename":"/Users/Paul/tmp/chart.log","format":"utf8","sendError":true,"x":330,"y":440,"wires":[["c3ae5bbd.0cfbd"]]},{"id":"3585b62f.794b62","type":"json","z":"51455089.5c4258","name":"","x":590,"y":140,"wires":[["38d73ed3.043b32"]]},{"id":"c3ae5bbd.0cfbd","type":"json","z":"51455089.5c4258","name":"","x":570,"y":440,"wires":[["d507582c.e2c728"]]},{"id":"38d73ed3.043b32","type":"function","z":"51455089.5c4258","name":"","func":"if (msg.topic === \"save\") {\n msg.payload = context.last;\n return msg;\n}\nelse {\n context.last = msg.payload;\n}\nreturn null;","outputs":1,"noerr":0,"x":330,"y":300,"wires":[["206407cd.682f"]]},{"id":"d30452ea.6cdce","type":"ui_button","z":"51455089.5c4258","name":"","group":"17da126a.4f866e","order":3,"width":"2","height":"1","label":"save","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"save","x":150,"y":300,"wires":[["38d73ed3.043b32"]]},{"id":"32a8c59e.abf6a2","type":"ui_button","z":"51455089.5c4258","name":"","group":"17da126a.4f866e","order":2,"width":"2","height":"1","passthru":false,"label":"Inject","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"B","x":150,"y":60,"wires":[["ccef0630.30bfa8"]]},{"id":"ccef0630.30bfa8","type":"random","z":"51455089.5c4258","name":"","low":"0","high":"10","inte":"true","x":300,"y":60,"wires":[["d507582c.e2c728"]]},{"id":"c8b30d8e.5d8c2","type":"ui_button","z":"51455089.5c4258","name":"","group":"17da126a.4f866e","order":2,"width":"2","height":"1","passthru":false,"label":"Inject","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"C","x":150,"y":200,"wires":[["f64448e8.5066e8"]]},{"id":"f64448e8.5066e8","type":"random","z":"51455089.5c4258","name":"","low":"0","high":"10","inte":"true","x":300,"y":200,"wires":[["d507582c.e2c728"]]},{"id":"6a7eee02.f8c01","type":"ui_chart","z":"51455089.5c4258","name":"Bar chart 2","group":"17da126a.4f866e","order":5,"width":"0","height":"0","label":"Bar Chart 2","chartType":"bar","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"chart - test group one","dot":false,"ymin":"0","ymax":"10","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1F77B4","#AEC7E8","#FF7F0E","#2CA02C","#98DF8A","#D62728","#FF9896","#9467BD","#C5B0D5"],"x":730,"y":520,"wires":[[],[]]},{"id":"53bcfbd2.4d097c","type":"file in","z":"51455089.5c4258","name":"","filename":"/Users/Paul/tmp/chart.log","format":"utf8","sendError":true,"x":370,"y":520,"wires":[["e996147e.3a6e08"]]},{"id":"e996147e.3a6e08","type":"json","z":"51455089.5c4258","name":"","pretty":false,"x":570,"y":520,"wires":[["6a7eee02.f8c01"]]},{"id":"8ce6cc2c.ac6a98","type":"inject","z":"51455089.5c4258","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":160,"y":520,"wires":[["53bcfbd2.4d097c"]]},{"id":"17da126a.4f866e","type":"ui_group","z":"","name":"Gauge","tab":"accfb422.f7e54","order":2,"disp":true,"width":"6"},{"id":"accfb422.f7e54","type":"ui_tab","z":"","name":"Restore","icon":"dashboard"}]