On digitalscalesblog.com, I showed how easy it can be to send the weight from a scale to a Python script running on a Raspberry Pi (if you choose the right scale). As I had never used Python before, all the script did was print the weight data. That doesn’t mean you have to stop there. Here a some ideas and links to get you going.
- Use the Raspberry Pi as a serial device server (from RS-232 to TCP/IP over Ethernet or WiFi). Code examples can be found in the pySerial documentation.
- Build a protocol converter. Most scales use proprietary protocols, but you can convert the data to MQTT or other protocols as shown here. Do not say that you have developed a protocol converter, call it an IoT gateway to get more attention.
- Use speech synthesis to output the weight as spoken words for visually impaired users.
- Use speech recognition to send commands to the scale (e.g. the tare command).
- Install a Pi Camera Module and take a picture of the user every time the scale is overloaded.
- Turn the scale into a checkweigher by comparing the weight with preset values and making under/accept/over LEDs light up.
- Transform the weight into a proportional analog signal (voltage) because… I have no idea! Why do people keep asking for weighing scales with an analog output? Seriously, if you know the answer, please tell me.
- Trigger an alarm or something worse when an object is removed from the scale:
The Problem: Your administrator has blocked this application…
You’re trying to install a ClickOnce application and get an error message saying: “Your administrator has blocked this application because it potentially poses a security risk to your computer”:
You are the administrator and don’t remember blocking any applications (if you’re not the admin, contact them instead of reading this article).
The reason this is happening
The ClickOnce trust prompt is disabled on your operating system, so instead of a dialog (prompt) which allows you to either proceed with the installation or not, you just get the message above.
You can change the ClickOnce trust prompt behavior by editing the registry subkeys under:
There should be five subkeys, one for each security zone:
Each subkey can have one of the following values:
- Disabled: No trust prompt is shown, instead you get the error message above.
- Enabled: A trust prompt is shown.
- AuthenticodeRequired: A trust prompt is shown only for signed applications (other applications cannot be installed).
Trust prompt example
If the application you’re trying to install has been published on the Internet, you’ll want to set the Internet subkey to “Enabled” (or to “AuthenticodeRequired” if the application has been digitally signed). You should then see a trust prompt instead of the “your administrator has blocked this application” error:
Free Trust Prompt Tool
As an alternative to editing the registry manually, you can also use a free trust prompt tool I wrote:
It allows you to easily display and modify the trust prompt configuration.
- If you don’t trust yourself or other people using your PC, you can change the respective zone setting back to “Disabled” after installing the ClickOnce application. The trust prompt configuration has no effect on installed applications and their updates.
- You could also add the publisher’s site to your trusted sites and only enable trust prompts for the TrustedSites subkey.
- Are you wondering why all your trust prompt settings have been changed to “Disabled”? Unfortunately, I have no idea. I’ve had this happen on multiple PCs and I’m pretty sure I didn’t do this myself.
When taking screenshots for a tutorial on how to connect a scale to a network, I came across this curious mixture of both English and German in the network adapter settings:
I confirmed that the Windows display language was set to English. I tried deleting the German language pack, but it did not make a difference: my Windows was still bilingual.
Eventually, I found the solution
- Open to the (legacy) Control Panel, click on Clock, Language and Region, then click on Region.
- In the Region dialog, select the Administrative tab.
- Click on Copy settings…
- You’ll probably see that the Display Language under Current User is not the same as the Display Language under Welcome screen:
- This can be fixed by checking the Copy your current settings to: Welcome screen and system accounts checkbox, then clicking on OK:
After restarting, the dialog appeared completely in English: