telefonicaid / fiware-device-simulator

Simulator of FIWARE-compatible devices (UltraLight 2.0, JSON & NGSIv2)
GNU Affero General Public License v3.0
8 stars 13 forks source link

google-spreadsheet dep version is going to be deprecated soon #68

Closed AlvaroVega closed 4 years ago

AlvaroVega commented 4 years ago

root@iot-device-simulator:/opt/fiware-device-simulator# ./bin/fiwareDeviceSimulatorCLI WARNING! You must upgrade to the latest version of google-spreadsheet! Google's deprecation date for the v3 sheets API is March 3rd 2020 Bad news - this version of this module will stop working on that date :( Good news - the new version of the module uses the newer v4 api :) However, there are breaking changes, so please see the docs site https://theoephraim.github.io/node-google-spreadsheet

AlvaroVega commented 4 years ago

google spread sheet is used by option:

-l, --timeline <google-sheets-configuration Configuration information to publish the scheduled updates into Google Sheets for its visualization as a Timeline Google Chart in Freeboard.io (it must be an object including a 'sheetKey' property for the long Google Sheet key where the data will be stored, a 'credentialsPath' property for the path to the Google generated credentials (more information about how to generate this credentials is available in the documentation), a 'dateFormat' property for the date format used by Google Sheets in your locale according to the dateformat NPM package (for further information, please visit: https://github.com/felixge/node-dateformat#mask-options) and a 'refreshInterval' property for the minimum interval in milliseconds the scheduled updates will be refreshed in the associated Google Sheet (i.e., the Google Sheet will be udpated in the next progress information tick (see the -p option) once this interval has passed since the last refresh), for example: -l "{\"sheetKey": \"1rGEpgC38kfAC7FFlM71wev-fKeuPKEOTvVY9I7e2Y", \"credentialsPath\": \"FIWARE Device Simulator-f11816817451.json\", \"dateFormat": \"dd/mm/yyyy HH:MM:ss\", \"refreshInterval\": 15000}")

fgalan commented 4 years ago

Fixed by PR https://github.com/telefonicaid/fiware-device-simulator/pull/70