FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
260 views 4 comments
by anonymous

I have multiple devices with "TRB1410_R_00.01.06.1" version and can see "Enable JSON RPC" under SYSTEM > ADMINISTRATION > ACCESS CONTROL.

But this option is gone in 07 version. 

I wen't thru the change log and can't see anything related to this.

1 Answer

0 votes
by anonymous
Hello,

JSON-RPC is enabled by default at this moment with the the7.0 version. We are planning to return this button with a 7.2 firmware release.

Regards.
by anonymous
Thank You!

I will test this out
by anonymous

It seems that there are some other changes, I am unable to write to file as I was before.

I get error of Access denied. Is there anywhere in WebUI I need to give additional permissions?

send [

  '2bc6485738f411a7861e7d90ecd25a0f',

  'file',

  'write',

  {

    path: '/home/root/test_file.sh',

    data: `test data`

  }

]

by anonymous

Hi,

There are additional changes implemented at this moment:

You will need to edit rpcd config:

config login
	option username 'admin'
	option password '$p$root'
	option group 'root'
	list read '!superuser'
	list read '*'
	list write '!superuser'
	list write '*'

and remove ! symbols from superuser. Once you change the config and save changes, apply the command:

/etc/init.d/rpcd reload

by anonymous

It seems to get a bit further, but still doesn't write the file.

Got this response:

data: { jsonrpc: '2.0', id: 1, result: [ 4 ] }