Author Topic: FM Monitoring Script v3 (pira)  (Read 505 times)

Jan

  • Hero Member
  • *****
  • Posts: 1125
FM Monitoring Script v3 (pira)
« on: September 14, 2024, 10:05:22 pm »
Main features:
  • Automated monitoring of stations from bandscan
  • Web publishing of all results
  • Supports P275, P275R and P275E, fw version 2.2c r2 or later
  • Supports up to 4 antennas

Example of application:
https://pira.cz/monitor/

Tip for antenna switch (optional):
https://pira.cz/forum/index.php?topic=957.0


@ https://pira.cz/monitor/monitor_v3.zip (0.7 MB)

You may edit all files freely.

Lucas G.

  • Guest
Re: FM Monitoring Script v3 (pira)
« Reply #1 on: Yesterday at 12:41:21 pm »
Hi Jan,

Thank you for sharing this new script with us.
Unfortunately, despite a fresh start on my FTP server and after following of your instructions clearly, I am unable to run the script properly.

Without any modification to the index.php file, I get the following error:
Parse error: syntax error, unexpected T_STRING, expecting ')' in [...] on line 189

which leads to the following code:
function old_json validate (string $string): bool {
json_decode ($string);
return json_last_error() === JSON_ERROR_NONE;


By removing this part of the code, I am able to see the interface on my server page, but the measurements don't appear even after an hour, while they are being sent to the FTP server in the "history" folder.

Do you have an idea on the source of this issue?
I was able to run the previous script version without any problem in the past.

Thanks in advance for your reply,
Lucas

Jan

  • Hero Member
  • *****
  • Posts: 1125
Re: FM Monitoring Script v3 (pira)
« Reply #2 on: Yesterday at 08:30:08 pm »
Could you determine what version your PHP is?

Lucas G.

  • Guest
Re: FM Monitoring Script v3 (pira)
« Reply #3 on: Yesterday at 10:44:57 pm »
Thanks for your reply, Jan.
The issue has to come from the PHP version, in fact. I use a free hosting service in order to host my measurements (exclusively), and the service still runs the PHP 5.6.34 version. They are planning to upgrade to PHP 8 but it wasn't done yet...

I guess I have no other choice than to keep using the former index.php until a potential upgrade on their side!

Jan

  • Hero Member
  • *****
  • Posts: 1125
Re: FM Monitoring Script v3 (pira)
« Reply #4 on: Today at 08:04:19 pm »
The PHP version 5.6 is about 10 years old. Especially some JSON parsing functions may not be available in version 5.6. I'm sure the issue can be fixed anyway but I won't be able to do that anytime soon. Lowest PHP version I was able to test was 7.x.