0

Import Freeboard Json File
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Import Freeboard Json File

by Powderjockey on Sun Jun 03, 2018 8:21 pm

Is it possible to to import the json file contents from Freeboard to create a dashboard in Adafruit.io?

Powderjockey
 
Posts: 51
Joined: Fri Mar 31, 2017 10:14 pm

Re: Import Freeboard Json File

by abachman on Tue Jun 05, 2018 1:18 pm

Hi powderjocky,


We don't have that feature built into IO right now, but if you're able to post the .json file here, I might be able to suggest some scripting that could help.

The biggest problem would be if Freeboard and IO use different abstractions, but if they're using pretty similar concepts (data comes in feeds, blocks have a display type and a feed, etc.) the conversion might not be too hard. It would certainly be interesting to us to either include in IO or write up as a guide if there are a lot of folks coming from Freeboard since their pricing changes.


- adam b.

abachman
 
Posts: 212
Joined: Mon Feb 01, 2010 12:48 pm

Re: Import Freeboard Json File

by Powderjockey on Fri Jun 15, 2018 1:50 pm

@abachman thanks for the reply and sorry for the delay in getting back to you. The script is below.

Code: Select all | TOGGLE FULL SIZE
{"version":1,"allow_edit":true,"plugins":["/plugins/all"],"panes":[{"title":"Last Lightning Event","width":1,"row":{"3":1},"col":{"3":2},"col_width":"2","widgets":[{"type":"text_widget","settings":{"title":"Last Lightning Stroke","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"LightningTimeStamp\"]","animate":true}},{"type":"text_widget","settings":{"title":"Last Stroke Distance","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"LastDistance\"]","animate":true,"units":"km"}},{"type":"text_widget","settings":{"title":"Lightning Strokes Counted","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"LightningCount\"]","animate":true}}]},{"title":"The Pi THUNDERBOARD IOT","width":1,"row":{"3":1,"4":11},"col":{"3":1,"4":1},"col_width":1,"widgets":[{"type":"plugin52d968dc3239abe64b000006","settings":{"src":"http://www.switchdoc.com/wp-content/uploads/2017/11/lightning-bolt-picture-1.jpg","refresh":0}}]},{"width":1,"row":{"3":9,"4":9},"col":{"3":2,"4":2},"col_width":1,"widgets":[{"type":"gauge_widget","settings":{"title":"Lightning Distance","value":"datasources[\"ThunderBoard IOT\"][\"LastDistance\"]","units":"Km","min_value":"0","max_value":"30"}},{"type":"text_widget","settings":{"title":"Software Version","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"SoftwareVersion\"]","animate":true}}]},{"width":1,"row":{"3":9,"4":9},"col":{"3":3,"4":3},"col_width":1,"widgets":[{"type":"plugin52d968dc3239abe64b000006","settings":{"src":"http://www.switchdoc.com/wp-content/uploads/2017/11/LightningBox.png","refresh":0}}]},{"title":"Thunder Board Configuration","width":1,"row":{"3":11,"4":1},"col":{"3":1,"4":1},"col_width":1,"widgets":[{"type":"indicator_widget","settings":{"title":"Indoor Set","value":"datasources[\"ThunderBoard IOT\"][\"IndoorSet\"]","on_text":"1","off_text":"0"}},{"type":"gauge_widget","settings":{"title":"Noise Floor","value":"datasources[\"ThunderBoard IOT\"][\"Noise_Floor\"]","min_value":0,"max_value":"7"}},{"type":"text_widget","settings":{"title":"Minimum # Strikes Before Report","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"Minimum_Strikes\"]","animate":true}},{"type":"indicator_widget","settings":{"title":"Distrubers Masked","value":"datasources[\"ThunderBoard IOT\"][\"Mask_Disturber\"]","on_text":"1","off_text":"0"}}]},{"width":1,"row":{"3":19,"4":19},"col":{"3":2,"4":2},"col_width":"2","widgets":[{"type":"text_widget","settings":{"title":"Last Message Received","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"LastPublishTimeStamp\"]","animate":true}}]},{"width":1,"row":{"3":23,"4":19,"5":19},"col":{"3":2,"4":2,"5":2},"col_width":"2","widgets":[{"type":"plugin52d968dc3239abe64b000006","settings":{"src":"http://www.switchdoc.com/wp-content/uploads/2015/04/Untitled-design-4.png","refresh":0}}]},{"title":"Last Results from Thunder Board","width":1,"row":{"3":25,"4":9,"5":9,"6":9},"col":{"3":1,"4":3,"5":3,"6":3},"col_width":1,"widgets":[{"type":"text_widget","settings":{"title":"Last Result","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"LastResult\"]","animate":true}},{"type":"text_widget","settings":{"title":"Last Result TimeStamp","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"InterruptTimeStamp\"]","animate":true}}]},{"width":1,"row":{"3":31,"6":31},"col":{"3":1,"6":1},"col_width":1,"widgets":[{"type":"text_widget","settings":{"title":"Software Version","size":"regular","value":"datasources[\"ThunderBoard IOT\"][\"SoftwareVersion\"]","animate":true}}]}],"datasources":[{"name":"ThunderBoard IOT","type":"plugin5376758af1776c1c2e000326","settings":{"subscribe_key":"sub-c-c735f332-ccc7-11e7-a7e0-ba9127ff21d1","channel":"ThunderBoardIOT"}}],"columns":3,"pane_header_bg_color":null,"pane_bg_color":null}

Powderjockey
 
Posts: 51
Joined: Fri Mar 31, 2017 10:14 pm

Please be positive and constructive with your questions and comments.