Author Topic: Automatic saving of HTML reports in FM Scope  (Read 676 times)

r-aktiv

  • Guest
Automatic saving of HTML reports in FM Scope
« on: December 19, 2018, 12:58:54 pm »
Hello,

is there any way saving daily HTML reports of all measurements in FM Scope automatically every day? I tried out the task scheduler, but unfortunately I don't see the possibility to execute a task like this. It would be a lot of work saving the reports in a daily interval manually.

Thank you for your answer!
Sincerely
Jonas

Jan

  • Hero Member
  • *****
  • Posts: 552
Re: Automatic saving of HTML reports in FM Scope
« Reply #1 on: December 19, 2018, 02:57:39 pm »
This task can be executed using the task scheduler, like any other script.

  • Create a folder on your disk for the reports, for example C:\reports
  • In the FM Scope, select Script - Script Editor...
  • Enter the path and file name for the new script, for example C:\reports\report autosave.fms
  • Click Open and confirm the creation
  • Enter the script code below
  • Click File - Save
  • In the FM Scope, open the Task Scheduler and fill the script file on an empty line:
    C:\reports\report autosave.fms
  • Define the days and times when the script shall execute.

Code: [Select]
set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)

stop

include(report_svg.fms)


Make sure you have latest FM Scope version.

Jan

  • Hero Member
  • *****
  • Posts: 552
Re: Automatic saving of HTML reports in FM Scope
« Reply #2 on: December 19, 2018, 03:25:45 pm »
Maybe you will need to acquire all data from the receiver before saving the report, so the script can be enhanced:

Code: [Select]
getfrequency
getquality
getlevel
frequencydeviation.acquire
getpilot
getrds
getphase
rds.getdata

set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)

stop

include(report_svg.fms)

r-aktiv

  • Guest
Re: Automatic saving of HTML reports in FM Scope
« Reply #3 on: December 20, 2018, 08:52:49 am »
Thanks for your support, Jan! I tried out your second script and it works well!