Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9260183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:49:46+00:00 2026-06-18T12:49:46+00:00

I have an LED sign set up with a Windows computer, and am trying

  • 0

I have an LED sign set up with a Windows computer, and am trying to make it display my Linux computer’s temperature:

acpitz-virtual-0

Adapter: Virtual device

temp1: +97.7°F (crit = +183.2°F)

Now, here’s the batch file on my computer

wget 192.168.1.58/sensor1.txt

I have a windows version of wget in the folder.

type sensor1.txt | findstr /v acpitz-virtual-0 | findstr /v Adapter: > msg.txt
set /p msg= < msg.txt

prismcom.exe usb {HOLD} %msg%

Now my sign flashes the equivalent of

temp1: +97.7°F (crit = +183.2°F)

I need it to flash

+97.7°F,

or even better,

+97.7 F

I’ve been trying with FIND and FOR and commands like that, but with no luck. How can I modify my string to work?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:49:48+00:00Added an answer on June 18, 2026 at 12:49 pm

    Say the variable that the temperature is stored in is called “temp”, and has the value of “temp1: +97.7°F (crit = +183.2°F)”. This little snippet should work wonders…

    setlocal enabledelayedexpansion
    set dis=!temp:~7,5! F
    set check=!temp:~10,1!
    if %check% neq . set dis=!temp:~7,6! F
    

    Here is the syntax:

    set variable=!variable_to_be_constrained:~offset,amount_of_characters!
    

    One thing I should mention is that the variable “TEMP” (or “temp”, capitalization generally doesn’t matter too much with .bat files) is a predefined command line variable, and generally those should never be overwritten. However, in this case it’s purely for aesthetic purposes and you can change it to whatever you want.

    –EDIT–
    Added two lines to allow for temperatures over 100 Fahrenheit. Also changed temp to dis.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class: public class LED { public System.Windows.Forms.Label lbl; public LED(System.Windows.Forms.Label lblLED)
I have a program which sends text to an LED sign. prismcom.exe To use
I'm trying to set up my environment for developing, debugging and deploying Windows Desktop
I have a scrolling LED sign that takes messages in either ASCII or (using
I'm making a monochrome in-browser 'LED' display. It should have a matrix of 33
I have to do some different views containing 72 LED lights. I built an
I have been a really big fan of stackoverflow(which led me to ask the
Have a painfully simple blog Post creator, and I'm trying to check if the
have 2 questions : A computer with 32-bit address uses 2-level page table (9
I have posted in here before but all have led to dead ends. First

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.