I would like to enable DWS (Diagnostic Web Server) on several HD210s without visiting each device physically and swapping the SD card. In the Diagnostics Web Server User Guide v.4 it gives a script example which can handle this. However, it is not clear how to deploy this script. Can it be pasted into autorun.brs somewhere? Or should it be run separately somehow? A step-by-step guide would be very helpful. Thanks.
1 comment
-
Lyndon There's only one or possibly two lines required to do this. There isn't a step by step guide for enabling the diag server after you've setup the unit for simple networking. But, you can add the code to the top of the autorun.brs file that's published along with brightauthor.
What you would do is publish a test project. Copy the autorun.brs to your desktop. Then, add the following lines:
password$="changepassword"
registrySection = CreateObject("roRegistrySection", "networking")
if type(registrySection) = "roRegistrySection" then
' write web server enable
registrySection.Write("http_server", "80")
registrySection.Write("http_auth", password$)
endif
registrySection=invalidYoucan then attach your custom autorun to a brightauthor project, under file presentation properties, autorun. When you publish your project with the custom autorun attached, the unit will reboot. The diag server will be enabled.