10-26-2016 03:54 AM - edited 03-18-2019 06:31 AM
Hello,
we have more then 300 devices and i need to change wallpaper on all device.
i know following command ;
xConfiguration Video Wallpaper: custom
however, i need upload wallpaper to all device. i guess very long time upload file via web interface.
i tried root login enable however, i give following error message ;
Root access no longer available on TC release builds. Please use the remotesupport account for uses which previously required root access.
so, how can i push wallpaper to all device via API or anything ?
seems not login to device via scp and sftp because root login disabled with new versions of TC firmware.
04-21-2019 01:56 PM
Here is a simple python script for uploading wallpapers to multiple codecs. Its not exactly async as it would indicate, but it works.
import asyncio import aiohttp import aiofiles async def send(session, img, url): data = aiohttp.FormData() async with aiofiles.open(img, mode='rb') as f: data.add_field('file', f, filename=img, content_type='image/png') async with session.post(url, data=data) as response: print(response.status) async def main(devices): for k,v in devices.items(): (user,password) = v.split(':') url = 'https://{}/api/wallpapers'.format(k) auth = aiohttp.BasicAuth(login=user, password=password) async with aiohttp.ClientSession(auth=auth, connector=aiohttp.TCPConnector(ssl=False)) as session: await send(session, 'wallpaper_test.png', url) devices = {'10.10.10.1':'admin:', '10.10.10.2':'admin:'} asyncio.run(main(devices))
/Magnus
04-23-2019 07:24 AM
05-15-2021 10:08 AM
Hi Magnus,
I notice that there is also a URL to POST a backup
https://codecipaddress/api/backup
Could your python code be amended to post a backup file to a number of codecs? If so is the file format a zip? Many Thanks
06-12-2021 12:13 AM
I have been using CE-Deploy. I have posted the link to the software below.
06-13-2021 11:20 PM
Thanks for you reply squezada. CE-deploy is excellent. Bear in mind it only works on Windows 10/Mac , and you need an internet connection.
06-16-2021 04:33 PM
The tool I use now is CE-Deploy works great.
https://github.com/voipnorm/CE-Deploy/releases/tag/v7.3.2
Regards,
Sergio Quezada
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide